HACKER Q&A
📣 brailsafe

Have you done an interview coding test that had an incorrect test case?


I recently tried a coding test with Amazon, which I failed, but for the life of me I can't find any other answer as to how one of my test cases didn't pass other than the test case was incorrect. Have you had a similar experience?

To check this, I simply logged the input to the function and compared it to the explanation and description of the problem. It wasn't terribly difficult, but I wasted time trying to figure out wth was happening and didn't complete the second problem in the allotted time.


  👤 brudgers Accepted Answer ✓
Passing the test cases may have been necessary but not sufficient to pass the coding challenge. For example, time and space complexity requirements are also frequent criteria for judging the quality of a solution. What were the big O runtime and memory footprint of your approach? At the scales at which Amazon operates, these matter a lot.