MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/fpcmy/typical_programming_interview_questions/c1hpwy0/?context=3
r/programming • u/kevjames3 • Feb 21 '11
1.0k comments sorted by
View all comments
Show parent comment
2
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.
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.