Y
Hacker News
new
|
ask
|
show
|
jobs
by
eeojun
3540 days ago
Hi, original author here. I used "perfect" trees as I wanted to generalise it to trees of other "types", not just binary trees. But yes, you are correct that it is incomplete for the broader category of binary trees.
1 comments
loeg
3540 days ago
Other types of trees can also be unbalanced :-). E.g., the classic example of DFS is maze-solving, which is usually unbalanced.
link