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