Top MCQs on ShellSort Algorithm with Answers

Last Updated : 27 Sep, 2023

ShellSort is mainly a variation of Insertion Sort. In insertion sort, we move elements only one position ahead. When an element has to be moved far ahead, many movements are involved. The idea of shellSort is to allow exchange of far items. In shellSort, we make the array h-sorted for a large value of h … More on Shell Sort

Shell Sort

Shell Sort


Question 1
What is the best case complexity for shell sort?
Cross
O(1)
Tick
O(n)
Cross
O(logn)
Cross
O(n logn)


There is 1 question to complete.

 

Coding practice for sorting

 


Share your thoughts in the comments

Similar Reads