Fetching algorithms...
Burst Balloons Visualizer & Solution | Rulcode
Loading problem details...
rulcode
All Problems
Toggle theme
Sign In
Description
Visualizations
Solutions
Submissions
Buddy
163.
Burst Balloons
PRO
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
Code
Thinkpad