Pergunta de entrevista da empresa Tripadvisor

Write a program to detect if a word is a palindrome, ignoring spaces

Resposta da entrevista

Sigiloso

1 de out. de 2015

Index at each side of the word, keep incrementing/decrementing both indices until they meet or until they point to letters that aren't equal. If you come across a space, increment/decrement the index by 1.