How does a KD-tree partition space to accelerate nearest-neighbor queries?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how a KD-tree splits space with axis-aligned planes and how a nearest-neighbor query uses that structure to skip most points. Tests tree construction, branch-and-bound search with pruning, and how query cost changes as the number of dimensions grows.