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.