Search⌘ K
AI Features

Minimum String Length After Removing Substrings

Minimum String Length After Removing Substrings gives an uppercase string where occurrences of AB or CD may be removed repeatedly. Return the shortest possible length after removals create new pairs.

Statement

You are given a string, s, containing only uppercase English letters. You can ...