node already in the initial treecomparing value with nodenewly inserted node (pops in)rule: value < node → left, otherwise right; insert at the empty spot
💬 Current step
💻 Lecture C++ code (whole program)
Yellow = the pseudocode line being executed (the assignment Algorithm: InsertBST). The panel on the right records every comparison until an empty spot is reached.
🧭 Comparison walk from the root down to the empty spot
Speed
Shortcuts: Space play/pause · ←→ step · R reset · E result