Problem 678 · Medium

Valid Parenthesis String

Decide whether a string with brackets and wildcard stars can be read as a balanced bracket sequence. The visual tracks a range of possible open-bracket counts as each character is read.

Open the interactive visualisation