← Amazon questions

Split string and remove matching joint characters

Filed under Amazon

Given a string consisting only of 'a', 'b', and 'c', split it into a left part and a right part, append the left part to the right part, and continuously remove adjacent matching character pairs…

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.