Search⌘ K
AI Features

Dungeon Game

Explore how to apply dynamic programming to solve the Dungeon Game problem. This lesson teaches you to calculate the minimum initial health a knight requires to safely navigate a dungeon grid with demons and magic orbs, ensuring survival to rescue the princess. By mastering this, you will improve your ability to solve complex optimization problems in coding interviews.

Statement

A group of demons has captured a princess and locked her in the bottom-right corner of a dungeon. The ...