You are viewing a single comment's thread. Return to all comments →
searching in a list requires O(N) time, whereas dict requires only O(1) time.
Pairs
You are viewing a single comment's thread. Return to all comments →
searching in a list requires O(N) time, whereas dict requires only O(1) time.