You are viewing a single comment's thread. Return to all comments →
Exact same thing I came up with. So clean and simple, not sure why it's not the top ranked. Is there a problem using 'set' to remove the dups?
He used sorted instead of sort for sorting iterable which is not a list ... Sort is faster than sorted because it doesn't have to create copy..