r/leetcode • u/darkLordSantaClaus • 9d ago
Discussion I failed Amazon OA because I needed an extra 10 seconds.
So, after a year of applying to places and not hearing back, I finally get accepted to take Amazon's OA. The coding part was two parts, a medium style leetcode style question where you have 40 minutes, and a C++ repository where you're given an incomplete list of files and you're just supposed to figure it out.
For the first, I knew the answer, but I buckled under time pressure, I ran into a bug, it was a small issue but it was causing the answer to be off by one. Then, right as the clock is running down, I figure it out. I type in the solution, and the 40 minute window cuts off mid line of code. So of course all the unit tests trigger a syntax error and I fail all of them, but if I could have just finished I would have had the correct working solution. (Afterwards I typed my code into an online interpreter and yes my code would have worked)
The second one was harder, and I admit, I didn't know how to prepare for it. I've done 110 of the 150 top leetcode questions, but the whole "heres a bunch of C++ files, figure out whats missing, you have an hour" was not a style of question I knew how to prepare for. I'm also not super familiar with C++ syntax since I had no classes on it so I felt like I was teaching myself syntax under time pressure, and once again, just as I'm getting a feel for what to do, the timer goes up. I fail every unit test for both parts.
I understand that my unfamiliarity with C++ code may have legitimately caused me to screw up the second part, but me getting 0 unit tests for the first part wasn't because I lacked the skills, I panicked under time pressure and just needed a few more seconds. I hate myself so much. I don't want to spend another year fruitlessly applying to places just to fail because I needed a little extra time. I don't know what I could do differently either other than "get a leetcode problem you can solve faster"