Meta Interview Question

Write a method to determine if a string is a palindrome.

Interview Answer

Anonymous

Jun 15, 2014

well, you just have to itterate on the string until the middle of it and check the mirror elements: bool IsPalindrome(char *str, int len) { if (str == NULL) { return false; // or true in empty group } for (int i=0; i

1