MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / maxCoins

Function maxCoins

javascript/0312-burst-balloons.js:9–13  ·  view source on GitHub ↗
(nums)

Source from the content-addressed store, hash-verified

7 * @return {number}
8 */
9var maxCoins = (nums) => {
10 const _nums = [1, ...nums, 1]; /* Time O(N) | Space O(N) */
11
12 return search(_nums); /* Time O(N * N * N) | Space O((N * N) + HEIGHT) */
13};
14
15var search = (
16 nums,

Callers

nothing calls this directly

Calls 2

searchFunction · 0.70
initTabuFunction · 0.70

Tested by

no test coverage detected