Question DSA-SORT-0005
EasyWhat is a stable sorting algorithm?
- A.
One that uses O(1) memory
- B.
One that keeps equal elements in their original relative order
- C.
Show answer and explanation
Answer: B
Stability matters when sorting records by one key after another, e.g. by name then by department.