Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sorted == words solution in Clear category for Words Order by flpo
def words_order(text, words):
text_words = {w for w in text.split() if w in words}
return list(sorted(text_words, key=text.index)) == words
May 6, 2020
Comments: