employer cover photo
employer logo
employer logo

L&T Technology Services

Fait partie de Larsen & Toubro

Est-ce votre entreprise ?

Question d’entretien chez L&T Technology Services

Palindrome

Réponses aux questions d'entretien

Utilisateur anonyme

25 févr. 2020

Polindrom is nothing but string. input string is reversed we will get same string as output order of the characters also same. Take a string with name 's' and take reversed string of that string 's' os'rev_s' . And apply some of condition like " if s==rev_s: " then the given string is polindrom

1

Utilisateur anonyme

31 mars 2020

Example :- a="malayalam" b=(a[::-1]) if list (a)==list(b) print("This is a polindrom") else: print("This is a not polindrom") output = This is a polindrom

1