C++ basic sliding window code (Aditya Verma)
\nint numberOfSubstrings(string s) {\n        // This is problem is very much similar to Minimum Window Substring(hard)\n        int ans = 0;\n        string te
```\nint numberOfSubstrings(string s) {\n        // This is problem is very much similar to Minimum Window Substring(hard)\n        int ans = 0;\n        string temp = "abc";\n        unordered_map<char, int> umap;\n        for(char it: temp){\n            umap[it]++;\n        }\n        int i=0, j=0, count = umap.size();\n        while(j<s.size()){\n            if(umap.find(s[j])!=umap.end()){\n                umap[s[j]]--;\n                if(umap[s[j]]==0) count--;\n            }\n            if(count > 0) j++;\n            else if(count == 0){\n                while(count==0){\n                    if(umap.find(s[i])!=umap.end()){\n                        ans+= s.size()-j;\n                        umap[s[i]]++;\n                        if(umap[s[i]] > 0) count++;\n                    }\n                    i++;\n                }\n                j++;\n            }\n        }\n        return ans;\n    }\n```
['C', 'Sliding Window', 'C++']