Binary Search Tree
A binary search tree stores smaller values to the left and larger values to the right. This tree does not rebalance and ignores duplicate values.
Try this
Clear the tree and insert 10, 20, 30, 40, 50. Compare its shape with insertion order 30, 20, 40, 10, 50.
Use the labeled controls with your mouse or keyboard. The output above summarizes the visualization.