Binary Tree to CDLL
Amit only reaches for Binary Tree to CDLL when folder on disk has to stay correct in a file explorer.
Do Binary Tree to CDLL once by hand. left < root < right. Change one input. Say the new result out loud.
Without Binary Tree to CDLL, a file explorer gets messy and folder on disk is hard to trust.
Binary Tree to CDLL shows up in a file explorer. Name folder on disk, not “a real-world scenario”.
If folder on disk breaks under Binary Tree to CDLL, check unbalanced BST becoming a list first.
After Binary Tree to CDLL, Amit should still remember unbalanced BST becoming a list.
Close Binary Tree to CDLL with — “If I skip it, folder on disk goes wrong like this: unbalanced BST becoming a list.”
Say Binary Tree to CDLL in one breath, then left < root < right, then unbalanced BST becoming a list.