Here is a list of numbers that need to be sorted in ascending order.
| 42 | 12 | 35 | 19 | 50 | 22 | 15 | 8 |
Perform the first pass of a bubble sort.
Complete the table to show how the list will have changed at the end of the first pass.
45 exam-style questions on Edexcel IGCSE Computer Science Algorithms. Each one has a worked solution and a mark scheme showing where the marks go.