← Amazon questions
CodingReported in a candidate post, Jul 2025

Longest palindromic substring

Filed under Amazon · Also reported at Accolite, Argusoft, Aspiring Minds, CarTrade Tech Limited, CEDCOSS, Cisco, CloudKaptan, Cohesity and 35 more

Given a string s, return the longest palindromic substring in s. A palindrome reads the same forwards and backwards. If there are several answers of the same length, any one is acceptable.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.