4 ms·
I really like these puzzles. After you get through the first few trivial ones. The submission process is a little frustrating in that you have no idea if your c
by cletus 16y ago
I really like these puzzles. After you get through the first few trivial ones. The submission process is a little frustrating in that you have no idea if your code failed because it's wrong or because it simply took too long.
Taking too long is a real problem with a few of the puzzles (eg breathalyzer). If you read the comment threads there are some astoundingly fast solutions out there. My C breathalyzer solution was pretty quick but I was running it on an Ubuntu VM running inside Windows 7 and that did impact performance (particularly I/O). I've been meaning to run it on a real Ubuntu setup but haven't gotten around to it.
Anyway it all became moot as I ended up getting a job at Google but I did find it an interesting exercise.