//
sign in
Post
by @danabra.mov
PostEmbed
by @danabra.mov
Record
by @jimpick.com
Record
by @atsui.org
+ new component
Post
This O(n*n) code may take seconds over a large list: for word in words: if word[::-1] in words: print(word) While this O(n) code may takes milliseconds: word_set = set(words) for word in words: if word[::-1] in word_set: print(word)