[Java] 100% Runtime easy just 1 iteration
\n\nUPVOTE IF YOU FIND IT USEFUL\n\n\n\nclass Solution {\n    public List<Boolean> prefixesDivBy5(int[] A) {\n        List<Boolean> list = new ArrayList<>();\n 
<hr>\n\n***UPVOTE IF YOU FIND IT USEFUL***\n<hr>\n\n```\nclass Solution {\n    public List<Boolean> prefixesDivBy5(int[] A) {\n        List<Boolean> list = new ArrayList<>();\n        \n        int val = 0;\n        for(int i=0;i<A.length;i++){\n            val = val * 2 + A[i];\n            \n            if((val %= 5) == 0)\n                list.add(true);\n            else\n                list.add(false);\n            \n        }\n        \n        return list;\n    }\n}\n```
[]