Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
My Solution solution in Clear category for Words Order by sMiTeOne
def words_order(text: str, words: list) -> bool:
if len(words) != len(set(words)):
return False
for word in text.split():
if word == words[0]:
words.pop(0)
if len(words) == 0:
return True
return False
Feb. 15, 2022