DEV Community

Discussion on: Serialize and Deserialize binary tree, Apple interview

Collapse
ronakjethwa profile image
Ronak Jethwa • Edited on

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

Collapse
akhilpokle profile image
Akhil Author

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