个人觉得很好理解的java解法
\nclass Solution {\n    public List<Boolean> prefixesDivBy5(int[] A) {\n        List<Boolean> result = new ArrayList<>();\n        int current = 0;\n        for
```\nclass Solution {\n    public List<Boolean> prefixesDivBy5(int[] A) {\n        List<Boolean> result = new ArrayList<>();\n        int current = 0;\n        for (int i:A){\n            current = (current*2+i)%10;\n            result.add(current%5==0);\n        }\n        return result;\n}\n}``\n```
[]