Example 1
Example 2
1 <= nums.length <= 1051 <= moveFrom.length <= 105moveFrom.length == moveTo.length1 <= nums[i], moveFrom[i], moveTo[i] <= 109The test cases are generated such that there is at least a marble in moveFrom[i] at the moment we want to apply the ith move.Example 1
Example 2
1 <= nums.length <= 1051 <= moveFrom.length <= 105moveFrom.length == moveTo.length1 <= nums[i], moveFrom[i], moveTo[i] <= 109The test cases are generated such that there is at least a marble in moveFrom[i] at the moment we want to apply the ith move.