[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
相關文章
相關標籤/搜索