MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / helper

Function helper

Recursion/Code/palindrome.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace std;
5
6int helper(string S, int start, int end){
7 if (start>=end){
8 return 1;
9 }
10 if(S[start]!=S[end]){
11 return 0;
12 }
13 return helper(S, start+1, end-1);
14}
15
16int isPalindrome(string S)
17{

Callers 1

isPalindromeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected