DEV Community

Discussion on: Serialize and Deserialize binary tree, Apple interview

Collapse
 
ronakjethwa profile image
Ronak Jethwa • Edited

In Serializing, you are calling inorder(root);. You want preorder(root)?

Collapse
 
akhilpokle profile image
Akhil

Yeah, typo. My bad. Thanks for pointing out :)