News for hackers. Stuff that matters.
Re:Codility - Automated tests of programming skills by JoachimSchipper on Friday January 08, 2010 @09:27AM (#1039552)
This is quite nice, even if the exercise isn't all that difficult.

It would be nice if the boundary conditions were better specified (people seem to have been bitten by overflowing integers). This could be inferred if you told people that you're using a 32-bit machine (the sum of elements is at most SIZE_MAX * INT_MAX; if int and size_t are 32-bit, SIZE_MAX * INT_MAX < INT64_MAX.)

I was also somewhat surprised to see that my code compiles without #include <stdint.h>. I'm not sure this is correct (it could be solved by putting the code written by the candidate before the test code).

Finally, I assume you have proper sandboxing set up?

Re:Codility - Automated tests of programming skills by jakacki on Friday January 08, 2010 @07:15PM (#1040769)
We deliberately underspecify the compiler version, we think in such situation a programmer should attempt to write code as portable as possible.

#include --- good catch! We are not very strict about missing includes, but this is definitely not something we want to penalize.

Sandboxing -- absolutely! :-)