InterviewSolution
Saved Bookmarks
| 1. |
Consider the following unsorted list: 90 78 20 46 54 1 Write the list after:1. 3rd iteration of selection sort2. 4th iteration of bubble sort3. 5th iteration of insertion sort Ans. Working : |
|||||||||||||||||||||
|
Answer»
Working:
1. 3rd iteration of selection sort: [1,20,46,78,54,90] 2. 4th iteration of bubble sort: [1, 20, 46, 54, 90, 78] 3. 5th iteration of insertion sort: [1, 20, 46, 54, 78, 90] |
||||||||||||||||||||||