✅ C++ || Sliding window || Easy to understand
\nclass Solution {\npublic:\n    bool findSubarrays(vector<int>& nums) {\n        int n = nums.size();\n        vector<int> pref(n-1);\n        for(int i=1;i<n;
```\nclass Solution {\npublic:\n    bool findSubarrays(vector<int>& nums) {\n        int n = nums.size();\n        vector<int> pref(n-1);\n        for(int i=1;i<n;i++){\n            pref[i-1] = nums[i] + nums[i-1];\n        }\n        for(int i=0;i<n-1;i++){\n            for(int j = i+1;j<n-1;j++){\n                if(pref[i] == pref[j]) return true;\n                \n            } \n        }\n        return false;\n    }\n};\n```
['C']