Skip to content

thecrood/Daily-Coding-Problem-03

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Daily-Coding-Problem-03

This problem was asked by Google.

Given the root to a binary tree, implement serialize(root), which serializes the tree into a string, and deserialize(s), which deserializes the string back into the tree.

For example, given the following Node class class Node: def init(self, val, left=None, right=None): self.val = val self.left = left self.right = right