Examples from the book Data Structures & Algorithms in C++ (4th Edition) by Adam Drozdek implemented in python.