Question PRG-PY-0060
MediumWhich data structure gives O(1) average membership tests in Python?
- A.
set
- B.
tuple
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
Which data structure gives O(1) average membership tests in Python?
set
tuple
Sign up free to see the answer and a step-by-step explanation.
list
str