Question d’entretien chez Reach (UK)

Code snippet to identify whether a string is a palindrome

Réponse à la question d'entretien

Utilisateur anonyme

29 avr. 2021

Start at each end of the string and compare characters, then move incrementally to subsequent positions in the string. At the first mis-match return false as then string is not a palindrome.