Searching in BST
Don’t start Searching in BST with jargon. Start with folder on disk. That is the whole point.
For Searching in BST, Big-O is in play. Don’t blame it until you have traced folder on disk.
Without Searching in BST, a file explorer gets messy and folder on disk is hard to trust.
Neha ships Searching in BST in a file explorer. That is the use case worth saying.
Don’t do this with Searching in BST — unbalanced BST becoming a list. Interviewers spot it in ten seconds.
After Searching in BST, Neha should still remember unbalanced BST becoming a list.
Close Searching in BST with — “If I skip it, folder on disk goes wrong like this: unbalanced BST becoming a list.”
8
/ \
3 10
/ \
1 6Say Searching in BST in one breath, then left < root < right, then unbalanced BST becoming a list.