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

2 of 3
Fix logic error (me doing Vyxal quickly before going out to do yard work...)

Vyxal, 22 bytes

⌈'⇩ḣh\h≠$h\s=∧;U56>7*Ẏ

Try it Online!

⌈'⇩ḣh\h≠$h\s=∧;U56>7*Ẏ
⌈' ; Filter input, split on spaces, by:
 ⇩ḣ Push (input lowercased)([0], [1:])
 h\h≠ Second character isn't `h`
 $h\s=∧ and first character isn `s`
 U Uniquify ^
 56> 1 if len(^) is 7 or more, otherwise 0
 7*Ẏ Multiply by 7 and slice [0:that]

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