原文:[LeetCode] 1028. Recover a Tree From Preorder Traversal 從先序遍歷還原二叉樹

We run apreorderdepth first search on the root of a binary tree. At each node in this traversal, we outputDdashes whereDis thedepthof this node , then we output the value of this node. If the depth o ...

2019-07-08 08:22 0 795 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM