5
melizzaryan
2 12
143/ 145
Last seen 8 years ago
Member for 9 years, 1 day
Difficulty Normal
Best reviews / Newest reviews
Double loop-bryukh
for word in words_set: for string in words_set: if string.endswith(word,1): return True puts the beginning of the range to check at the second letter so that you don't have to have the w1!= w2 statement Not sure why I didn't need to check if w1 en More