In the given problem, number of candidates is less but the number of votes is significantly large. For this problem we can use counting sort.
Consider the sorting algorithms: Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, Heap Sort, and Quick Sort. Which of these are stable?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here