Pergunta de entrevista da empresa Meta

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

Resposta da entrevista

Sigiloso

15 de jun. de 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