You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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?"
],
"examples": [
{
"input": "2",
"output": "2",
"explanations": [
"There are two ways to climb to the top: 1 step + 1 step or 2 steps."
]
}
],
"constraints": ["1 <= n <= 45"],
"functionArguments": ["n"],
"hints": ["To reach nth step, what could have been your previous steps?"]