Skip to content

Merge sort

ordering

Level 2 of 3

Also called Bottom-up merge sort.

Every number on its own is a run in order. Merge neighbouring runs into runs twice as long, round after round, by comparing their fronts and taking the smaller next, until one run holds the whole row.

comparisons
0
numbers placed
0

step 1 of 1

Examples

Whole numbers from 1 to 99, between 2 and 12 of them, separated by commas or spaces.