diff --git a/04.04.2024.cpp b/04.04.2024.cpp new file mode 100644 index 0000000..26896d6 --- /dev/null +++ b/04.04.2024.cpp @@ -0,0 +1,21 @@ +class Solution +{ + public: + //Function to find sum of all possible substrings of the given string. + long long sumSubstrings(string s){ + + // your code here + long long prev=0, curr=0, ans=0; + long long mod=1e9+7; + + for(int i=0;i