Search
⌘K

Leetcode 428. Serialize and Deserialize N-ary Tree

Design algorithms to serialize an N-ary tree into a single string and deserialize it back, preserving node values and the arbitrary number and order of children. The core challenge is choosing an unambiguous encoding (e.g., child-counts or markers) and using traversal (DFS/BFS) to record and reconstruct the tree efficiently.

Asked at:

Apple

Rubrik

Rubrik

Bloomberg

Bloomberg


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late March, 2026

Apple

Senior

serialize and deserialize n-arrray tree.

Early March, 2026

Rubrik

Rubrik

Senior

Early August, 2025

Bloomberg

Bloomberg

Senior

Your account is free and you can post anonymously if you choose.