You are given a nums of size
You need to apply
If nums[i] == nums[i + 1], multiply nums[i] by nums[i + 1] to
Otherwise, skip this operation.
After performing all operations, shift all
Return the modified array.
Constraints:
nums.length
nums[i]
You are given a nums of size
You need to apply
If nums[i] == nums[i + 1], multiply nums[i] by nums[i + 1] to
Otherwise, skip this operation.
After performing all operations, shift all
Return the modified array.
Constraints:
nums.length
nums[i]