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:

Bloomberg

Bloomberg


Question Timeline

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

Early August, 2025

Bloomberg

Bloomberg

Senior

Comments

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