Quote:
Original post by Washu
Why? Its an interview question. You should do the absolute BEST you can on it. Show your skills. He didn't, he failed.
being able to fix problems is just as important a skill as writing good code. What happens when the guy that writes good code but can't solve problems runs into a problem? Does he sit there for a week twiddling his thumbs?
I know the first time I did the codility practice test I missed the overflow thing because it just never occurred to me that that might come up. Given all of 30 seconds after getting the test results I would have solved it.
A small note like "There may be arrays of thousands or millions of numbers" would easily solve the problem.
@OP: you're lucky you didn't get the "name the 15 best types of pie in order of my preference" test or the "I just don't like you" test.
The answer to the first is pecan, pecan, pecan, pecan, pecan, pecan apple hybrid pie, crumb top apple pie, key lime, and chicken pot. the last 5 are a trap.