Hive (CA) Interview Question

CTO asked me to Serialize and Deserialize a binary tree. (Leetcode hard)

Interview Answer

Anonymous

Feb 26, 2021

Used brackets or any character to show where the tree splits happened to signify the hierarchy. Once you're able to find and mark the splits, remaking the binary tree is straight forward.