Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ initMemo
Function
initMemo
javascript/0322-coin-change.js:67–67 ·
view source on GitHub ↗
(amount)
Source
from the content-addressed store, hash-verified
65
};
66
67
const
initMemo = (amount) => Array(amount).fill(0);
68
69
var
dfs = (coins, amount, memo, min = Infinity) => {
70
for
(
const
coin of coins) {
Callers
1
coinChange
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected