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
Bloomberg
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late March, 2026
Apple
Senior
serialize and deserialize n-arrray tree.
Early March, 2026
Rubrik
Senior
Early August, 2025
Bloomberg
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.