st2581ag10
BAN USER
Questions (2)
Reputation 85
- 0of 0 votes
AnswersGiven a stairs of very large size. You are standing at the 0th step. You have to perform n actions. 1st action means you can move forward to 1 step or not. 2nd action is you can move 2steps or keep standing. 3rd action is you can move 3 steps or not and so on. Given is a step no. k which is broken. You can't stand on this step. Find out after performing n actions what can be the maximum no. of steps you can go.
- st2581ag10 in India| Report Duplicate | Flag | PURGE
Amazon SDE1 Puzzle
Page:
1
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Open Chat in New Window
Open Chat in New Window