What will be the time complexity of query operation if all the candidates are evenly spaced so that each bin has constant no. of candidates? (k = number of bins query rectangle intersects)
A. O(1)
B. O(k)
C. O(k2)
D. O(log k)
Answer: Option B
A. O(1)
B. O(k)
C. O(k2)
D. O(log k)
Answer: Option B
A. Inorder
B. Preorder
C. Postorder
D. Level-order
Join The Discussion