• + 2 comments

    I did the same thing. how did you do the Time Complexity calculation? look-ups in a set is O(1), so is it len(a)*O(1) == O(N)?