python:实现攀登 n 级楼梯的不同方式算法
#!/usr/bin/env python3
def climb_stairs(n: int) -> int:
"""
Distinct ways to climb a n step staircase where
each time you can either climb 1 or 2 steps.
Args:
n: number of steps of staircase
Returns:
Distinct ways to climb a n step