Swap
sort it. then find out your number was destiny.
adjacent-swap sort — your count vs the true minimum
Sorting these bars by adjacent swaps has a fixed minimum count, set by the starting scramble before you touch anything. Your count measures how close you came to that unavoidable minimum, not how hard the puzzle felt.
Concepts: sorting, algorithms.
An interactive you play with one thumb, on Wundr.