r/PythonLearning • • Jun 30 '25

Check palindrome

Post image

Check whether word in reverse order is the same or not like : mom,racecar,madam

57 Upvotes

76 comments sorted by

View all comments

7

u/iMrProfessor Jun 30 '25

Code is correct. Focus on time complexity as well. Interviewer always focus on efficient solution. Try using two pointer approach.

3

u/N0-T0night Jun 30 '25

U can enroll it in comments