×

Pancake sorting

Sorting algorithm
Pancake sorting is the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it. A pancake number is the minimum number of flips... Wikipedia
Worst-case complexity: n