Total Unique Ways To Make Change - Dynamic Programming ("Coin Change 2" on LeetCode)

Total Unique Ways To Make Change - Dynamic Programming ("Coin Change 2" on LeetCode)

Back To Back SWE

5 лет назад

164,804 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Rahul Mondal
Rahul Mondal - 12.10.2023 06:09

Very nice explanaation

Ответить
amerigo_wespuczi
amerigo_wespuczi - 26.08.2023 19:25

yeah I give up trying to understand and solve this question

Ответить
Allan Kong
Allan Kong - 12.08.2023 04:57

amazing how well you teach!! Thanks for great work you do!

Ответить
Siddharth Khandelwal
Siddharth Khandelwal - 10.08.2023 08:44

Knowing a concept is one thing, but being able to explain it so well is another .Your explanations are lucid and very easy to understad.

Ответить
jacob zak
jacob zak - 21.03.2023 00:43

Thanks mate you are the best! Very easy to understand!

Ответить
JRED
JRED - 15.02.2023 23:45

But why do you use table[row][col-coins[row-1]] when table[row][col-coins] serves the same purpose?

Ответить
Aayushi Khandelwal
Aayushi Khandelwal - 06.02.2023 23:39

Great video man!!! I loved the way you focussed on making everyone understand the subproblem first rather than just filling the table. Btw does Tushar Roy know he is used like a meme here :P?

Ответить
- Ali
- Ali - 30.12.2022 07:33

One of the most clear and thoughtful explanations on the subject, thank you for spreading your knowledge, you are an excellent prof!

Ответить
Helen
Helen - 21.12.2022 19:31

Really love how concise and informative this video is! Instead of getting straight into coding, thank you for drawing out the table and helping us reason through it in a way that actually makes sense and is succinct!

Ответить
ToastySofa
ToastySofa - 21.09.2022 04:48

absolute heat

Ответить
王冠信
王冠信 - 17.09.2022 15:14

One comment that I was using the algorithm on the Hackerrank preparation kit, each coin in the array must be less or equal to the target amount. Otherwise, the algorithm breaks. Thank you for the clear explaination.

Ответить
Daniele Boscolo
Daniele Boscolo - 09.09.2022 17:23

Love your videos! Very easy to understand! Thank you!

Ответить
Vitalii Kozlovskyi
Vitalii Kozlovskyi - 12.08.2022 15:03

Nah, not clear at all.

Ответить
Yiyi LIU
Yiyi LIU - 01.08.2022 06:04

You have made these problems soooooo easy to understand!!!

Ответить
mohamedAmine rg
mohamedAmine rg - 31.07.2022 10:45

great video

Ответить
Azhar Khan
Azhar Khan - 18.07.2022 19:44

Best explanation. Clear, concise. Thanks 👍

Ответить
Neil Jia
Neil Jia - 06.07.2022 00:15

This explaination is damn genius! Love it!

Ответить
eric einerson
eric einerson - 11.06.2022 18:27

I love how you explain this problem and the use of the disclaimer "do not memorize the patter, memorize the subproblem". Your order of explanation, repetition, knowledge of the subject, the thoroughness of your explanation and your enthusiasm are amazing! Thank you for creating this!

Ответить
Joshith Murthy
Joshith Murthy - 02.06.2022 08:29

Thanks for the video !! it really helped

Ответить
Ruzaik Rafeek
Ruzaik Rafeek - 20.04.2022 13:56

THIS IS THE BEST DP PROBLEM EXPLANATION EVER. THANKS!

Ответить
Markov Chains
Markov Chains - 26.03.2022 17:43

God bless you for this clear explanation I was struggling for hours

Ответить
Simona Nikolova
Simona Nikolova - 24.03.2022 21:29

thank you. this video made everything clear for me

Ответить
Raja Ganji
Raja Ganji - 15.02.2022 21:13

Tushar Cameo though haha...

Ответить
찌요
찌요 - 07.02.2022 17:07

thx bro! you've helped me a lot! I was struggling to understand this problem quite a long time. Goood work!

