#70

Climbing Stairs

easy· 1-D DPruns: 0

You are climbing a staircase with n steps. Each time you can climb 1 or 2 steps. Return the number of distinct ways to climb to the top.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.