Lompat ke konten

Lesson 29: Sort the bays

English

Put them in order

  • The robot measures 5 parking bays. Each one is a different depth.
  • Then it sorts the list from the smallest to the biggest, so the smallest car can go into the shortest bay.
  • You write the sort yourself: a bubble sort, one of the standard methods in IGCSE Paper 2.

Words for this lesson

Word Meaning
sort put in order, smallest first (ascending)
swap change the places of two values
pass one trip through the whole list
ascending going up: 1, 2, 3 …

Masuk atau buat akun

IGCSE, A-Level & AP