โ† Amazon questions

Minimum String Length After Single Cut and Canceling Append

Filed under Amazon

Given a string, make a single cut, append the left part to the right part while recursively canceling out adjacent matching characters at the junction, and find the minimum possible resulting length.

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.