Question: We are walking up some stairs. With each step you take, you can choose to go up 1 or 2. This means that if there
We are walking up some stairs. With each step you take, you can choose to go up 1 or 2. This means that if there are three steps in the stairs, then we have 3 choices for ascending them (1-1-1, 1-2, or 2-1). a. If there are 4 steps, how many unique ways can you go up? List them. (5 points) b. Write a recursive method that will return the number of choices we have, based on how many steps are in the stairs.(15 points)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
