Explain in detail in a binary tree of n nodes there are n plus 1 null pointers representing children?

1 answer

Answer

1186259

2026-08-03 07:40

+ Follow

Induction:

1. A tree of one node has two NULL-pointers.

2. Whenever you add a node to a tree, you remove one NULL-pointer (from the parent of the new node), and add two (the child's of the new node) in the same time.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.