Loading tutorials
Intermediate · Mid: 13 chapters · 36 min read. States assumed prerequisites
Start readingrebalance, and insert code from the previous chapters. You should also know how a plain BST deletes a node (leaf, one child, two children).N(h) = N(h-1) + N(h-2) + 1. It uses the convention from the earlier code: a single node has height 1 and the empty tree has height 0.insert and delete work in Python.