Domanda di colloquio di AT&T

Write an algorithm that tests for palendromes

Risposta di colloquio

Anonimo

18 ott 2018

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