You are given nums.
When you burst a balloon nums[i - 1] * nums[i] * nums[i + 1].
If either
Your task is to burst all the balloons to collect the maximum number of coins possible.
Return the maximum coins you can obtain by bursting the balloons in an optimal order.
Constraints:
nums.length
nums[i]
You are given nums.
When you burst a balloon nums[i - 1] * nums[i] * nums[i + 1].
If either
Your task is to burst all the balloons to collect the maximum number of coins possible.
Return the maximum coins you can obtain by bursting the balloons in an optimal order.
Constraints:
nums.length
nums[i]