[LeetCode] Dungeon Game

An interesting problem. The code is also short and clear. The basic idea is to use a 2d array dp[i][j] to denote the minimum hp that is required before entering dungeon[i][j]. Since the knight needs t
相关文章
相关标签/搜索