• + 0 comments

    Be careful when you say a one-liner code... because you need quite more lines in order to compute what it is required in the challenge.

    Actually I copied/pasted your code in a Java online compiler because I was assuming that with that line you were iterating along the array, and then I realized there were missing lines of code.

    Anyway, your line is a nice one.