Python Easy and Straightforward Solution w/ Explanation, 18ms beats 99.12%
Explanation:\nWe first have a list for the record (empty list)\nWe iterate through ops and each time we check if the current element is:\n\t- The letter "C": de
**Explanation**:\nWe first have a list for the record (empty list)\nWe iterate through `ops` and each time we check if the current element is:\n\t- The letter "C": delete last element in the record\n\t- The letter "D": add the double of the last element into the record\n\t- The symbol "+": add the sum of the last 2 elements into the record\n\t- Anything else (has to be an integer x, as said in the constraints)\n\nLastly, we take the sum of all the numbers in the record.\n\n\n\n```\nclass Solution(object):\n    def calPoints(self, ops):\n        """\n        :type ops: List[str]\n        :rtype: int\n        """\n        record = []\n        for i in range(len(ops)):\n            if ops[i] == \'C\':\n                record.pop()\n            elif ops[i] == \'D\':\n                record.append(record[-1] * 2)\n            elif ops[i] == \'+\':\n                record.append(record[-1] + record[-2])\n            else:\n                record.append(int(ops[i]))\n        return sum(record)\n```\n\n**If you liked this, please upvote to support me!**\n\n
['Python']