Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Algorithms Searching, Sorting and Hashing Sorting
Consider an array with 6 elements starting with index 0 given below
20, 10, 9, 40, 21, 19
What is the sequence of the data after 1st iteration, if bubble sort is applied on the given set of data?1
9, 10, 19, 20, 21, 40
2
10, 9, 20, 19, 21, 40
3
10, 9, 20, 21, 19, 40
4
40, 9, 20, 21, 19, 10