Pergunta de entrevista da empresa Blackbaud

Write a function to determine if a word is a palindrome

Resposta da entrevista

Sigiloso

5 de fev. de 2026

def is_palindrome(self,word): i,j=0,len(word)-1 while i<=j: if word[i]!=word[j]: return False i+=1 j-=1 return True