Cheers, always good to be aware of these concepts even if Pythons is far from 'blazingly fast'
post
sorted_sequence.index(item)
Shouldn't this be O(n log n)? I guess Python doesn't have a list that stays sorted.
As a workaround, just use dict keys with no values instead.
replies:
Damn, I was hoping someone had python running a Megadeus.
all 9 comments