Easy O(n) solution using Fraction
\nfrom fractions import Fraction\n\nclass Solution:\n    def fractionAddition(self, expression: str) -> str:\n        res = sum(map(Fraction, expression.replace
```\nfrom fractions import Fraction\n\nclass Solution:\n    def fractionAddition(self, expression: str) -> str:\n        res = sum(map(Fraction, expression.replace(\'+\', \' +\').replace(\'-\', \' -\').split()))\n        return str(res.numerator) + \'/\' + str(res.denominator)\n```
['Python']