在一个二叉搜索树中,查找一个元素的时间复杂度是多少。


在一个二叉搜索树中,查找一个元素的时间复杂度是多少。

O(1)

O(logn)

O(n)

O(n^2)

正确答案:O(logn)


Tag:复杂度 元素 时间 时间:2024-02-24 21:36:02