Day 20 of LeetCode
Documenting LeetCode solving.
Celebrate 20 days completed! π
Q60
297. Serialize and Deserialize Binary Tree
Hard. Tree
DFS
class Codec:
def serialize(self, root):
"""Encodes a tree to a single string.
:type root: TreeNode
...
evelynsjourney.hashnode.dev1 min read
Ndeye Fatou Diop
Senior Frontend Engineer
Way to go π