Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The End of Other by fed.kz
from itertools import combinations
def checkio(words_set):
for first, second in combinations(words_set, 2):
if first.endswith(second) or second.endswith(first):
return True
return False
Nov. 24, 2018