Using Python
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```python []\nfrom fractions import Fraction\n\nclass Solution(object):\n    def fractionAddition(self, expression):\n        # Split the expression into individual fractions\n        fractions = expression.replace(\'-\', \'+-\').split(\'+\')\n        \n        # Sum up all the fractions\n        result = sum(Fraction(f) for f in fractions if f)\n        \n        # Return the result as a string in the format "numerator/denominator"\n        return "{}/{}".format(result.numerator, result.denominator)\n\n```
['Python']