No is palindrome or not

https://ide.codingblocks.com/s/48745

sir in the above code, two test cases are failing… wht other condition shall be included here?

Hey Yukti, this is code snippet from your code of main function

    int N;
    int ar[N];
    for(int i=0;i<N;i++)
    {
        cin>>ar[i];
    }

in this you are supposed to take input N i.e the size of array, here in your code you are just initializing the array of random size.