You are viewing a single comment's thread. Return to all 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)?
Seems like cookies are disabled on this browser, please enable them to open this website
Pairs
You are viewing a single comment's thread. Return to all 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)?