Home > Back-end >  Binary tree
Binary tree

Time:10-07

Could you tell me why in before I can create a binary tree structure an empty binary tree

CodePudding user response:

What is the empty tree? No node is empty, so there is no creation, the trees must be empty,

CodePudding user response:

reference 1st floor lirg8405 response:
what is the empty tree? No node is empty, so there is no creation, the trees must be empty,

Is stored in order of time, filled with null character array, and then with the first sequence traversal filling arrays, if there is no empty character that step, the result of the running out was at sixes and sevens

CodePudding user response:

Actually the initialized to null, equivalent to tell program, here is the invalid data, because if you don't initialize a value, then the value is random, the program can't know this node is invalid, the equivalent of a reference substance, no reference substance, is impossible to judge,
  • Related