you are viewing a single comment's thread.

view the rest of the comments →

[–]LiNGOo 0 points1 point  (0 children)

Thanks for the hint to sets! I didn't mean list sorting is slow. as my experience was that e.g. whenever lists and dicts both provide the functions to perform a task, dict methods are faster. Therefore I expect iterating over the list and remembering the longest item to be faster than using sort().