Minimum Path Sum | Recursive | Dynamic Programming | Minimum cost Path

Publicado em: 15 Junho 2020
no canal de: Anurag Vishwa
1,873
40

Problem URL - https://leetcode.com/problems/minimum...
(Leetcode : 64 )
Solution : https://github.com/anuragvishwa/codin...
00:00- Description
02:13 - State Space Tree
02:54 - Recursive Approach
14:15 - Boundary Conditions
16:22 - Recursive Code
19:55 - Time Complexity Recursive
20:27 - Overlapping Subproblems
21:02 - Dynamic Programming Approach
26:33 - Dynamic Programming Code
Problem Statement -
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimises 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
Explanation: Because the path 1→3→1→1→1 minimises the sum.


Nesta página do site você pode assistir ao vídeo on-line Minimum Path Sum | Recursive | Dynamic Programming | Minimum cost Path duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Anurag Vishwa 15 Junho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,873 vezes e gostou 40 espectadores. Boa visualização!