Find Closest Number
Filed under Unthinkable Solutions
The question
Find the element in an array closest to a given integer X. In case of a tie, return the larger number.
No write-up yet. Related questions below have one.
Related Unthinkable Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.