Python simple solution O(n)
\nclass Solution:\n    def prefixesDivBy5(self, nums: List[int]) -> List[bool]:\n        answer = []\n        start = 1\n        val = 0\n        for i in nums:
```\nclass Solution:\n    def prefixesDivBy5(self, nums: List[int]) -> List[bool]:\n        answer = []\n        start = 1\n        val = 0\n        for i in nums:\n            val += i\n            if val%5==0:\n                answer.append(True)\n            else:\n                answer.append(False)\n            val *= 2\n        \n        return answer\n\n```
[]