xAI logoxAI
Coding·30 minMembers

Flatten / Unflatten Nested Python Structure

Members only

Two paired sub-problems on nested Python containers. Part 1: walk an arbitrarily nested mix of `list / dict / tuple` whose leaves are `int` and emit a flat `list[int]` in encounter order. Part 2: give...

SWE
recursion
tree-traversal
json
easy
Frequency
Single report
Last asked
2026-02-26
Stage
tech-screen · phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...