Search⌘ K
AI Features

Minimum String Length After Removing Substrings

Minimum String Length After Removing Substrings asks you to repeatedly remove adjacent AB or CD pairs from a string and return the shortest length possible after new pairs form.

Statement

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