Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re.search, len solution in Clear category for Words Order by pavelb89
import re
def words_order(text: str, words: list) -> bool:
# your code here
return len(words) == len(set(words)) and bool(re.search(r' .*'.join(words), text))
Sept. 4, 2020
Comments: