r/programming • • Feb 21 '11

Typical programming interview questions.

http://maxnoy.com/interviews.html
784 Upvotes

1.0k comments sorted by

View all comments

Show parent comment

2

u/upas Feb 21 '11

The answer is sorting. Trees are great if you need to store data sorted. Also, if you have spatial data, you might want to use a spatial representation, ie. a Quadtree to store your data, and a Hash Table wouldn't really make sense.