Amazon Robotics interview question

Write a program to detect if a string is a palindrome or not?

Interview Answer

Anonymous

25 Dec 2021

I answered this question in java using a while loop to iterate from the end indices of the string towards the middle checking for spaces or null characters.

1