Amazon online assessment test cases

I have to take amazon online assessment in couple of days. Last year when I took it, the questions were fairly easy (LC mediums) but one of my solutions could not pass 3/16 test cases. The solution passed all leetcode tests later when I submitted the exact same code. This kept me wondering about the amazon test cases. Do you guys have any tips on this? What are some obscure type of edge cases that I should keep in mind?

Add a comment
New
sparked Mar 15, 2019

The edge cases largely depend on the problem, but think about how parameter type errors are supposed to be handled etc

FactSet Giggsy Mar 15, 2019

You’re def forgetting to validate inputs. That’s what broke most of my cases but I caught them all eventually