Leetcode Considered Harmful

Article:

Published on:

6/28/2022

by:

Avatar of Joe

Joe

LC = TC. There's this saying in the r/cscareerquestions subreddit that your leetcode skills are directly correlated with the total compensation you will earn. It's of course an exaggeration, but shows really well how important this topic is for many-many software engineers. There's a lot of debate going on about if this is a good way to do interviewing or not. Many pros and cons were covered by others, much better than I could do, so I will only focus on a single point I have never read before elsewhere.

What is leetcode? If you are not familiar with the term, leetcode is a type of coding task, widely used by the word's largest software companies during live interviews that's exploring a candidate's knowledge of elementary computer science concepts: algorithms, data-structures and complexity analysis. This is in stark contrast with the regular job of most developers, where this knowledge is, at best, marginally relevant.

How to find a problem that others failed to recognize? Are you familiar with the story of Theranos? The company that was founded by Elizabeth Holmes a narcissistic lier, who scammed hundreds of millions out of investors and even the U.S. government with an imaginary product? Theranos on the outside looked like the next Apple, revolutionizing the healthcare industry until investigative journalist John Carreyrou questioned the authenticity of the company's claims. I saw the movie where he explains what triggered his initial suspicion and I found his method absolutely crucial in understanding the effects of large-scale issues.

How is this related to leetcode? John's method is based on taking a very high level overview of the situation so no specific detail can deceive your judgement. In the case of Theranos, Elizabeth was a college drop-out who claimed to invent technology that the whole pharma industry failed to develop before her. That's possible in the realm of software but for classical sciences, the world doesn't work this way. So he started digging, and the rest is history. Now, how all this applies to leetcode? You might suspect I will talk about how it doesn't work, but that's not what I'm concerned with. Instead, following John's example, I will take a high level look on the influence of leetcode. What's the widest possible scope to use here? The whole software development industry. That level allowes us to find something, what I beleive is a previously overlooked consequence of using it.

An unknown issue with leetcode. Because the top tier, dream companies, where every developer wants to work at use this interviewing method, many programmers spend considerable effort and money on acquiring leetcode skills. There's an abundance of YouTubers, paid courses and books covering how to ace the leetcode interview. What do you think results from this in the grand scheme of things? A bad incentive.

Leetcode is harmful to the tech industry!

Most ambitious software engineers are incentivized to learn skills they won't ever use for actually getting their jobs done! Truth to be told, even if we disregard the fact that they can get you hired, mastering leetcode is not completely without merit. However, I would still argue that they are far from being the highest ROI training activities a software engineer can choose.

How much better professionals would we all become (or how much faster would we get there) if interviews were about skills applicable in our job? But this is still not the main point! Even worse is a missed opportunity we so far failed to recognize.Top tech companies, through their interviewing methods, have a way to influence the mentality and skill set of the whole industry. That's a tremendous amount of power and responsibility! What are the outcomes of their current approach?

They could incentivize us to learn how to write software that solves real-life problems, creates value for the companies and the customers while making the best impact on society that code can deliver. Yet, according to the top software companies in the world, what we need to be measured by is our knowledge of algorithms and data structures. And again, I'm not saying that this doesn't work as a candidate filter. It obviously does for them.

But because the dream job is a few leetcode interviews away, everybody is raving about solving LC hard On Reddit and Blindr all day, every day. Aren't there any other skills we developers have that would bring more value and benefits for everybody, if they were in the center of our attention instead of graph traversal and hash maps?

In response to the plethora of comments on HN and Reddit criticising the fact that I'm not offering better alternatives, I want to emphasize this post is a problem statement. I actually have a few (untested) ideas about improving the situation, that I will cover in a future post. (Keep an eye on it if you are interested or want more things to hate on)

What's the conclusion? In my perspective, the real goal of any software product, and in turn every software developer, is to solve human problems. I believe it would be a wonderful change if M(formerly F)AANG and the Fortune 500 companies would look for ways how to test if a developer is capable of delivering the best solutions to the real-life problems their users face instead of the O(1) solution to binary tree maximum path sum.

A call to action. Even if you disagree with me about the details, I believe it's time to revisit the way we conduct interviews as an industry. Not because what we currently do isn't working, but because companies have a powerful tool at their disposal, in the form of the used interviewing method, to shape the mind and skill set of the whole industry. Do we utilize it for the best effect possible? What's your opinion? Thinking about this aspect of industry wide hiring practices is something I have not encountered before. Let's start a discussion! #interviewimpact

A big thank you for my sponsors. I made a poor attempt with my book in exploring all the tools and techniques, available only for software engineers to create software that's better at solving real-life problems and delivering value. But it didn't take off at all, (and you are better off not buying it too...) so I want to thank the awesome sponsors of this article:

Without your support, I wouldn't have been able to create this post! If you want to ace those leetcode interviews at your dream company, make sure to check them out and use the code ... oh, that would be nice, but there's no code, in reality, I don't have any sponsors. 😭

(Please LeetCode and The TechLead don't sue me, this is a joke. You both have fantastic products! The article is aimed to critique the industry trends, not individuals or companies and expresses my own opinion.)

RELATED ARTICLES

If you want to get notified when similar content is coming out

Subscribe to the Newsletter

You won't receive any spam and you can unsubscribe any time! ✌️

I need to say this, sorry: By subscribing you accept the standard Terms and Conditions and Privacy Policy of the site.

© 2021 - 2022 All Rights Reserved

József Miskolczy

Find me on

Twitter

Reddit

Terms of Service

|

Privacy Policy

|

Other Legal