單項(xiàng)選擇題

根據(jù)n個(gè)元素建立一棵二叉搜索樹(shù)時(shí),其時(shí)間復(fù)雜度大致為()。

A.O(n)
B.O(log2n)
C.O(n2
D.O(nlog2n)

微信掃碼免費(fèi)搜題