← All problemsSign in

Easy Boxes

There are n boxes in a row from left to right. You are standing on the first box. From every step from box number i , you can jump at most k boxes further ( i+1,i+2,…,i+k). You cannot jump over box number n. How many ways are there to travel to box number n? Constraints: 1 ≥ T ≥ 50 1 ≥ n,k ≥ 103 Input format: The first line contains integer 'T', denoting the number of testcases. The followin

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