特牛网址导航

leetcode: 45. 跳跃游戏II-DP_dp = [float('inf')] * (n + 1)-CSDN博客

网友收藏
文章浏览阅读146次。dp[i] 表示位置i的时候需要的最小次数。_dp = [float('inf')] * (n + 1)