High Definition Standard Definition Theater
Video id : 4Ixo2GZXSdY
ImmersiveAmbientModecolor: #c5c5c4 (color 2)
Video Format : (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz
Audio Format: 140 ( High )
PokeEncryptID: a3861a4bc1a5c551fe0762ec2fd51a1ccc421a4abec14b788729aacdad4cc4df5a6ea939f3f5dc0e6a0d44c443597482
Proxy : cal1.iv.ggtyler.dev - refresh the page to change the proxy location
Date : 1732406690678 - unknown on Apple WebKit
Mystery text : NEl4bzJHWlhTZFkgaSAgbG92ICB1IGNhbDEuaXYuZ2d0eWxlci5kZXY=
143 : true
4 Steps To Solve Dynamic Programming Problems
 60 FPS video
87,926 Views โ€ข Oct 8, 2024 โ€ข Click to toggle off description
4 Steps To Solve Dynamic Programming Problems
Metadata And Engagement

Views : 87,926
Genre: Education
Uploaded At Oct 8, 2024 ^^


warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 4.893 (172/6,234 LTDR)

97.32% of the users lieked the video!!
2.68% of the users dislieked the video!!
User score: 95.98- Overwhelmingly Positive

RYD date created : 2024-11-20T17:58:45.314835Z
See in json
Tags
Connections
Nyo connections found on the description ;_; report an issue lol

46 Comments

Top Comments of this video!! :3

@GregHogg

1 month ago

Master dynamic programming and all data structures and algorithms for FREE at algomap.io/ :)

4 |

@epinator88

1 month ago

asserting dominance over the interviewer by intentionally making an O(n^n) program and leaving before he can ask questions

13 |

@FrozenKnight21

1 month ago

This explains dynamic programming better than my professor in college.

1 |

@hilium3000

1 month ago

Matrix chain multiplication is a great problem to learn first 3 steps that you stated

|

@irispallis

1 month ago

I really like to see your face expressions while you r going over the solutions, thank you

|

@sankettank6193

1 month ago

Very informative ๐Ÿ˜ธ

|

@sorcdk2880

1 month ago

As usual there is some kind of problem with this video, and this time it is a misunderstanding of just how much is covered by dynamic programming.

What is shown here only works for taking an algorithm that works slowly normally and then slowly turning it into a dynamic programming version of itself, which can help a lot with its performance.

What it is missing is that dynamic programming is a design technique for algorithms in a more general sense, and not all such algorithms comes from such a conversion, and some of them would not even have a corrisponding recursive form. An example of the latter is Dijkstra's shortest path algorithm, where you successively add the node the shortest away from those already noted, by looking at the neighbourhood of nodes already added, basically the outgoing edges. That algorithm requires that you know which of such edges are next, but if you build it in a recursive form you would generally not be able to find it, and if you try to find it you will typically end up by constructing Dijkstras again, but just from the distination to the start instead.

What you acutally want to do in an interview is look for the kind of properties that enables it to be well solved with dynamic programming, and then talk about those properties and how you could exploit them to design a dynamic programming algorithm for just that problem. Actually writting out the code is usually not that valuable in an interview, whereas what you really want to do is show your knowledge and skill in problem solving, and that can be done well by describing the mental steps you go through to design a solution rather than write it down. That will be much quicker and as such will allow you to talk about many more possible solutions and their possible pros and cons, rather than get stuck with a single one and spendt time doing live coding, which everyone knows has high risk involved. Making 4 successing versions as described in this video compounds that risk of live coding by needing you to write a lot of lines of code.

All of this assumes that you actually have the knowledge and skills necessary, but if you do not really understand dynamic programming and it being shown fairly would be a detriment to you, then the technique shown here can help you by giving you an easy template to include some dynamic programming without requiring that good knowledge of it.

62 |

@IsaacAlcocer

1 month ago

Nice, finally option 4 in a video

|

@weissgal1977

1 month ago

what's the point of option 3 ?
its the same time complexity as 2, but practically it probably slightly slower with o(n) space complexity.
1. is textbook trivial, but completely useless for anything practical.
2. is very elegant IMHO, since its still nearly textbook trivial but as fast and efficient as any other solution.
4. is pretty optimal and quite elegant.

what's the point of 3 ?

|

@delgermaadavaajav941

1 month ago

fun fact: simple recurrent functions like fibanocci series can be solved in O(logn) using matrix exponention

|

@Ahmad_Faraj

1 month ago

GIGACHADS solve it in O(1) using Binet's formula ๐Ÿ—ฟ

17 |

@clrkgmii

1 month ago

Whats a programing

2 |

@nirmalgurjar8181

1 month ago

4th approach can be called N-Variable Solution.

|

@D0CTOR-ZED

1 month ago

Not sure why people are commenting about an O(log n) solution when an O(1) exists. There is a direct formula for the calculation of the nth number in the Fibonacci sequence.

|

@kubs1162

1 month ago

Why isnt this the approach first taught to us?

4 |

@themadplotter

1 month ago

Why hat inside?

3 |

@tehf00n

2 weeks ago

I hate coding exams. Ive coded for 25 years. I took a "no-experience required" programming test and they told me I failed. They lied. Every edge case was accounted for, their internal compiler said it all passed before I submit the code. Why go through all the pressure when they will just sift you anyway? The next time someone asks me to do a coding interview I'm going to refuse and tell them if they want my skills they can pay for them. If they want to just process coders like meat, they can take an intern.

|

@samlishen

1 month ago

I thought DP is banned in both Meta and Google

1 |

@apoorvan4608

1 month ago

Going through all 4 steps in an interview setting would mean rewriting code 4 times. How's a candidate supposed to do that

|

Go To Top