Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ initTabu
Function
initTabu
javascript/0322-coin-change.js:118–124 ·
view source on GitHub ↗
(amount)
Source
from the content-addressed store, hash-verified
116
};
117
118
const
initTabu = (amount) => {
119
const
tabu = Array(amount + 1).fill(amount + 1);
120
121
tabu[0] = 0;
122
123
return
tabu;
124
};
Callers
1
coinChange
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected