CAPE Computer Science Unit 2 · 2013 · Paper 2 · Question 2(a)(iv)b)
Given a C function `bubbleSort(int a[], int numItems)` implementing bubble sort on an array of integers.
Show the contents of the array at the end of the SECOND and THIRD passes of the bubble sort.
This question uses a figure or table from the paper — you'll see it when you practise.
The mark scheme is shown once you've answered.
Practise this question