Easiest python solution with stack implemenation
\nclass Solution:\n    def calPoints(self, ops: List[str]) -> int:\n        stack=[]\n        for i,el in enumerate(ops):\n            if el==\'+\':\n          
```\nclass Solution:\n    def calPoints(self, ops: List[str]) -> int:\n        stack=[]\n        for i,el in enumerate(ops):\n            if el==\'+\':\n                stack.append(stack[-1]+stack[-2])\n            elif el==\'D\':\n                stack.append(stack[-1]*2)\n            elif el==\'C\':\n                stack.pop()\n            else:\n                stack.append(int(el))\n        return sum(stack)\n```
[]