AT&T Interview Question

Write an algorithm that tests for palendromes

Interview Answer

Anonymous

Oct 18, 2018

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