Home / Engineering / Data Structure (DS) / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) If Hibbard increments (h1= 1, h2= 3, h3= 7, …, hk = 2k–1) are used in a Shell sortimplementation, then the best case time complexity will be

(A) O(nlogn)
(B) O(n)
(C) O(n2)
(D) O(logn)
Correct answer : Option (A) - O(nlogn)

Share

Discusssion

Login to discuss.