Search⌘ K
AI Features

Solution: Burst Balloons

Solution: Burst Balloons asks for the maximum coins from bursting every balloon in an array. Each coin reward multiplies a balloon by its remaining neighbors, with virtual boundary balloons worth one.

Statement

You are given nn balloons, numbered from 00 to n−1n - 1 ...