Check for case senstivity also: eg: "Madam" and "madam" both are palindromes.
Also for clarify with the interviewer whether whitespace and punctuation can be ignored. eg: is the following string a palindrome or not: "A man, a plan, a canal, Panama" And check for this condition accordingly -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.