1234567891011121314151617
bool palindrome_2(vector<int>vec,int begin,int end){ if( vec[begin] != vec[end] ) { return false; } //return result; //cout << endl; //cout << vec[begin] <<" and " << vec[end] <<endl; palindrome_2(vec,begin+1,end-1); return true; }