We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4c1a6 commit f1769c4Copy full SHA for f1769c4
Dynamic-Programming/ZeroOneKnapsack.js
@@ -50,10 +50,9 @@ const main = () => {
50
arr.push(input[j])
51
j++
52
}
53
- const newArr = []
54
- arr.map(e => {
55
- newArr.push(e.trim().split(' ').map(Number))
56
- })
+ const newArr = arr.map(e =>
+ e.trim().split(' ').map(Number)
+ )
57
const cache = []
58
for (let i = 0; i <= currlen; i++) {
59
const temp = []
0 commit comments