Skip to content

Code challenge

Climbing Stairs

Problem

You can climb 1 or 2 steps at a time. Given n stairs, return the number of distinct ways to reach the top.
Editor · javascript4 lines · 48 chars
Back to topic
Climbing Stairs — Dynamic Programming · Aevrofy