Question d’entretien chez AT&T

Write an algorithm that tests for palendromes

Réponse à la question d'entretien

Utilisateur anonyme

18 oct. 2018

bool isPalindrome = True for i in range (0, str.length/2): if str[0] != str[str.length - (i + 1)]: isPalindrome = False return isPalindrome