Removing duplicates from a list of lists
itertools often offers the fastest and most powerful solutions to this kind of problems, and is well worth getting intimately familiar with!-) Edit: as I mention in a comment, normal optimization efforts are focused on large inputs (the big-O approach) because it’s so much easier that it offers good returns on efforts. But sometimes (essentially for “tragically crucial … Read more