Question DSA-HASH-0004
EasyWhich Python data structure is implemented as a hash table?
- A.
dict
- B.
tuple
- C.
Show answer and explanation
Answer: A
Python dicts (and sets) use hashing for O(1) average lookups.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
Which Python data structure is implemented as a hash table?
dict
tuple
Answer: A
Python dicts (and sets) use hashing for O(1) average lookups.
str
list