leetcode刷题(三)

问题链接:https://leetcode.com/problems/climbing-stairs/description/ 问题描述:爬一个长度为N的楼梯,每次可以爬一节或者两节楼梯,求出爬楼梯的方法: 我的答案: class Solution:    def climbStairs(self, n):         """         :type n: int         :rty
相关文章
相关标签/搜索