0
2.1kviews
Sort the following array using each of the three sorting algorithms 26,48,12,92,28,6,33 1)Bubble Sort 2)Insertion Sort 3)Selection Sort
1 Answer
3
67views

1] Bubble Sort

Algorithm for Bubble Sort:

Step 1 − Starting from the first position of the array, compare the first and the second elements.

Step 2 − If the first element is greater than the second element, they are swapped otherwise no need to swap.

Step 3 − Then …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.