| > I was motivated and was able to solve most easy and medium question in 30 mins. However, that was not good enough for FAANGs. What makes you think it's not good enough? LC is important and today it might be even be essential to land a role, but I think people tend to think of it like an exam when that's not really what we're testing for. The goal is to see how you think, not see if you can simply come up with the right answer. If you need a hint it's usually not going to hurt you at all so long as you listen to the hint, are able to understand it, then incorporate it into a solution. I'd go so far as to say that being able to do that can help you more than reciting an answer without a hint. There are some patterns like tries, left/right pointers, memoization, heaps, and maps that studying helps with for sure, but that doesn't mean you're supposed to be able to immediately solve something without any help. (Note that there are asshole interviewers out there that will challenge you and won't follow what I've described, but that's rare and personally I've only seen them at startups, not big tech) |
I get where you are coming from when you say "the goal is to see how you think" - I really do and I have definitely believed in that once upon a time. Truth is, it's extremely gut/instinct driven than we realise. So yeah, while you can easily shoot down a candidate who seem to regurgitate what they had already solved, there's just absolutely no way to differentiate it from a candidate having a bad moment (let alone a bad day).
I had a take home exercise recently where I was supposed to identify a performance issue and fix it. I read the code in a hurry after finishing my day job. I knew where the likely issue is coming from but just couldn't locate it. I wrote back as such. The next day the solution came to me. I fixed it and sent it back. I still got hired but that sort of thing can never happen in a leet-code type interview no matter how much we'd like to believe. I have ADHD but even otherwise our brains are finicky.