Exercises/#140 Minimum Path Sum in Grid
#140

Minimum Path Sum in Grid

Medium🧩 Dynamic Programming
85 XP

Problem

Given an mΓ—n grid filled with non-negative numbers, find the path from top-left to bottom-right that minimizes the sum. You can only move right or down.

Examples

Input: grid=[[1,3,1],[1,5,1],[4,2,1]]
Output: 7 (1β†’3β†’1β†’1β†’1)
dynamic-programmingmatrix
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

140 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features