MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/recursion/is_pali.cpp:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 return isPalindrome(s,i+1,n);
14}
15int main(){
16 cin.tie(0)->sync_with_stdio(0);
17 int n;cin>>n;
18 char str[n];
19 for (int i = 0; i < n; ++i)
20 {
21 cin>>str[i];
22
23 }
24 if(isPalindrome(str,0,n))
25 cout<<"its a palli"<<endl;
26 else
27 cout<<"its not palli "<<endl;
28 return 0;
29}

Callers

nothing calls this directly

Calls 1

isPalindromeFunction · 0.70

Tested by

no test coverage detected