algoritmauzmanı
Sign in
TREN
Subtopic 6.4

Binary Search Tree with an Array

5lessons25 min0done

In a 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.

Lesson 6.4.1 What is a binary search tree?6 min