Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple solution in Clear category for Words Order by kdim
def words_order(text: str, words: list) -> bool:
a = [x for x in text.split() if x in words]
return a == words and sorted(set(a)) == sorted(words)
Jan. 27, 2021
Comments: