News for hackers. Stuff that matters.
Re:Python Multiple Assignment Is a Puzzle by michaelmior on Sunday July 27, 2014 @08:00AM (#8092530)
Run this on Python 3 or use xrange instead of range on Python 2 and you get N space instead of 2N anyway :)

Also, the average case for set membership testing is O(1), so the average case runtime would actually be O(N).

https://wiki.python.org/moin/TimeComplexity#set

There are no comments on this comment yet.