Sorting algorithms — true or false?
Exercise and reference answers
- Questions
- Statement is true
- Yes
- Statement
- Merge Sort is a stable sort.
- Statement is true
- Yes
- Statement
- Quick Sort has O(n²) worst-case time complexity.
- Statement is true
- Yes
- Statement
- Heap Sort is an in-place sort with O(n log n) time.
- Statement is true
- No
- Statement
- Counting Sort can sort floating-point numbers in O(n) time.
Continue learning with Quill →Browse more GATE CSE questions and exercises →