Question DSA-SORT-0002
EasyWhich sorting algorithm repeatedly selects the minimum of the unsorted part and puts it in place?
- A.
Quick sort
- B.
Selection sort
- C.
Show answer and explanation
Answer: B
Selection sort always makes O(n²) comparisons but at most n − 1 swaps.