Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
using namespace std;
5
6
int 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
16
int isPalindrome(string S)
17
{
Callers
1
isPalindrome
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected