Easy Brute-Force Approach for beginners
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def fractionAddition(self, expression: str) -> str:
        from fractions import Fraction
        if expression[0]!='-':
            expression='+'+expression
        nums=expression.split('+')
        new=[]

        for i in nums:
            temp=i.split("-")
            new+=temp
        operations=[]
        for i in expression:
            if i=='+' or i=='-':
                operations.append(i)

        res=[]
        op=0
        ans=0
        for f in new:
            if f != '':
                dn=f.split('/')
                n=Fraction(int(dn[0]),int(dn[1]))
                if operations[op]=='-':
                    ans-=n
                else:
                    ans+=n
                op+=1
        if len(str(ans))==1:
            return str(ans)+'/1'
        elif str(ans)[0]=='-' and len(str(ans))==2:
            return str(ans)+'/1'
        else:
            return str(ans)
```
['Python3']