🟢🔴🟢 Beats 100.00%👏 Dart Solution 🟢🔴🟢

```dart []
class Solution {
  String baseNeg2(int n) {

    if(n == 0) {
        return "0";
    }else{
        List<String> res = [];
        while(n != 0){
            int r = n.remainder(-2);
            n ~/= -2;
            if(r < 0){
                r += 2;
                n++;
            }
            res.add(r.toString());
        }
        return res.reversed.join();
    }
 

  }
}
```
['Python', 'C++', 'Java', 'JavaScript', 'C#', 'Dart']