Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
9
var
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
15
var
search = (
16
nums,
Callers
nothing calls this directly
Calls
2
search
Function · 0.70
initTabu
Function · 0.70
Tested by
no test coverage detected