Problem 591 · Hard

Tag Validator

Check whether a tagged string forms one outer element with correctly paired, properly nested children. The visual scans tags left to right, pushing open tags onto a stack and popping them when a matching close arrives.

Open the interactive visualisation