- Advanced
- About 14 min
Adjacent-swap steps
Follow a machine that compares neighbours and swaps them in each pass, and count how many passes are needed.
If something looks wrong, please tell us.
This lesson is part of a premium course. It comes with Sikhora Learning membership. The course's free preview lessons are open to everyone.