Interviewers usually expect three things when they ask this:
- Can you name the sorting algorithms?
- Do you understand how they work at a high level?
- Do you know when to use which one?
🧠 Big Picture: Categories of Sorting Algorithms
1️⃣ Comparison-Based Sorting
(Elements are compared with each other)
Bubble Sort
Selection Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
2️⃣ Non-Comparison Sorting
(Use properties like digits, range, or counts)
Counting Sort
Radix Sort
Bucket Sort