Find the number of ways to reach the nth floor from the ground. From floor i, you can jump to (i+1), (i+2), or (i+3), with the condition that a jump of size 3 can be made at most k times.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.