Jul 24, 2012 at 7:00am
alter the code as follows:
return palindrome_2(vec,begin+1,end-1);
instead of
palindrome_2(vec,begin+1,end-1);
return true;
Last edited on Jul 24, 2012 at 7:00am
Jul 24, 2012 at 7:29am
no it does no work
try 17 or other numbers
Jul 24, 2012 at 11:14am
You need to stop call palindrome_2 if begin >= end.