Skip to main content
Changed variable names
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

Python 3, 51 50 bytes

lambda l:{is for is in l for jc in is if is.count(jc)>2}

Try it online!Try it online!

Python 3, 51 50 bytes

lambda l:{i for i in l for j in i if i.count(j)>2}

Try it online!

Python 3, 51 50 bytes

lambda l:{s for s in l for c in s if s.count(c)>2}

Try it online!

Realised that the set unpack is unnecessary now
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

Python 3, 5151 50 bytes

lambda l:{i for i in l for j in{*i} i if i.count(j)>2}

Try it online!Try it online!

Python 3, 51 bytes

lambda l:{i for i in l for j in{*i}if i.count(j)>2}

Try it online!

Python 3, 51 50 bytes

lambda l:{i for i in l for j in i if i.count(j)>2}

Try it online!

Changed from list to set
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

Python 3, 51 bytes

lambda l:[i{i for i in l for j in{*i}if i.count(j)>2]>2}

Try it online!Try it online!

Python 3, 51 bytes

lambda l:[i for i in l for j in{*i}if i.count(j)>2]

Try it online!

Python 3, 51 bytes

lambda l:{i for i in l for j in{*i}if i.count(j)>2}

Try it online!

Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74
Loading