What is the average time complexity of a dict lookup in Python?
Correct answer
C. O(1)
7 views
C. O(1)
7 views
Dictionaries are hash tables with average constant-time lookup.
Asked in: Python Interview Dictionaries
https://docs.python.org/3/tutorial/datastructures.html#dictionariesNot sure why the answer is C? Ask here and get an explanation.