LeetCode - The World's Leading Online Programming Learning Platform 2
LeetCode - The World's Leading Online Programming Learning Platform 2
Choose three elements with equal values and delete them from the array.
Return the minimum number of operations required to make the array empty, or -1 if it is not possible.
Example 1: