What are linear search and binary search
Don’t start What are linear search and binary search with jargon. Start with folder on disk. That is the whole point.
Do What are linear search and binary search once by hand. left < root < right. Change one input. Say the new result out loud.
Without What are linear search and binary search, a file explorer gets messy and folder on disk is hard to trust.
Rohit ships What are linear search and binary search in a file explorer. That is the use case worth saying.
If folder on disk breaks under What are linear search and binary search, check unbalanced BST becoming a list first.
After What are linear search and binary search, Rohit should still remember unbalanced BST becoming a list.
One breath for What are linear search and binary search, then folder on disk, then unbalanced BST becoming a list. Sit down.
[2, 5, 8, 12, 20] find 12
mid=8 → right
mid=12 foundFor What are linear search and binary search: definition + a file explorer + one failure.