Перейти к содержимому

LeetCode 64 | Minimum Path Sum | Dynamic Programming Algorithm Explained (Java)

Xavier Elon

0:00 / 0:00

LeetCode 64 | Minimum Path Sum | Dynamic Programming Algorithm Explained (Java)

1 078 просмотров · 6 лет назад
Xavier Elon
4,52 тыс. подписчиков
1 078 просмотров · 6 лет назад
Today we go over a popular Dynamic Programming problem, Minimum Path Sum. Running Time: O(n) Space Complexity: O(1) The description for this problem reads: "Given a m 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. Example: Input: [ [1,3,1], [1,5,1], [4,2,1] ] Output: 7" Always be pluggin: Slack Channel: https://join.slack.com/t/xavierelonle... Github: https://github.com/xavierelon1 Facebook:   / xavier.hollingsworth.3   Instagram:   / xavierelon   LinkedIn:   / xavier-hollingsworth-524144127   Twitter:   / elon_xavier