摘要: 题目链接 https://leetcode-cn.com/problems/dungeon-game/ 解题思路: 状态转移方程:dp[i][j]=max(1,min(dp[i+1][j],dp[i][j+1])-dungeon[i][j]). 代码: class Solution { public 阅读全文
posted @ 2020-02-03 16:09 逍遥吹雪 阅读(107) 评论(0) 推荐(0)