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 Revisions

1 of 5
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Jelly, 16 bytes

Assuming that we must handle uppercase S and H too and that we must/may return the leftmost distinct "s-words"

ḲŒliⱮ=Ø.ʋƇ)hsQḣ7

A monadic Link that accepts a list of characters and yields a list of the words.

Try it online!

Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

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