r/dailyprogrammer • u/Coder_d00d 1 3 • Sep 01 '14
[Weekly #9] Binary Trees
Weekly 9:
Binary trees are very interesting data structures. How or why do you use them? What are your favorite aspects of binary trees? Any interesting or useful tidbits about them that you can share?
Last week's topic:
40
Upvotes
View all comments
Show parent comment
1
u/cyrusol Sep 03 '14
That doesn't necessarily be the case.
However, let's define the tree root node as level 0, then if a window is taking up half the screen, it's always on level 1, and if it's taking up half the half the screen (so a quarter), it's on level 2 and so on.