~/boss / hero-lineup
Permutations (backtracking)
The Line-Up
Four heroes, one line. List all 24 orders without skipping one.
Loading the fight…
How to beat it
Pick a hero for the first spot, then pick from the heroes who are left for the next. When every spot is filled, record the order. Then step back: put the last hero back on the bench and try the next one.
Now the real boss
Interviews ask for the code. Watch it run, then write it yourself, tested in Python, C++ or Java.
On your phone? Writing code is easier on a laptop: open bossfight.dev/problems/permutations there. Sign in with your email to keep your progress on every device.