SImple C++ solution - Making remainder positive
\nclass Solution {\npublic:\n    string baseNeg2(int N) {\n        string s;\n        if(N==0)return "0";\n        while(N!=0){\n            int temp=N%(-2);\n 
```\nclass Solution {\npublic:\n    string baseNeg2(int N) {\n        string s;\n        if(N==0)return "0";\n        while(N!=0){\n            int temp=N%(-2);\n            cout<<temp<<endl;\n            N/=(-2);\n            if(temp<0){\n                temp+=(2);\n                N++;\n            }\n          //  cout<<temp;\n            s.insert(s.begin(),temp+\'0\');\n            \n        }\n        return s;\n    }\n};\n```
['C']