
[理工] 資結 tree

1.想問給DFS,BFS結果在建樹時要怎麼建呢
http://i.imgur.com/JUGjhug.jpg

2. 40題為什麼是preorder
http://i.imgur.com/DtWpjJ7.jpg

3.這題heapInitialization如果照上面程式碼跑不是應該O(nlogn)嗎
-----
Sent from JPTT on my Samsung SM-A730F.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.83.108.228 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1575087262.A.778.html
推
11/30 14:00,
6年前
, 1F
11/30 14:00, 1F

推
11/30 14:18,
6年前
, 2F
11/30 14:18, 2F

→
11/30 14:42,
6年前
, 3F
11/30 14:42, 3F
討論串 (同標題文章)