Questions
If the binary sort tree is created by inserting items in a random order, there is a high probability that the tree is approximately balanced. Please do an experiment to test whether it is true.
1. Codes
1 | /** |
2. Outputs
1 | The nodes in the tree: 1023 |