rulcode
Dashboard
Learn
Practice
Pricing
Toggle theme
Sign In
Fetching algorithms...
Burst Balloons Visualizer & Solution | Rulcode
Loading problem details...
rulcode
All problems
Toggle theme
Sign In
Description
Visualizations
Solutions
Submissions
163.
Burst Balloons
Hard
Topics
Companies
Hint
Understand Before Coding
Visualize This Problem
Open Visualizer
Draw Your Approach
Draw
Example 1:
Input:
nums = [3,1,5,8]
Output:
167
Explanation:
nums = [3,1,5,8] --> [3,5,8] --> [3,8] --> [8] --> [] coins = 3*1*5 + 3*5*8 + 1*3*8 + 1*8*1 = 167. The optimal bursting order yields a maximum of 167 coins.
Example 2:
Input:
nums = [1,5]
Output:
10
Explanation:
The optimal bursting order yields a maximum of 10 coins.
Constraints:
•
•
Learn
Understand the pattern
Steps to Solve
Time Complexity
O(n³)
Space Complexity
O(n²)
Topics
Companies
Hint
Use Cases
0
Code
Thinkpad