What is the time complexity of making a single prediction with a decision tree of depth H?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks for the time complexity of one prediction with a decision tree of a given depth. It tests whether you can count the work along a root-to-leaf path, relate tree depth to the number of training rows for balanced and degenerate trees, and extend the reasoning to tree ensembles.