• + 0 comments

    No, you're both missing the simple fact that a set has no duplicates. Converting a list to a set removes all the duplicates.

    Most of the comments on this solution are missing that fact.