You are climbing a staircase with steps. Each time you can climb 1 or 2 steps. In how many distinct ways can you reach the top?
For : you can go 1+1+1, 1+2, or 2+1. That is 3 ways. This problem connects counting to recursion.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Counting paths with steps
You are climbing a staircase with steps. Each time you can climb 1 or 2 steps. In how many distinct ways can you reach the top?
For : you can go 1+1+1, 1+2, or 2+1. That is 3 ways. This problem connects counting to recursion.