Distance between two nodes in BST and Binary Tree
Filed under DE Shaw
The question
Find the distance between two given nodes in a Binary Search Tree, and then solve the same for a general binary tree.
No write-up yet. Related questions below have one.
Related DE Shaw questions
Collected from public candidate posts and coding forums. Updated Nov 2026.