[C++]/[Python] || Sliding window || Easy to understand
C++\n\nclass Solution {\npublic:\n    bool findSubarrays(vector<int>& nums) {\n        int l = nums.size();\n        if(l<=2) return false;\n        unordered_s
**C++**\n```\nclass Solution {\npublic:\n    bool findSubarrays(vector<int>& nums) {\n        int l = nums.size();\n        if(l<=2) return false;\n        unordered_set<int> m;\n        int s = nums[0]+nums[1];\n        m.insert(s);\n        for(int i=0; i<l-2; ++i){\n            s += nums[i+2]-nums[i];\n            if(m.find(s) != m.end()) return true;\n            else m.insert(s);\n        }\n        return false;\n    }\n};\n```\n**Python3**\n```\nclass Solution:\n    def findSubarrays(self, nums: List[int]) -> bool:\n        l = len(nums)\n        if(l<=2): return False\n        m = []\n        s = nums[0]+nums[1]\n        m.append(s)\n        for i in range(l-2):\n            s += nums[i+2]-nums[i]\n            if(s in m): return True\n            else: m.append(s)\n        return False\n```
['C']