Python - Memory Usage Less Than 100%, Faster than 100%
\nclass Solution:\n    def minRemoveToMakeValid(self, s: str) -> str:\n        \n        open = 0\n        s = list(s)\n        \n        for i, c in enumerate(
```\nclass Solution:\n    def minRemoveToMakeValid(self, s: str) -> str:\n        \n        open = 0\n        s = list(s)\n        \n        for i, c in enumerate(s):\n            if c == \'(\': open += 1\n            elif c == \')\':\n                if not open: s[i] = ""\n                else: open -= 1\n        \n        for i in range(len(s)-1, -1, -1):\n            if not open: break\n            if s[i] == \'(\': s[i] = ""; open -= 1\n        \n        return "".join(s)\n```
['Python', 'Python3']