Simplest || Easy Solution || without using stack
\n//Please upvote , if you like my solution :)\nint calPoints(vector<string>& ops) {\n        vector<int> nums;\n        for(auto &it : ops){\n            if(it
```\n//Please upvote , if you like my solution :)\nint calPoints(vector<string>& ops) {\n        vector<int> nums;\n        for(auto &it : ops){\n            if(it == "+"){\n                nums.push_back(nums.back() + nums[nums.size()-2]);\n            }else if(it == "C"){\n                nums.pop_back();\n            }else if(it == "D"){\n                nums.push_back(2*nums.back());\n            }else{\n                nums.push_back(stoi(it));\n            }\n        }\n        return accumulate(nums.begin(),nums.end(),0);\n    }\n//Please upvote , if you like my solution :)\n```
['Stack', 'C', 'Python', 'C++', 'Java', 'Python3']