Coin Change Problem [English] : Dynamic Programming.

Опубликовано: 12 Апрель 2026
на канале: LoveExtendsCode
2,084
39

/*
One thing that I've missed in the tutorial.
Suppose the coins I'm given are 2, 4, 5
now the sum I want to form is 1.
Now that's not possible. That's why sol(1) will return me INF.
Now 'INF' means that there's no solution for forming that sum.
*/

Code link: https://gist.github.com/LoveExtendsCo...


You might find these following videos helpful in 'Bangla' :-)

Introduction to Java playlist: https://goo.gl/3Bw2FU

C/C++ Programming :: https://goo.gl/99s2tV

Android Development: https://goo.gl/oRcdDq

Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq

CSS : https://goo.gl/LYzYBC

Java Swing Playlist: https://goo.gl/O4iaAV

Java Multithreading: https://goo.gl/5mXDYN

C++ STL: https://goo.gl/s1Jdwp