Validate Brackets & Parse Nested Rich Text

Asked at Figma · Coding Questions · Difficulty: Medium · Last asked May 13, 2025

Two-parter: first validate that a tokenized string of parentheses and characters is well-formed; then parse a valid nested bracket string into the equivalent nested list structure.

Loading the problem…