Python - Clean and Simple!
Solution:\n\nclass Solution:\n    def backspaceCompare(self, s, t):\n        return self.parse(s) == self.parse(t)\n    \n    def parse(self, x):\n        res =
**Solution**:\n```\nclass Solution:\n    def backspaceCompare(self, s, t):\n        return self.parse(s) == self.parse(t)\n    \n    def parse(self, x):\n        res = []\n        for c in x:\n            if c != "#":\n                res.append(c)\n            else:\n                if res: res.pop()\n        return res\n```\n\nFollow-up: O(n) time and O(1) space\n\n**Solution**:\n```\nclass Solution:\n    def backspaceCompare(self, s, t):\n        i, j = len(s), len(t)\n        \n        while i >= 0 and j >= 0:\n            delete = 1\n            while delete: i -= 1; delete += 1 if i >= 0 and s[i] == \'#\' else -1\n            \n            delete = 1\n            while delete: j -= 1; delete += 1 if j >= 0 and t[j] == \'#\' else -1\n                \n            if i >= 0 and j >= 0 and s[i] != t[j]: return False\n        \n        return i < 0 and j < 0\n```
['String', 'Python', 'Python3']