we can serialize the binary tree using preorder traversal and marking NULL
pointer as '#'.
source:
http://www.leetcode.com/2010/09/serializationdeserialization-of-binary.html
On Wed, Jul 4, 2012 at 4:21 PM, Ashish Goel wrote:
> my understanding is to either write the level order traversal notin
my understanding is to either write the level order traversal noting
parent, child relation or write the adjacency list into a file where we
store the edges
Best Regards
Ashish Goel
"Think positive and find fuel in failure"
+919985813081
+919966006652
On Wed, Jul 4, 2012 at 3:58 PM, adarsh kumar
Serialisation meaning? Numbering the nodes. Any specific order, or as
in level order??
On 7/4/12, Ashish Goel wrote:
> a] How would you serialize a binary tree in a file(improve it)
> b] serialization that you have chosen, write a code to reconstruct the tree
> Best Regards
> Ashish Goel
> "Think
a] How would you serialize a binary tree in a file(improve it)
b] serialization that you have chosen, write a code to reconstruct the tree
Best Regards
Ashish Goel
"Think positive and find fuel in failure"
+919985813081
+919966006652
--
You received this message because you are subscribed to the