CodingReported in a candidate post, Jun 2024
Minimum length after removing AB or BB substrings
Filed under JPMorgan Chase
The question
Given a string of only A and B, in one move delete an 'AB' or 'BB' substring and join the rest; return the minimum possible remaining length (BABBA gives 1).
No write-up yet. Related questions below have one.
Related JPMorgan Chase questions
Collected from public candidate posts and coding forums. Updated Nov 2026.