I haven\'t found anything relevant on Google, so I\'m hoping to find some help here :)
I\'ve got a Python list as follows:
[[\'hoose\', 200], [\"Ba
You didn't say the number of items in your list, but I'm guessing n^2 complexity is OK.
You also didn't say if you wanted all possible pairs to be compared or just the neighboring ones. I assume all pairs.
So here's the idea: