Algorithms

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738
Question 36
Medium

A bubble sort is being carried out to sort the following list of numbers into ascending order:

| 4 | 8 | 2 | 9 | 1 | 5 | 3 |

State the number of swaps that will be made during the first pass of the algorithm.

[1]

Algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Algorithms