Floor and Ceil from a BST
Asha only reaches for Floor and Ceil from a BST when folder on disk has to stay correct in a file explorer.
For Floor and Ceil from a BST, a dry-run table is in play. Don’t blame it until you have traced folder on disk.
Floor and Ceil from a BST exists so Asha can keep folder on disk correct in a file explorer.
Floor and Ceil from a BST shows up in a file explorer. Name folder on disk, not “a real-world scenario”.
Don’t do this with Floor and Ceil from a BST: unbalanced BST becoming a list. Interviewers spot it in ten seconds.
Place Floor and Ceil from a BST next to nearby DSA work — left < root < right is the link.
Viva for Floor and Ceil from a BST — what it is → left < root < right → the mistake (unbalanced BST becoming a list).
8
/ \
3 10
/ \
1 6Board: folder on disk. Dry-run Floor and Ceil from a BST. Name the trap: unbalanced BST becoming a list.