Given a Linked list , print yes if it is palindrome else print no
Varalakshmi Talur
2y
If (Head.value==tail.value) {if (head+1!=tail-1){head+1.value==tail-1.value{if (head+2==tail-2) &&(head+2.value==tail-2.value)}}} print "Yes";
else print "no";
Abhishek Soni
2y
A Team Lead
das dsad sad sad asd sad asd asd as
Shubham Bhosale
3y
a=[123,25,515]
for a in i:
sum=0
temp=i
while(n>0):
rem=i%10
sum=sum*10+rem
i=i//10
if(temp==sum):
print("yes")
else:
print("no")
Add answer anonymously...
Top Amazon Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in Amazon Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app