Java 100% fast, simple
\nclass Solution {\n\tpublic List<Boolean> prefixesDivBy5(int[] A) {\n\t\tList<Boolean> result = new ArrayList<>(A.length);\n\t\tint s = 0;\n\t\tfor (int i : A)
```\nclass Solution {\n\tpublic List<Boolean> prefixesDivBy5(int[] A) {\n\t\tList<Boolean> result = new ArrayList<>(A.length);\n\t\tint s = 0;\n\t\tfor (int i : A)\n\t\t\tresult.add((s = (s * 2 + i) % 5) == 0);\n\n\t\treturn result;\n\t}\n}\n```
['Java']