Comment on Python Multiple Assignment Is a PuzzleparentComments−gizmo12yI'm assuming a set is internally a balanced tree of some sort. So lookup and insertions are O(log N). So N insertions should be O(N log N).Edit - nevermind. It's a hash table of course. So I'm wrong.
Comments
I'm assuming a set is internally a balanced tree of some sort. So lookup and insertions are O(log N). So N insertions should be O(N log N).
Edit - nevermind. It's a hash table of course. So I'm wrong.