File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 112112 - [ Binary Search Basic Problems] ( #binary-search-basic-problems )
113113 - [ Binary Search Advanced Questions] ( #binary-search-advanced-questions )
114114- [ Greedy Algorithm] ( #greedy-algorithm )
115+ - [ Min Coins Problem] ( #min-coins-problem )
115116- [ References] ( #references )
116117
117118> Coding interview question answers in JavaScript for Facebook, Amazon, Google, Microsoft or any company.
@@ -1232,6 +1233,8 @@ Below problems are lying under optimization problems. Just watch `Book Allocatio
12321233It is useful for optimization problem.
12331234Below is the template.
12341235
1236+ - Watch [ these videos] ( https://www.youtube.com/watch?v=HzeK7g8cD0Y&list=PLqM7alHXFySESatj68JKWHRVhoJ1BxtLW&t=0s ) to learn greedy algorithm
1237+
12351238``` js
12361239getOptimal (items, n)
123712401 - Initialize result as 0
@@ -1243,7 +1246,13 @@ getOptimal(items, n)
124312463 - return result;
12441247```
12451248
1246- - Watch [ these videos] ( https://www.youtube.com/watch?v=HzeK7g8cD0Y&list=PLqM7alHXFySESatj68JKWHRVhoJ1BxtLW&t=0s ) to learn greedy algorithm
1249+ ### Min Coins Problem
1250+
1251+ <p class =" codepen " data-height =" 300 " data-theme-id =" dark " data-default-tab =" js,result " data-slug-hash =" XWRmVLj " data-user =" rupeshtiwari " style =" height : 300px ; box-sizing : border-box ; display : flex ; align-items : center ; justify-content : center ; border : 2px solid ; margin : 1em 0 ; padding : 1em ;" >
1252+ <span >See the Pen <a href =" https://codepen.io/rupeshtiwari/pen/XWRmVLj " >
1253+ Min Coins</a > by Rupesh Tiwari (<a href =" https://codepen.io/rupeshtiwari " >@rupeshtiwari </a >)
1254+ on <a href =" https://codepen.io " >CodePen</a >.</span >
1255+ </p >
12471256
12481257## References
12491258
You can’t perform that action at this time.
0 commit comments