Easy Python Solution(89.05%)
Runtime: 64 ms, faster than 89.05% of Python3 online submissions for Remove All Adjacent Duplicates In String.\nMemory Usage: 14.9 MB, less than 21.60% of Pytho
Runtime: 64 ms, faster than 89.05% of Python3 online submissions for Remove All Adjacent Duplicates In String.\nMemory Usage: 14.9 MB, less than 21.60% of Python3 online submissions for Remove All Adjacent Duplicates In String.\n```\nclass Solution:\n    def removeDuplicates(self, s: str) -> str:\n        stack=[s[0]]\n        for i in range(1,len(s)):\n            if(stack and stack[-1]==s[i]):\n                stack.pop()\n            else:\n                stack.append(s[i])\n        return "".join(stack)
['Python', 'Python3']