English

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. - Computer Science (Python)

Advertisements
Advertisements

Question

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.

One Line Answer

Solution

Partially sorted list after three complete passes of Bubble sort is [3, 7, 10, 1, 4, 11, 5, 17, 21, 23].

shaalaa.com
Bubble Sort
  Is there an error in this question or solution?
Chapter 5: Sorting - Exercise [Page 79]

APPEARS IN

NCERT Computer Science [English] Class 12
Chapter 5 Sorting
Exercise | Q 1. | Page 79
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×