============================== Binary Search Tree ============================== Before attempting to understand my implementation of the BST, be sure to read :ref:`the chapter in A Common Sense Guide to Data Structures and Algorithms by Jay Wengrow. ` It explains why we need such a data structure and helps us understand it better. .. tip:: I kid you not, the book makes it fun! .. literalinclude:: code/binary_search_tree.py :linenos: :language: python :caption: Binary Search Tree Implementation in Python