给定n个节点的二叉搜索树,每个节点的值是整数。给定一个整数,在树中找出与该整数最接近的节点的最小算法复杂度是() O(logn) O(n^2) O(nlogn) O(n)
O(logn)
O(n^2)
O(nlogn)
O(n)