資結 時間複雜度
Printing out the values stored in all the leaves of a binary search tree containing N elements.
解答是給O(N)
想請問版上高手可以幫忙看一下這題
為什麼不是O(n log n)?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.139.137.139
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1544090449.A.E39.html
推
12/06 18:07,
7年前
, 1F
12/06 18:07, 1F
→
12/06 18:36,
7年前
, 2F
12/06 18:36, 2F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):