Question DSA-SRCH-0070
HardWhat is the expected time of interpolation search on uniformly distributed data, and its worst case?
- A.
O(log log n) expected, O(n) worst case
- B.
O(n) both
- 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
Searching and Binary Search question
What is the expected time of interpolation search on uniformly distributed data, and its worst case?
O(log log n) expected, O(n) worst case
O(n) both
Sign up free to see the answer and a step-by-step explanation.
O(log n) both
O(1) expected, O(log n) worst