Java | Bit-manipulation
\n public List<Boolean> prefixesDivBy5(int[] nums) {\n        int a = 0;\n        List<Boolean> res = new ArrayList<>();\n        for (int i :nums) {\n         
```\n public List<Boolean> prefixesDivBy5(int[] nums) {\n        int a = 0;\n        List<Boolean> res = new ArrayList<>();\n        for (int i :nums) {\n            a = (a << 1 | i) % 5;\n            res.add(a == 0);\n        }\n        return res;\n    }\n```
['Bit Manipulation']