← All problemsSign in

Grab A Ladder

Bhavya is here in Banasthali Campus for now ! As she stands on the roof of First department’s building, she wants to get to Mth department in her campus. But there’s a problem there ! She can go from a tall building to a shorter one by merely jumping , but can to get to a taller one from a shorter one she require ladders to climb. Find the minimum number of ladders required? Hint : In case of ju

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