File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 112
112
- [ Binary Search Basic Problems] ( #binary-search-basic-problems )
113
113
- [ Binary Search Advanced Questions] ( #binary-search-advanced-questions )
114
114
- [ Greedy Algorithm] ( #greedy-algorithm )
115
+ - [ Min Coins Problem] ( #min-coins-problem )
115
116
- [ References] ( #references )
116
117
117
118
> 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
1232
1233
It is useful for optimization problem.
1233
1234
Below is the template.
1234
1235
1236
+ - Watch [ these videos] ( https://www.youtube.com/watch?v=HzeK7g8cD0Y&list=PLqM7alHXFySESatj68JKWHRVhoJ1BxtLW&t=0s ) to learn greedy algorithm
1237
+
1235
1238
``` js
1236
1239
getOptimal (items, n)
1237
1240
1 - Initialize result as 0
@@ -1243,7 +1246,13 @@ getOptimal(items, n)
1243
1246
3 - return result;
1244
1247
```
1245
1248
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 >
1247
1256
1248
1257
## References
1249
1258
You can’t perform that action at this time.
0 commit comments