JavaScript Solution, Straight forward
javascript\\\nvar prefixesDivBy5 = function(A) {\n    let cur = 0;\n    const r = []\n    for (const a of A) {\n        cur = ((cur << 1) | a) % 5;\n        r.p
```javascript\\\nvar prefixesDivBy5 = function(A) {\n    let cur = 0;\n    const r = []\n    for (const a of A) {\n        cur = ((cur << 1) | a) % 5;\n        r.push(cur === 0);\n    }\n    return r;\n};\n```
[]