← All problemsSign in

Valid Plans

Problem description. You are designing a overhead bridge across a busy road for your city. You are given the maximum height (in metres) the bridge has to reach and the width of the road (in metres) it has to cross. For the people to climb the bridge, steps are used where each step raises the height of the bridge by 1 metre and has a width of 1 metre. The same type of steps can also be used to de

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start