Leetcode 312. Burst Balloons
Given an array of balloon values, find the maximum coins you can collect by bursting balloons optimally. When you burst balloon at index i, you gain coins equal to nums[i-1] * nums[i] * nums[i+1] (treat out-of-bounds as 1). Return the maximum total coins obtainable. The reward depends on dynamic neighbors, so the core challenge is exploiting optimal substructure (interval/segment DP over subarrays) to find the best bursting sequence for n up to 300.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late February, 2026
Amazon
Mid-level
Late March, 2025
Amazon
Mid-level
was asked the LC question without any variations
Late January, 2025
Mid-level
Burst Balloons - Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.