Second Minimum Node In a Binary Tree
Find the second smallest distinct value in a tree where each parent holds the smaller of its children. The visual walks the tree and tracks the smallest value that differs from the root.
Find the second smallest distinct value in a tree where each parent holds the smaller of its children. The visual walks the tree and tracks the smallest value that differs from the root.