← Goldman Sachs questions

Transform string X to Y using append and reverse-append

Filed under Goldman Sachs

Given strings X and Y containing only characters 'a' and 'b', determine if Y can be obtained from X using only two operations: 1) append 'a' to the end, or 2) reverse X and append 'b' to the end.

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.