Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2696. Minimum String Length After Removing Substrings
Given an uppercase string, repeatedly delete any occurrence of the substrings "AB" or "CD" (concatenation after deletions may create new occurrences) and return the minimum achievable length. The core challenge is simulating these local cancellation rules efficiently—effectively a linear-time stack-like reduction to find which characters remain.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.