-->
当前位置:首页 > 题库

单选题:The time complexity of recursively traversing a binary tree with

Luz5年前 (2021-05-10)题库1164
The time complexity of recursively traversing a binary tree with $$N$$ nodes and height $$H$$ in preorder is __. @[A](2)

A. $$O(N)$$
B. $$O(H)$$
C. $$O(N\log H)$$
D. $$O(H\log N)$$




A.$$O(N)$$
B.$$O(H)$$
C.$$O(N\log H)$$
D.$$O(H\log N)$$


答案:A