⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠

Text Elements

x

null

x

x

cur

x

x

if cur has both left and right child, then cur.left.next = cur.right.

cur.right.next will be the first child node from the left of cur.next (or go to cur.next.next if cur.next has no children)