Faster then 100% JAVA C++
UPVOTE IF YOU LIKE\n\n\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& A) {\n        int n = A.size();\n        vector<bool> res(n,fals
# UPVOTE IF YOU LIKE\n```\n\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& A) {\n        int n = A.size();\n        vector<bool> res(n,false);\n        int val = 0 ;\n        for(int i=0;i<n;i++){\n            if(!((val = val*2 + A[i])%=5)) \n                res[i]=true;\n        }\n        return res;\n    }\n};\n```
[]