Java Clean Code
\nclass Solution {\n    public int[] addNegabinary(int[] arr1, int[] arr2) {\n        LinkedList<Integer> res = new LinkedList<>();\n        int i = 1, carry = 
```\nclass Solution {\n    public int[] addNegabinary(int[] arr1, int[] arr2) {\n        LinkedList<Integer> res = new LinkedList<>();\n        int i = 1, carry = 0;\n        while( i <= arr1.length || i <= arr2.length || carry != 0){\n            int a = arr1.length - i > -1 ? arr1[arr1.length - i] : 0;\n            int b = arr2.length - i > -1 ? arr2[arr2.length - i] : 0;\n            if( a + b - carry >= 0){\n                res.addFirst((a  + b - carry) % 2);\n                carry = ( a  + b - carry)  / 2;\n            }else{\n                res.addFirst(1);\n                carry = -1;\n            }\n            i++;\n        }\n        int[] arr =  res.stream().dropWhile(x->x == 0).mapToInt(x->x).toArray();\n        return arr.length > 0 ? arr : new int[]{0};\n    }\n}\n```
['Java']