← Goldman Sachs questions

Check if second half of string is a palindrome

Filed under Goldman Sachs

Given a string, determine whether its second half is a palindrome. For strings of odd length n, the second half is defined as the substring starting from index floor(n/2) to the end of the string…

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 Goldman Sachs questions

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