Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
superdisk
· 3y ago · 0 comments
AVL trees are binary trees so they can only have 2 children.
Comments
[–]
tgv
3y ago
There can be nodes with a single child. Otherwise an AVL tree would always have 2^n - 1 or 2^n - 2^(n-2) - 1 nodes. Imagine adding a node to a balanced tree with 3 nodes.