Hello,
I have the problem for this puzzle too.
I use Java as a language, and I ended up with a lambda which does the job 
Optional<Integer> i = Arrays.stream(temps.split(" ")).filter(s -> s != null && s != "") .mapToInt(Integer::decode).boxed() .min(Comparator.<Integer>comparingInt(Math::abs).thenComparing(Comparator.<Integer>reverseOrder()));
Unfortunatly only 5 of the 6 tests pass, while the 6th raises an exception (which it doesn’t when run in Eclipse):
Exception in thread "main" java.lang.NumberFormatException: Zero length string
at java.lang.Integer.decode on line 1162
at java.util.stream.ReferencePipeline$4$1.accept on line 210
at java.util.Spliterators$ArraySpliterator.forEachRemaining on line 948
at java.util.stream.AbstractPipeline.copyInto on line 481
at java.util.stream.AbstractPipeline.wrapAndCopyInto on line 471
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential on line 708
at java.util.stream.AbstractPipeline.evaluate on line 234
at java.util.stream.ReferencePipeline.reduce on line 479
at java.util.stream.ReferencePipeline.min on line 520
at Solution.main on line 19
IMO the cause is the old version for the JVM used: https://www.codingame.com/faq Java Oracle Java 1.8.0_72