原文:[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-2025 CODEPRJ.COM