Question DSA-SORT-0077
HardWhat is the worst-case time of Shell sort with Hibbard's gaps (2ᵏ − 1)?
- A.
O(n^1.5)
- B.
O(n)
- 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
Sorting question
What is the worst-case time of Shell sort with Hibbard's gaps (2ᵏ − 1)?
O(n^1.5)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(n log n)
O(n²)