⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 construct a tree using postorder and preorder.txt

📁 It is an ebook about trees
💻 TXT
字号:
  
   
Can you construct a tree using postorder and preorder traversal? 

Discuss it!          


No 

Consider 2 trees below 



Tree1 

  a 
b 


Tree 2 

a 
  b 


preorder  = ab 
postorder = ba 


Preorder and postorder do not uniquely define a binary tree. Nor do preorder and level order (same example). Nor do postorder and level order. 

 
 
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -