Jet Interview Question

Algorithm to determine if a string is palindrome.

Interview Answer

Anonymous

Oct 22, 2018

def isPalindrom(s): for i in range(0,len(s)//2): if s[i] != s[len(s)-i-1]: return 'NO' return 'YES'