Convert Leveled Rich-Text Tokens into Nested Lists
Company: Figma
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Overview: Convert ordered rich-text tokens with positive depth levels into the specified nested-list representation while preserving text order. The exercise probes stack invariants, multi-level jumps, returns to ancestors, empty input, exact node creation, and complexity in both tokens and nesting.
Read the full Figma Software Engineer interview experience this question came from