diff --git a/leetcode/src/647.c b/leetcode/src/647.c new file mode 100644 index 000000000..d78d24391 --- /dev/null +++ b/leetcode/src/647.c @@ -0,0 +1,23 @@ + +/* Author : Saurav Dubey */ + + +int countSubstrings(char* s) { + int len = strlen(s); + int i; + int count = 0; + for( i=0; i=0 && tail+1