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

单选题:The space complexity of iteratively traversing a binary tree wit

Luz5年前 (2021-05-10)题库1082
The space complexity of iteratively traversing a binary tree with $$N$$ nodes and height $$H$$ in inorder (with the help of an auxiliary stack) is __. @[B](3)

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




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


答案:B