Subtopic 6.4
Binary Search Tree with an Array
5lessons25 min0done
In a binary search tree everything to the left of a node is smaller and everything to the right is larger. Thanks to this rule a search drops one subtree at every step.
The subtopic explains the rule, then codes search, insertion and finding the minimum and maximum on an array. The last lesson shows why an array wastes so much room for this structure.