C++|| EASY TO UNDERSTAND || fast and efficient
\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& nums) {\n      int n=nums.size();\n      vector<bool> vec;\n      int num=0; \n      f
```\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& nums) {\n      int n=nums.size();\n      vector<bool> vec;\n      int num=0; \n      for(int i=0;i<n;i++)\n      {\n         num=(num*2+nums[i])%10;\n         vec.push_back(num%5==0);\n      }\n    return vec;\n    }\n};\n```\n**Please upvote to motivate me in my quest of documenting all leetcode solutions(to help the community). HAPPY CODING:)\nAny suggestions and improvements are always welcome**
[]