Leetcode 2239. Find Closest Number to Zero
Given an integer array, return the element whose absolute value is smallest (i.e., closest to zero); if there’s a tie, return the larger number.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.