Maximum Path Sum in a Grid

Asked at Meta · Coding Questions · Difficulty: Medium

Given an `m x n` grid of integers (values may be negative), start at the top-left cell `(0, 0)` and move only right or down to reach the bottom-right cell `(m-1, n-1)`. Return the maximum possible sum of the values along such a path.

Loading the problem…