Exercises/#60 Burst Balloons
#60

Burst Balloons

Hard🧩 Dynamic Programming
140 XP

Problem

Given n balloons with values, burst them one at a time. Bursting balloon i gives nums[i-1]*nums[i]*nums[i+1] coins. Maximize total coins.

Examples

Input: nums=[3,1,5,8]
Output: 167 (burst order: 1,5,3,8 β†’ 3+30+15+24+16+72=167... optimal)
dynamic-programminginterval-dp
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

60 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features