functional 2-liner
py\ndef parse(actions):\n    return reduce(lambda d,a: d[:-1] if a == \'#\' else d+a, actions, \'\')\n    \nclass Solution:\n    def backspaceCompare(self, S, T
```py\ndef parse(actions):\n    return reduce(lambda d,a: d[:-1] if a == \'#\' else d+a, actions, \'\')\n    \nclass Solution:\n    def backspaceCompare(self, S, T):\n        """\n        :type S: str\n        :type T: str\n        :rtype: bool\n        """\n        return parse(S) == parse(T)\n        \n```
[]