Https://ide.codingblocks.com/s/234073

whats wrong in code plzz comment out

hello @Aditya-Kushwaha-914550392281281

image

a) in place of s==e use s>=e . (this will handle both cases ie even and odd length)

b) use return statement in line no 12.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

actually i wanna know how i get the last position of an array i dont know about how many no. of elements will input in array so how can i know about the last index