Solved! Leetcode 2696. Minimum String Length After Removing Substrings

Table of ContentsDescription Minimum String Length After Removing SubstringsExample 1Example 2ConstraintsSolutionTime ComplexitySpace Complexity Description Minimum String Length After Removing Substrings You are given a string s consisting only of uppercase English letters. You can apply some operations to this string where, in one operation, you can remove any occurrence of one of the substrings "AB" or "CD" from s. Return the minimum possible length of the resulting string that ...