Coding

Minimum Path Sum

Find the minimum path sum from top-left to bottom-right in a grid.

Input: grid = [[1,2,3],[4,5,6]]

Output: 12

Explanation: The optimal path moves along 1 -> 2 -> 3 -> 6, resulting in a minimum accumulated sum of 12.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions