---
title: "Discussion on \"Day 20 of LeetCode\" | Hashnode"
description: "Discussion on \"Day 20 of LeetCode\". Documenting LeetCode solving.\nCelebrate 20 days completed! 🎉\nQ60\n297. Serialize and Deserialize Binary Tree\nHard. Tree\nDFS\nclass Codec:\n\n    def serialize(self, root):\n        \"\"\"Encodes a tree to a single string.\n\n        :type root: TreeNode\n     ..."
url: "https://hashnode.com/posts/day-20-of-leetcode/65bd7682b9b3588cc6cb1d43"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Day 20 of LeetCode](https://evelynsjourney.hashnode.dev/day-20-of-leetcode?utm_source=hashnode&utm_medium=feed)

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 ...

Feb 2, 2024 · 1 min read · evelynsjourney.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#leetcodedaily](https://hashnode.com/tag/leetcodedaily)
-   [#leetcode75](https://hashnode.com/tag/leetcode75)
-   [#python](https://hashnode.com/tag/python)
-   [#coding](https://hashnode.com/tag/coding)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#womenwhocode](https://hashnode.com/tag/womenwhocode)

## Written by

[Evelyn Liu](https://hashnode.com/@evelynliu)

@evelynliu

  
[View profile](https://hashnode.com/@evelynliu)

## Responses 1

Markdown supported · ⌘↵ to post

[Ndeye Fatou Diop](https://hashnode.com/@fatou)

[Feb 3, 2024](https://hashnode.com/posts/day-20-of-leetcode/65bd7682b9b3588cc6cb1d43/comment/65bd8235af791544d46bf40a)

Way to go 🙌

[Evelyn Liu](https://hashnode.com/@evelynliu)

[Feb 5, 2024](https://hashnode.com/posts/day-20-of-leetcode/65bd7682b9b3588cc6cb1d43/comment/65bd8235af791544d46bf40a#reply-65c11af072c986f3d7ed5b4f)

😊💪
