Diameter of Binary Tree
If you can teach Diameter of Binary Tree using folder on disk, you know it. If you only know the heading, you don’t.
Do Diameter of Binary Tree once by hand. left < root < right. Change one input. Say the new result out loud.
Skip Diameter of Binary Tree and unbalanced BST becoming a list shows up in a file explorer.
Diameter of Binary Tree shows up in a file explorer. Name folder on disk, not “a real-world scenario”.
Don’t do this with Diameter of Binary Tree: unbalanced BST becoming a list. Interviewers spot it in ten seconds.
After Diameter of Binary Tree, Meera should still remember unbalanced BST becoming a list.
Close Diameter of Binary Tree with: “If I skip it, folder on disk goes wrong like this: unbalanced BST becoming a list.”
Board: folder on disk. Dry-run Diameter of Binary Tree. Name the trap: unbalanced BST becoming a list.