Ocado Group Interview Question

Write a method to tell wether a char array is a palindrome or not.

Interview Answer

Anonymous

Apr 28, 2015

Simple for loop iterating through the array and comparing the chars to see if they match. If they don't, break and return false.