Modify Tree Node Values
Filed under Josh Technology
The question
Traverse a binary tree and modify it such that every left child becomes odd by subtracting 1 and every right child becomes even by adding 1.
No write-up yet. Related questions below have one.
Related Josh Technology questions
Collected from public candidate posts and coding forums. Updated Nov 2026.