Question

You need to sort employee records first by department (already grouped) and then by salary, without disturbing the relative order of employees with equal salary within a department. Which sorting algorithm is safe to use for the salary sort to preserve this property?

A Selection Sort
B Heap Sort
C Quick Sort
D Merge Sort
E Bubble Sort
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)