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 hints

Topics

Also asked at 37 companies


More Google Questions

View all Google questions