ByteByteGo logo
menuProblems List

Climbing Stairs

Easy

Determine the number of distinct ways to climb a staircase of n steps by taking either 1 or 2 steps at a time.

Example:

Input: n = 4
Output: 5

You can practice coding exercises online by logging into bytebytego.com on your laptop.