-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
There are N stairs. A person standing at the bottom wants to reach the top. The person can climb either 1 stair or 2 stairs at a time.
Write a function, that counts the number of ways the person can reach the top.
For example, in the image below, there are 4 steps(levels). The person starts at step 1.

As you can see, there are 3 ways to reach the 4th step by climbing either 1 or 2 steps at a time.