1769. Minimum Number of Operations to Move All Balls to Each Box
Description
**Input:** boxes = "110"
**Output:** [1,1,3]
**Explanation:** The answer for each box is as follows:
1) First box: you will have to move one ball from the second box to the first box in one operation.
2) Second box: you will have to move one ball from the first box to the second box in one operation.
3) Third box: you will have to move one ball from the first box to the third box in two operations, and move one ball from the second box to the third box in one operation.**Input:** boxes = "001011"
**Output:** [11,8,5,4,3,4]ac
Previous1768. Merge Strings AlternatelyNext1770. Maximum Score from Performing Multiplication Operations
Last updated