Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Iterator + All solution in Clear category for Words Order by littleplatypus
def words_order(text: str, words: list) -> bool:
if len(words) != len(set(words)):
return False
text = iter(text.split())
return all(word in text for word in words)
Oct. 6, 2025
Comments: