Palindrome · Palíndromo
Palindrome
Return 1 if a C-string reads the same in both directions, otherwise 0 — in C there's no bool by default, so we use the integers 1 and 0. Compare characters from the two ends moving inward.
Palíndromo
Retorne 1 se uma string C for lida da mesma forma nos dois sentidos, caso contrário 0 — em C não há bool padrão, então usamos os inteiros 1 e 0. Compare caracteres das duas extremidades movendo-se para dentro.
Complete int is_palindrome(const char *s) to return 1 if · se s reads the same forwards and backwards, otherwise 0. · Complete int is_palindrome(const char *s) para retornar 1 se s for lido da mesma forma para frente e para trás, senão 0.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.