[ Python ] 🐍🐍 Simple Python Solution ✅✅ 89 ms
\nclass Solution:\n    def applyOperations(self, nums: List[int]) -> List[int]:\n        for i in range(len(nums)-1):\n            if nums[i]==nums[i+1]:\n     
```\nclass Solution:\n    def applyOperations(self, nums: List[int]) -> List[int]:\n        for i in range(len(nums)-1):\n            if nums[i]==nums[i+1]:\n                nums[i]*=2\n                nums[i+1]=0                \n        temp = []\n        zeros = []\n        a=nums\n        for i in range(len(a)):\n            if a[i] !=0:\n                temp.append(a[i])\n            else:\n                zeros.append(a[i])\n        return (temp+zeros)\n        \n```
['Python', 'Python3']