Single Choice Easy

QHow is the time complexity of the shell sort algorithm expressed?

ID: #21503 Time Complexity 107 views
Question Info
#21503Q ID
EasyDifficulty
Time ComplexityTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(N)
  • B O(log N)
  • C O(N^2)
  • D O(N log N)
Correct Answer

Explanation

Shell sort has a time complexity of O(N^2) in its worst-case scenario, depending on the gap sequence chosen.

Share This Question

Challenge a friend or share with your study group.