Remove extra edge from a BST
Sara only reaches for Remove extra edge from a BST when folder on disk has to stay correct in a file explorer.
For Remove extra edge from a BST, Big-O is in play. Don’t blame it until you have traced folder on disk.
Remove extra edge from a BST exists so Sara can keep folder on disk correct in a file explorer.
Sara ships Remove extra edge from a BST in a file explorer. That is the use case worth saying.
If folder on disk breaks under Remove extra edge from a BST, check unbalanced BST becoming a list first.
Place Remove extra edge from a BST next to nearby DSA work — left < root < right is the link.
Close Remove extra edge from a BST with: “If I skip it, folder on disk goes wrong like this: unbalanced BST becoming a list.”
8
/ \
3 10
/ \
1 6Board: folder on disk. Dry-run Remove extra edge from a BST. Name the trap: unbalanced BST becoming a list.