What is the number of swaps required to sort n elements using selection sort, in the worst case?
- A\(\theta (n)\)
- B\(\theta (n logn)\)
- C\(\theta (n^{2})\)
- D\(\theta (n^{2} logn)\)
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems