~/boss / stone-leap

Greedy (farthest reach)

The River Crossing

Can you reach the last stone? Track one number and call it before you fall in.

Loading the fight…

How to beat it

Each stone says the most stones you can jump from it. Walk forward one stone at a time and carry the farthest stone you could reach: the bigger of itself and this stone plus its jump. Standing past farthest? You're stuck. Farthest reaches the last stone? You're across.

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/jump-game there. Sign in with your email to keep your progress on every device.

More bosses

esc