结实小鸭子

文章
3
资源
0
加入时间
3年2月3天

LeetCode题解(0403):青蛙过河(Python)

题目:原题链接(困难)标签:动态规划解法时间复杂度空间复杂度执行用时Ans 1 (Python)O(N)O(N)O(N)O(N)O(N)O(N)204ms (71.62%)Ans 2 (Python)Ans 3 (Python)解法一:class Solution: def canCross(self, stones: List[int]) -> bool: size = len(stones)