high_performance_python
high_performance_python copied to clipboard
Chapter 4, pg 73
In the following sentence: While we saw in the previous chapter that we are restricted to, at best, O(log n) lookup time on lists/tuples with no intrinsic order (through a search operation), dictionaries and sets give us O(n) lookups based on the arbitrary index.
Shouldn't the bold part part say: O(1) lookups?