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

Method helper

Recursion/Homework/palindrome.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9class Solution{
10public:
11 int helper(string S, int start, int end){
12 if (start>=end){
13 return 1;
14 }
15 if(S[start]!=S[end]){
16 return 0;
17 }
18 return helper(S, start+1, end-1);
19 }
20
21 int isPalindrome(string S)
22 {

Callers

nothing calls this directly

Calls 1

helperFunction · 0.70

Tested by

no test coverage detected