News for hackers. Stuff that matters.
Re:Why I won't do coding tests by ape4 on Monday April 04, 2016 @07:10AM (#11420878)
Oh that's easy (joke)...

    int min(int a, int b) {
       ArrayList<Integer> numbers = new ArrayList<Integer>();
       numbers.add(a);
       numbers.add(b);
       Collections.sort(numbers);
       return numbers.get(0);
    }
Re:Why I won't do coding tests by arethuza on Monday April 04, 2016 @07:47AM (#11421086)
Can I suggest that you write your values to SQL and then use SQL MIN - don't want to reinvent the wheel.

Alternatively, maybe you want a big data min with Hadoop? How many things were we working with anyway, are they definitely numbers?