Java Simple Solution
\nclass Solution {\n    public List<Boolean> prefixesDivBy5(int[] nums) {\n        int cur = 0;\n        ArrayList<Boolean> res = new ArrayList<>();\n        \n
```\nclass Solution {\n    public List<Boolean> prefixesDivBy5(int[] nums) {\n        int cur = 0;\n        ArrayList<Boolean> res = new ArrayList<>();\n        \n        for(int i = 0 ; i < nums.length ; i++){\n            cur = (2 * cur + nums[i]) % 5;\n            if(cur == 0)\n                res.add(true);\n            else\n                res.add(false);\n        }\n        return res;\n    }\n}\n```
[]