Algorithms

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738
Question 34
Medium

A bubble sort algorithm is used to sort a telemetry dataset of temperatures (measured in tenths of a degree Celsius) into ascending order.

The initial unsorted list of six readings is:

| 240 | 180 | 310 | 120 | 450 | 150 |

State the number of passes that will be made to fully sort this list.

[4]

Algorithms Questions

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