Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Words Order solution in Clear category for Words Order by ShamilTim
def words_order(text: str, words: list) -> bool:
text_lst = text.split(" ")
[text_lst.remove(i) for i in text_lst[::-1] if i not in words]
return text_lst == words and len(text_lst) == len(set(text_lst))
Aug. 30, 2021