Class 12 Computer Science Sorting NCERT Exercise Solution

Class 12 Computer Science NCERT Exercise Solution Sorting 1. Consider a list of 10 elements:numList = [7,11,3,10,17,23,1,4,21,5].Display the partially sorted list after three complete passes of Bubble sort. Answer: If the first element is bigger, it is swapped with the second. Else, no change is done. 2. Identify the number of swaps required for sorting […]

Class 12 Computer Science Sorting NCERT Exercise Solution Read More »