easy and different thought
Intuitionto make this convertion easy we convert the number into negative cause here base is negative .if number is zero return 0 other wise we divided the numb
# Intuition
to make this convertion easy we convert the number into negative cause here base is negative .if number is zero return 0 other wise we divided the number by base add the remain into string if remain is negative 1 we add postive 1 after finish i mean when n =0 we rotated the string

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

# Complexity
- Time complexity:
O(log(n))

- Space complexity:
O(1)

# Code
```python3 []
class Solution:
    def baseNeg2(self, n: int) -> str:
        if n==0:
            return '0'
        n=-n
        res=''
        while n !=0:
                a=n% (-2)
                n=n//(-2)
                if a==-1:
                        a=1
                res+=str(a)
        return(res[::-1])
                
```
['Python3']