Hi Few hours back I gave Amazon OA and got the following 2 questions.
I was able to solve 1 with all the testcases passed but got timed out during 2. Within 30 minutes I got the rejection email. I have seen few people getting called by solving 1 prob. Any possible reason why I got rejected?
Also for problem 1, I saw the problem before in geekforgeeks using merge sort & inversion count. I coded in the same way. Is this a reason for rejection?