Search⌘ K
AI Features

Dungeon Game

Explore how to use dynamic programming to solve the Dungeon Game problem by determining the minimum initial health a knight needs to safely reach the princess. Understand grid traversal, health impact from demons and magic orbs, and learn to develop an efficient algorithm for this classic coding interview challenge.

Statement

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