You are given an integer array boxes where each element represents the color of a box.
You can perform multiple rounds of box removal until no boxes remain. In each round, you can select a contiguous sequence of
Return the maximum total points you can obtain.
Constraints:
boxes.length
boxes[i]
You are given an integer array boxes where each element represents the color of a box.
You can perform multiple rounds of box removal until no boxes remain. In each round, you can select a contiguous sequence of
Return the maximum total points you can obtain.
Constraints:
boxes.length
boxes[i]