Ответить
Raisul Ahsan
Raisul Ahsan - 30.01.2022 06:55

Every single dynamic programming video should write out the underlying recurrence relation

Ответить
Praveen Banthia
Praveen Banthia - 29.01.2022 21:20

I might be missing something obvious but why does coin change need a dp[] and coin change 2 need a dp[][]. How do we determine when we need a 1D array vs a 2D array.

Ответить
Claire Boitet
Claire Boitet - 18.01.2022 02:12

You are a fabulous teacher, crystal clear, thank you so much!

Ответить
Chess Master
Chess Master - 02.01.2022 15:34

Why would you put 1 for emptyvarray? That is voodoo black Magic trial and error
I started with recursion memorization and looked at the numbers generated by that and tried to put relation. It dies not work unless you put 1 for empty array situational and when it works we comevup with some explanation as to why 1 shod be there for nothing. If 0 had worked foempty we could justify that also

Ответить
chahalpawanpreet
chahalpawanpreet - 25.12.2021 22:36

You are the GOAT

Ответить
silambarasan.s Sethu
silambarasan.s Sethu - 10.11.2021 19:21

Got the algo concept in ur video after failed attempts in understanding the same in two different videos.That said, u r clearer to me

Ответить
Q Lucky
Q Lucky - 06.11.2021 10:12

listening to the words of a wise man can be superior to studying ten years of books
聽君一席話,勝讀十年書。

Ответить
kaushelendra singh
kaushelendra singh - 01.11.2021 19:02

thanks for the explanation

Ответить
Nitin Vig
Nitin Vig - 19.10.2021 08:55

very well explained 👍

Ответить
Krishna Kshirsagar
Krishna Kshirsagar - 12.10.2021 20:09

Thanks for the nice explanation 💯

Ответить
Utkarsh Saboo
Utkarsh Saboo - 29.09.2021 02:37

Hi Benyam! I love your videos, I've been watching all of your dynamic programming problems! Thank you for the wonderful content.

However I do have a question, in this example you chose the number of ways we can make change using [1],[1,2] and [1,2,5] coins. But what is stopping using from using any other combination such as [1,5] or [2,5] or just [5] or just[2]. Are they already being covered somehow? Can I choose any three combinations?

Ответить
Ravikumar
Ravikumar - 26.09.2021 19:59

Hi bro can you code in Java or Java 8

Ответить
A K
A K - 22.09.2021 09:49

I struggle to understand iterative approaches towards dp problems. your video was great help! thanks ben!

Ответить
James Hizon
James Hizon - 31.08.2021 07:22

This is good. I believe it is also helpful for solving the different ways to represent N as a sum of K non-zero integers.

Ответить
zenek1290
zenek1290 - 26.08.2021 17:13

Alpha male explanation

Ответить
EKEMINI BASSEY
EKEMINI BASSEY - 24.08.2021 15:32

I needed to watch this video like over and over and over and read about dynamic programming again.

Ответить
Parker Perry
Parker Perry - 17.08.2021 22:48

Am I like the only one who thinks this is totally stupid? I understand 2nd grad mathematics but not dynamic programming

Ответить
David Guo
David Guo - 03.08.2021 00:30

God bless this man for his videos

Ответить
T3 Hasan sub
T3 Hasan sub - 28.07.2021 05:03

could someone explain why we don't need to use a 2d array for finding total ways that don't need to be unique, so 1+1+2 and 1+2+1 are counted differently

Ответить
Kilikia
Kilikia - 22.07.2021 18:02

But if 2 + 1 and 1 + 2 are different ways. Your solution doesn't work (

Ответить
Ashutosh Yadav
Ashutosh Yadav - 10.07.2021 10:43

Wow ! finally someone explained how the tabular method works. Thanks :)<3

Ответить
Akash Kirthik
Akash Kirthik - 25.06.2021 07:50

THE BEST explanation I've seen ! Awesome !

Ответить
First Last
First Last - 24.06.2021 07:54

¥€$

Ответить