Which sorting algorithm is worst?



Which sorting algorithm is worst?..

Answer / Hansraj Dwivedi

The worst-case time complexity of some sorting algorithms, such as Quicksort and Heapsort, can degrade to O(n^2) when the input data is poorly arranged. However, it's important to note that these algorithms are still considered efficient in practice due to their average-case time complexities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Why it is said that searching a node in a binary search tree is efficient than that of a simple binary tree?

1 Answers  


What is max heapify?

1 Answers  


What do you mean by an Array?

1 Answers  


What is breadth first tree?

1 Answers  


Is quicksort greedy algorithm?

1 Answers  


What is bubble sort in data structure?

1 Answers  


What is type structure?

1 Answers  


What are the complexity of binary search?

1 Answers  


What are trees in data structures?

1 Answers  


What is raid (redundant array of inexpensive disks)?

1 Answers  


What is hash value of a string?

1 Answers  


What is data and data structure?

1 Answers  


Categories