Climbing Stairs at Google
Easy53.9% acceptance
This problem has 62.5% frequency at Google.
Problem Description
You are climbing a staircase. It takes `n` steps to reach the top. Each time you can either climb `1` or `2` steps. In how many distinct ways can you climb to the top?
Read full problem and hintsTopics
Also asked at 37 companies
More Google Questions
Add Two NumbersMediumTrapping Rain WaterHardLongest Palindromic SubstringMediumPalindrome NumberEasyBest Time to Buy and Sell StockEasy
View all Google questions