Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

deleted 1 character in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, 67 bytes

lambda s:sum(max(c in p for c in s)for p inin'e to for si'.split('e','to','for','si'))<4

Try it online! Try it online!

Uses xash's idea from his J answer.

Python 3, 67 bytes

lambda s:sum(max(c in p for c in s)for p in('e','to','for','si'))<4

Try it online!

Uses xash's idea from his J answer.

Python 3, 67 bytes

lambda s:sum(max(c in p for c in s)for p in'e to for si'.split())<4

Try it online!

Uses xash's idea from his J answer.

Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, 67 bytes

lambda s:sum(max(c in p for c in s)for p in('e','to','for','si'))<4

Try it online!

Uses xash's idea from his J answer.

AltStyle によって変換されたページ (->オリジナル) /