Find Closest Number to Zero
Given an integer array nums of size n, your task is to find the number with the value closest to 0 in nums. If there are multiple numbers with the closest value to 0, print the number with the largest value.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)