Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ initMemo
Function
initMemo
javascript/0518-coin-change-ii.js:65–68 ·
view source on GitHub ↗
(coins, amount)
Source
from the content-addressed store, hash-verified
63
};
64
65
var
initMemo = (coins, amount) =>
66
new
Array(coins.length + 2)
67
.fill()
68
.map(() =>
new
Array(amount + 2).fill(null));
69
70
var
dfs = (amount, coins, n, memo) => {
71
const
isLess = amount < coins[n - 1];
Callers
1
change
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected