Distance to nearest leaf in tree and custom number conversion
Filed under GE Healthcare
The question
Find the distance of a node with given data to the nearest leaf in a binary tree, and write a program to convert numbers according to a custom mapping system (e.g., 1->9, 2->8).
No write-up yet. Related questions below have one.
Related GE Healthcare questions
Collected from public candidate posts and coding forums. Updated Nov 2026.