Find integer closest to zero in an array
Filed under Netskope
The question
Given an array of positive and negative integers, return the integer closest to 0. If two numbers are at the same distance, return the positive value.
No write-up yet. Related questions below have one.
Related Netskope questions
Collected from public candidate posts and coding forums. Updated Nov 2026.