In defense of coding interviews
I used to hate leetcode-style coding interviews, but now I don&#x27;t. The reason for this is a comment from a Google engineer. That comment changed my mind. In that comment they explained the motivation behind asking these type of questions and it all finally clicked for me.<p>Corporations are not testing your knowledge of algorithms per se. While that knowledge is obviously important, what&#x27;s more important is how dedicated you are when it comes to reaching a goal. Essentially, they are testing your will power. You know the rules. Can you achieve success and not give up in the middle of the road by skipping, say, Dynamic Programming? They could&#x27;ve tested your level of dedication by asking to bake some fancy cake, but throwing CS-related questions just makes much more sense.<p>That reasoning completely changed my perspective about algo-heavy coding interviews.