You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DungeonGame class implements a solution to the Dungeon Game problem using dynamic programming. The goal is to determine the minimum initial health points needed for a knight to survive a dungeon represented by a 2D grid, where each cell contains a health value that can be positive or negative. The knight moves from the top-left corner to the bottom-right corner, and the solution calculates the minimum health required to ensure the knight's health never drops to zero or below at any point.
0 commit comments