python solution
Intuitionconvert it into numeric value and check the visibilityComplexity
Time complexity:
O(n)
Space complexity:
O(n)Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
convert it into numeric value and check the visibility

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->
O(n)

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->
O(n)

# Code
```python3 []
class Solution:
    def prefixesDivBy5(self, nums: List[int]) -> List[bool]:
        str_arr = list()
        res = list()
        for i in nums:
            str_arr.append(str(i))
            res.append(int("".join(str_arr), 2) % 5 == 0)
                # res.append(True)
        return res

        
```
['Python3']