Given a n x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path. Note: You can only move either down or right at any point in time.
Topics
Companies
Articles
Examples:
Expected Time Complexity: O(n^2)
Expected Auxiliary Space: O(n^2)
Constraints:
n == grid.length, grid[i].length
1 <= n <= 200
0 <= grid[i][j] <= 200
Companies:
AmazonMicrosoftSamsungGoldman Sachs
Topics:
ArrayDynamic Programming2D Array
Please log in to access the Submissions tab, where you can review your progress and explore code submissions from other participants.
Please log in to access the Solution tab and view detailed answers and explanations.
Please log in to access the Discussion tab and join conversations with other participants.
Access Restricted: Please Login to access the code editor and test cases.