Transform binary tree nodes
Filed under Josh Technology
The question
Transform every left child node (odd) by subtracting one and every right child node (even) by adding one in constant space and linear time.
No write-up yet. Related questions below have one.
Related Josh Technology questions
Collected from public candidate posts and coding forums. Updated Nov 2026.