Dev Radar
Support
LiveUpdated 2026-09-19 18:39 UTC

Day 47/50: Serialize and Deserialize Binary Tree 📌

Day 47/50: Serialize and Deserialize Binary Tree 📌 Problem:…

This is a dev post classified by Jev as Careers & learning (a tutorial), kept by the Dev Radar because it carries real work, not commentary.

Day 47/50: Serialize and Deserialize Binary Tree 📌 Problem: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Given the root of a binary tree, design an algorithm to serialize the tree into a string and deserialize it back into the original tree. Example: Input: [1,2,3,null,null,4,5] Output: [1,2,3,null,null,4,5] Approach: → Traverse the tree using DFS → Store each node value → Use a marker like "null" for missing nodes → During deserialization, read values in the same order → Rebuild the tree recursively Why the null markers matter: 1 ├── 2 └── 3 Without storing n

Posted by SCR (7.3k followers) 2 days ago · 45 likes · 1.1k views · view the original post on X. Kept by the Dev Radar as Careers & learning. Tools mentioned: leetcode.com.

More dev work like this

Every post is read and classified by Jev (TypeSafe): what it is, which market it belongs to, and whether the link is a real tool. 12.2k posts from 4.7k X accounts over the last 21 days, 1.4k tools, 12 markets. Collected every 5 minutes, fully re-ranked every hour — last update 2026-09-19 18:39 UTC. Full method.