Python: 5 lines of code with bad explanation
python\nclass Solution:\n    def prefixesDivBy5(self, nums: List[int]) -> List[bool]:\n        n = 0\n        for i, bit in enumerate(nums):\n            n = (n
```python\nclass Solution:\n    def prefixesDivBy5(self, nums: List[int]) -> List[bool]:\n        n = 0\n        for i, bit in enumerate(nums):\n            n = (n << 1) + bit\n            nums[i] = not (n % 5)\n        return nums`\n```\n\nReuse the list to save space\nIDK if (n << 1) or (n * 2) is faster
['Python3']