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

Figma logo
Figma
Jul 21, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
72
0
Loading...