Next video: kzbin.info/www/bejne/h523ZXt9bph6l9k Previous video: kzbin.info/www/bejne/ZoXYXnqIgsSfe5I
@sairamankilambi50074 жыл бұрын
I've been searching for dp tutorials and I have to say this is the best dp tutorial ever... Really appreciate it👍
@andreygrehov4 жыл бұрын
Thank you so much, Sai
@pythonxz Жыл бұрын
What a beautiful way to break down how to define the kinds of problems dynamic programming helps with.
@darshantawte74354 жыл бұрын
Best DP course I have stumbled upon.Keep up the good work Mr Andrey!!
@starbloods00134 жыл бұрын
I'm so happy I found this course. I love my school but sometimes my professors can't really explain concepts that well. You explain things so well! Thank you!
@mrrobotnik_4 жыл бұрын
Thanks for the tutorial, i'll be waiting for more videos, keep doing them. Much appreciation from Brazil. Bom Trabalho.
@andysong80852 жыл бұрын
func nSumRecursion(n int) int { if n == 0 { return 0 } if n == 1 { return 1 } return n + nSumRecursion(n-1) } Hi Andrey, I will contribute one Recursion version of nSum. I think pretty much someone is looking for recursion version as DP always be couple with recursion at the same time. Hope my contribution makes sense to you.
@shritishaw75103 жыл бұрын
please let me know whether I am right or not combinatorics problem means "HOW MANY WAYS ARE THERE TO DO A JOB" and optimization problem means "WHAT IS THE BEST POSSIBLE WAY TO DO A JOB"
@damaroro2 жыл бұрын
sweet jesus , I've been looking for very beginner DP programming course for a weeks, since I'm not from CS background, I found many DP course in youtube is really HARD, but this is an exception, I would love to see more Data structure and Algorithm course from your channel, you're such a good teacher
@yexijiang4 жыл бұрын
Curious how do you stay focus while the kids are around. That's also an important skill to work from home during this time period.
@andreygrehov4 жыл бұрын
Oh man, that's a good question. It's tough, but luckily, I have my own "office" - a small room where I both record these videos and do all the work.
@yaxlu4 жыл бұрын
Watching these videos in loop - very well done. Glad I stumbled upon them. Thank you ( a ton of times) for making these videos. Please keep doing it (more).
@pedrocolangelo58443 жыл бұрын
I found out your dynamic programming lectures playlist today and I am so excited about finishing it! Going to the 4th lecture right now. Thank you for posting these!
@TheAmron904 жыл бұрын
Wow I have never understood the fundamentals this well. Knowing the problem statement well, it was easier to understand the solution. Usually videos are describing a complicated problem at the start, which makes it difficult to understand. Thanks :)
@saraahmed408 Жыл бұрын
Thank you so much, DP was giving me such hard times! I watched a lot of videos, but yours are the ones that made me understand! Thank you
@theremin14413 ай бұрын
linear runtime: def sum(n): return (n+1)*(n/2)
@cutiex73573 жыл бұрын
WHY is this so therapeutic 🙈 Love it!
@andreygrehov3 жыл бұрын
Haha, thank you, @Cutie :)
@ichekaozuru19793 жыл бұрын
Thank you, Mr Grehov. I love your channel. Thank you for this awesome series.
@Mridul2k244 жыл бұрын
Thanks for this great video lecture series ,these lectures are really helpful . Lots of love and appreciation from India.
@AkkumBakkum-m5h6 ай бұрын
i m in love with dp after watching your videos thank you so much
@acidroot71264 жыл бұрын
Free great tutorial, thank you! It’s really cool explanation !
@mohammedalhaj15169 ай бұрын
this course is very beneficial, great work thank you for your time.
@Benjamin-Chavez3 жыл бұрын
Thanks again. This course is exactly what I needed.
@mfandrade9 ай бұрын
Awesome lecture! Thank you so much, Andrey!
@Enzoerb5 ай бұрын
What an amazing course!!
@rahulyadav81594 жыл бұрын
Loved your explanation.. Waiting for next cool video.
@shashankdhanai76082 жыл бұрын
first time using dp this videos are really helpfull...
@amrilsan9299 Жыл бұрын
Sir, your tutorial is very easy to understand, Big Thanks
@subid.majumdar3 жыл бұрын
Best lectures available on internet, please sir make more videos on different topics
@yeffdev4 жыл бұрын
Hi Andrey, any books with exercises and examples you recommend? Many thanks for your content!
@raghavddps24 жыл бұрын
Awesome video Andrey! Thank you so much for this course. On a side note, can you please suggest some good resources to learning GoLang ?. Thank you again for the Awesome content.
@andreygrehov4 жыл бұрын
Thank you, Raghav. As for Golang, here is a super quick intro to the language: tour.golang.org/welcome/1 The next step would be to go through a course or read a book. Here is a small book that is available for free: www.golang-book.com/books/intro It's slightly outdated, but a lot of stuff still holds. Also, check this link out: golang.org/doc/ It has a ton of useful up-to-date information. Go is a small, but very powerful language. One can learn it within a day or two.
@raghavddps24 жыл бұрын
@@andreygrehov Wow, thank you for these resources too. You are just awesome! Thank you so so much.
@mariestolk37949 ай бұрын
Your videos are amazing! Thank you so much for making these :)
@sandippaul1003 жыл бұрын
Great video... So the concept is we are storing previous results for future use. In some sense can I say that we are reducing time requirements by using extra space?
@virtyaluk4 жыл бұрын
Excellent work. Thank you.
@604motorsports11 ай бұрын
Thanks for the video. But, in this case, there is no benefit as you have to sum from 1 to n anyways, so what is the benefit of dp in this case or other cases?
@mihirsidhdhapurasensei4 жыл бұрын
Amazing. my fundamental now super solid. thanks to u sir;)
great lecture, thanks Andrey. For the example you gave, is it also a recurrsion problem? How do I differentiate these 2 types of problem?
@Alexey1st4 жыл бұрын
Why did you create array with size n+1? The loop works while i
@andreygrehov4 жыл бұрын
The n+1 is needed because of the base case, we store it at index 0. If I were to find the sum of only 1 element, the subproblems array would contain [0, 1], hence two elements (n=1 but the array size is n+1). Here, check it out: play.golang.org/p/z3RZyk8BS3v Does it make sense?
@Alexey1st4 жыл бұрын
@@andreygrehov Yeah, make sense. Thanks a lot for your efforts! Very appreciated.
@goshapoopkin7 күн бұрын
thank you for doing this, it is really appreciated. can i just ask what language did you use to write the code?
@andreygrehov7 күн бұрын
Thank you. The code is in Go Programming Language.
@bouzekriredouane4854 жыл бұрын
why not using a simple loop like that : int sums(int n){ int result = 0; for(int i = 0; i < n+1; i++) result += i; return result; }
@andreygrehov4 жыл бұрын
As I said, the problem in the video is just for demonstration purposes only. We obviously do not need DP here, it's just to let you feel what DP is.
@JustVideoClub2 жыл бұрын
Hii bro i am learning dp in python and now where can i get that code
@monishnjs3 жыл бұрын
How many ways and find maximum are same right?
@recce-tp9zj3 жыл бұрын
Great Videos.
@anubhavsethi34164 жыл бұрын
Looking forward for more videos
@andreygrehov4 жыл бұрын
Working on it
@nyashachiroro2531 Жыл бұрын
4:51 That was a perfect definition Jesus 😂
@32ask92 Жыл бұрын
thank you for your help really appreciate it :)
@glensee75063 жыл бұрын
I love it, thanks!
@sap13634 жыл бұрын
great video. Which keyboard do you use ?
@andreygrehov4 жыл бұрын
I use Macbook Pro.
@natnav34363 жыл бұрын
Hi, this is a great course. I tried to do the example in java using your technique and I was able to solve it public int addFirst(int n){ int[] h = new int[n + 1]; h[0] = 0; for (int i = 1; i
@andreygrehov3 жыл бұрын
Good job! Yes, that is still considered DP. In fact, you optimized space complexity from O(N) to O(1).
@natnav34363 жыл бұрын
@@andreygrehov Thank you
@ConernicusRex11 ай бұрын
In Swift: func nSum(_ n: Int) -> Int { guard n != 0 else { return 0 } var dp: [Int] = [0] for i in 1...n { dp.append(dp[i - 1] + i) } return dp[n] }
@josueteodoromoreira89214 жыл бұрын
Thank you so much!!!
@ethernet7643 ай бұрын
Code in C if anyone wants: int nSum(int n) { int *dp= alloca(1 + (n * sizeof(nSum(n)))); dp[0] = 0; for (int i = 1; i
@salmaelziady4386 Жыл бұрын
what kind of programming language is this? what ide is this?
@andreygrehov Жыл бұрын
Programming Language: Go (go.dev/) IDE: Intellij (www.jetbrains.com/idea/)