MCPcopy 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
67const initMemo = (amount) => Array(amount).fill(0);
68
69var dfs = (coins, amount, memo, min = Infinity) => {
70 for (const coin of coins) {

Callers 1

coinChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected