Convert Leveled Rich-Text Tokens into Nested Lists

Read the full interview experience this question came from →

Quick 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.

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

|Home/Coding & Algorithms/Figma
Figma logo
Figma
Jul 21, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
43
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...