297 points · by throwawaynay · 4y ago · 607 comments
I've worked for 4 different companies, for European salaries, without doing any leetcode type interviews(I ditched any company that was doing it), it was either take home tests about real problems, technical questions, or sometimes just trust in my abilities given my previous experiences.
I've never really trained for leetcode(or not consciously at least, I did do a bit of algorithms/data structures of course), mostly because I know that I would panic and perform poorly in this kind of interview, so I don't really see the point of practicing for that.(it's not really about whether or not I can solve a hard leetcode problem, it's about if I want to do it live in front of a recruiter, it make me anxious just to think about that and I don't want to inflict that on myself), I'd much rather have a hard take home test than an easy leetcode interview.
+If I have to spend a few hundreds hours of hard work on something I'd much rather work on an useful and potentially profitable side-project, rather than on pointless problems already solved thousand/millions of times.
Do you think grinding leetcode is an absolute necessity to land a good job at a company hiring worldwide remotely? I'd be aiming for salaries around 80-100k$. In my country the only companies paying that are FAANGs.
Thanks for your answers
I’ve been a software engineer and now architect for 15 years. Studying leetcode like problems won’t help me at my current job or a future employer once I get past their interview processes. What leetcode does do is make it difficult for minority candidates, those with external obligations, or those with families to get into firms. For example, I work 50+ hours a week with two kids and a parent with cancer. I work hard at work and have a lot of external obligations. I don’t have time or to study leecode problems.
At the time, I had been coding for 15 years in multiple languages. Out of the blue I got poked by a Facebook recruiter and on a lark decided to go through the process. I made it through the phone calls and screen-share coding sessions just fine. I went onsite and had a several interviews that went swimmingly.
Then near the end of the day, I ended up getting a whiteboard coding challenge that involved pretty simple array manipulation and my brain absolutely locked up. In retrospect it was comical, but at the time it was incredibly humiliating. There I was just alternately staring at the whiteboard and the interviewer with what I can only imagine to be the most hopeless expression. My brain fog absolutely impenetrable.
At this point in my life, I'm fairly familiar with the condition. Basically for some random reason, the thought pops into your head just how disastrous it would be if you failed at this thing you're being asked to do. Then your consciousness inevitably becomes obsessed with this thought and it's all you can think about. You start panicking and soon you have absolutely zero mental bandwidth to accomplish the task and your mind is basically singularly focused with getting out of this terrible situation. It sucks.
So, I'm always a little annoyed when I hear people say, "what's the big deal with a little leetcode?"
I mean, I get it, if I actually could not solve those problems, I would not be eligible for the job. But the reality of whiteboard leetcode is that you're not screening for people that can code, you're screening out people that can have panic attacks. In my opinion, it is borderline disability discrimination.
This is such a relatable description.
I don't think you even need a panic disorder to have this happen to you, this has happened to me a handful of times and it's absolutely the worst. It really is humiliating, totally ruins your day and you end up kicking yourself for several days after. I think this is just something that a lot of people do, like stage fright or something. The only way I know to avoid this is to do a lot of interviews with different companies that you don't really care about to get more confidence before you finally do get to the interview you care about, just so you don't choke during the one you want.
I couldn't even remember how to write a for loop in bash, something so familiar it would be like asking me to recite the alphabet. Utterly humiliating yet comical experience looking back.
This happens to me all the time! You’ve described it so succinctly. How do you cope?
I am really grateful that you brought up this point as well sharing as your own experience 'ryandvm. My own experience when I fail to think of an answer to a leetcode question is extremely similar if not identical. I would add that my own experience is always a silent panic similar to how I experience going on a rollercoaster. Many people will scream out loud when they are going down a rollercoaster; I just clench the safety/restraining bar really, really tight and look onward while clenching my teeth. I am surprised that it took this long in my career to hear similar feelings expressed by someone else, but I am grateful that it did.
Thanks again 'ryandvm! I really appreciate it.
This rings pretty true to me, thank you for sharing your experience.
Like a driving test and the training with parents/adults beforehand.
Even with some judgmental/skittish passengers its the same.
We need a credential that counts as passing a technical interview, so we don't have to take these tests for every single job that we apply to.
If I pass a coding test, stay at a company for a year, then apply to other companies, I'm going to subjected to coding tests even though I just passed one only a year ago. It's like companies are afraid that programmers will spontaneously forget how to program.
A credential's test is not limited by the very time constrained format of interviews. This means it could ask more questions to reduce false positives. People would be willing to invest time because it saves them the hassle of interviews in the future. A centralized testing entity could work to reduce cheating instead of every company having to do that themselves. Plus, administering this test would be full time jobs for folks, so it would likely be a higher quality test than what most companies give.
Well it’s not like the company you’re applying to has access to the test results from the company you’re leaving
> It's like companies are afraid that programmers will spontaneously forget how to program.
To be fair, I think most leetcoders agree that you need to practice regularly to keep your skills up. So if the point is to see how good you are at thinking algorithmically for the job you’re applying for, it makes sense that they’d want to see recent test results.
So we could call that a degree? And have institutions that specialise in testing for it? And because some of those institutions will be better at measuring this, we could rank them?
I thought most people complaining about the current approach didn't like this one either.
A qualitative hiring interview would be perfectly fine if the interviewers had no discrimination in their minds. The real solution is having minds without it. It's probably a goal hard to achieve with grown up people. Easier with newborns. So any solution starts from their parents, grandparents, etc and will stretch over many generations. Education, mingle with people from every origin and background, etc, pick your favorites.
How many generations? Limiting ourselves to the USA think how long it took for women to get a vote since the Constitution and for an Obama to become president since the end of slavery. We can hope that the trend is accelerating but who knows what's going to happen next. The state of the rest of the Western world is not so different.
This is the optimum. Now the good because there will be interviews to do this year. Any stop gap solution would do but don't invest too much into it because if you don't remove the real problem any fix will be worked around.
What we really need is for companies to stop trying so hard to find the absolute best most perfectest candidate that they screen out huge numbers who could have done the job but who missed some arbitrary keyword or coding test by a fraction.
This idea already exists in many forms. Pick any language, platform, or technical concept and there's someone offering training and certification.
It also describes the whole recruiting industry. "What if there was one person who did a lot of interviews and then presented just the best people to employers?"
It's an extremely human incentive alignment problem. Any certification program, interview farm, or bootcamp that makes more money when they produce more candidates will make quantity the goal, not quality. If you can figure out that problem, maybe there's a niche. Otherwise, it puts us right where we already are.
We could call this a degree, perhaps in computer science?
This seems like an excellent idea!
Unfortunately my CS degree from a very-top school (CMU) counts for nothing in so many companies.
I guess one upside of these types of interviews is I've been able to disqualify candidates just because I don't like them and saying they didn't do well on the algorithm question as justification is a easy way to reject them without much explanation.
And what about every other field that doesn't use leetcode style interviews? Does a biotech company make their interviewees do lab work live? What makes software engineering so special that we need a different interview process?
Google had this process because they are very academia inspired and want to hire the best academics, with a college campus but better work experience, because they had very high back end scale requirements, where algorithms do matter. They also had a shit ton of applicants and favored the false negative over the false positive, which they explicitly and publicly state. You might be able to argue that scale doesn't matter as much at google anymore, but google has no reason to change its process since it first established it, and back then they really had those hard scaling problems to scale up.
The reason why the software profession tends to have extensive interviews is because we don't trust credentialing or even prior experience. [0] We don't want to hire the unskilled bozo who can talk and have brand name credentials but when you actually put them to work find they are not that good at all. So we actually test their skill as directly as possible with various forms of work sample testing with as long as an interview process the market will tolerate, which has stabilized to 5 - 7 hours, or an entire working day.
The beauty of this is that you don't need to get into a med school equivalent with it's crazy requirements, spend 10 years-ish of training and go into 6 figures of debt, get a residency / hazing ritual in a few limit slots in the USA and can come from almost any poor background or country even and eventually make more than most surgeons. In that light, needing to spend 3 months to hard core leetcode doesn't seem so bad.
[0] https://blog.codinghorror.com/why-cant-programmers-program/
>Does a biotech company make their interviewees do lab work live?
Not biotech, but according to my cousin, pharmaceutical research interviews are even more arbitrary. He had chat with 5 employees who asked questions about their own rather esoteric specialties. Most of the questions were completely unrelated to the work that he ended up doing, and my cousin thought that the interviewers themselves were unlikely to be able to answer each other's questions. Unlike leetcode, this isn't something you can predictably study. It just so happened that the labs my cousin had worked in happened to specialize in those same niches. There are so many qualified postdocs that want to move to industry that interviewers can afford to be picky.
The combination of absurd profitability (of which the tiny slice allocated to employees still seems like a lot) and a complete lack of any actual objective measure of quality.
Because there's no way to really test whether someone is good at programming other than hiring them and seeing how it goes, and because there is an effectively limitless amount of money to spend trying to organize a "solution" to this problem, and because learning enough about each candidate to make a properly educated guess doesn't "scale" enough for fast-growth companies, senior management has plenty of room and lots of incentive to look like they've got it figured out.
For some, this is following their creative whims; for most, it's "do what FAANG does because it must be working, look at all the money they make."
Anyway that's my opinion on it. If I ever have the power to change hiring at any large scale, I'll probably follow my own creative whims and make it even worse.
Here's an actual study with real data. All women failed the leetcode challenge when grilled (probably by a man). They all passed when allowed to do it in a low stress environment.
Just because a criteria doesn't match one's notion of "fairness" doesn't mean it's inherently a bad criteria. If Google wants to only hire people that are good at cracking leetcode and that ultimately leads them to have their current reputation of being out of touch, that's kinda on them.
The problem isn't discrimination, it's unfair discrimination -- that is, discrimination on the basis of something that should have no bearing on a decision to employ someone.
Any criteria you choose will rule out people who aren't able to optimize for those criteria for whatever reason. I believe that's OK, as long as you are aware of the tradeoffs and try as much as possible, in good faith, to minimize unfair criteria while maintaining those criteria that help you hire people who have the best ability (or potential ability) to do the job.
As for leet code vs an actually relevant test - I think this is probably laziness on the interviewer's part. Coming up with a good test (and keeping it up to date) is hard, and leet code questions are "good enough" to filter out the people who don't know what they are doing. Remember, most companies are fine with a high false negative rate if it keeps false positives low.
From the hiring side, this is 100% correct. Giving everyone the same coding interview is one of the most effective ways to remove interviewer bias.
A lot of HN commenters advocate for a “just trust me” hiring process where they want the interviewer to just read their resume and have a quick chat to decide if the person should be hired, without any type of technical interview. That results in people hiring other people who are as similar to their own backgrounds as possible (everyone likes to think their own background and learning style is optimal).
We know LeetCode style tests aren’t perfect, but they’re repeatable and the study material is free and widely available.
> or give take home work (because it's discriminatory against people with time constraints)
IMO, this complaint is baseless. A lot of companies give the option of LeetCode style interviews or take-homes and almost everybody chooses the take-home.
The idea that someone can allocate several hours during their busy day for a live interview but somehow can’t find several hours during the week for a take-home doesn’t even make logical sense.
I'm sympathetic to the hiring side argument. But, I don't think the parent comment is insinuating that no technical question or test be asked of the applicant. They're not insisting on trust, they're insisting on showing their own intelligence. They're saying that the test or technical question should be directly applicable to the job at hand, for the company at hand. You can just as easily ask every single person who applies the same specific questions for the role at hand in your company. You don't need to rely on generic leetcode questions if they don't specifically apply to the job at hand.
In other words, hiring needs to actually be specific and targeted rather than adopting the "cast a wide net and catch whatever we can" strategy that many places seem to employ.
9/10 it feels like the insistence on leetcode from hiring comes as an excuse for rather weak recruiting standards and practices.
Biotech interviews, for example, are usually conversational: what have you worked on before[0], how would you tackle this new problem, or troubleshoot a particular problem. There's this persistent meme that charlatans can BS their way though such an interview, but I really don't see how someone could learn enough to parrot their way through 4-5 x 45 minute meetings, often with fairly probing questions. It felt quite a bit like a thesis defense, in fact.
It's true that these aren't "repeatable": each applicant won't have exactly the same experience. This is "unbiased", in a sense[1], but has enormous variance: you're not only testing the applicant's aptitude, but also whether they've encountered this particular problem before. OTOH, tailoring the interview to each applicant' strengths might inject a little bias in exchange for a massive reduction in variance.
[0] It does help that candidates for these jobs had masters/PhDs, and therefore had at least one project they could discuss publicly.
[1] But not really...There's a subjective element to "code quality", fluency, whether the applicant wrote "enough" tests, etc.
One of the things that gets me here on the hiring side is that the ease of “grinding leetcode” as a strategy seems to defeat the entire purpose of it as an interview question. I don’t want to dismiss the value of someone being able to study a skill and learn it, but I see a lot of people fixated on rehearsing leetcode answers like they were magical incantations you recite to get jobs, there’s not always a lot of real learning happening. That’s not reflective of the kind of candidates I’d want to hire or the peers I’d want to work with.
> A lot of companies give the option of LeetCode style interviews or take-homes and almost everybody chooses the take-home.
If true I’d like to see more of this. No hiring process is good for everyone and I think flexibility can be a better way to make a process fair, but I haven’t seen much of it personally. I don’t think I’ve personally gotten a leetcode problem at an interview in years- takehome problems have been the more common screening tool, but I don’t think I’ve ever been offered a choice in the matter.
> The idea that someone can allocate several hours during their busy day for a live interview but somehow can’t find several hours during the week for a take-home doesn’t even make logical sense.
I’m not sure this is entirely on the mark. On problem with takehome a is asymmetry. Most take home assignments I’ve gotten have come toward the end of an interview process, and there fine, but when I talk to more Junior folks it seems like they are often given hours long takehome problems before they ever talk to a human. That seems disrespectful of peoples time- it’s a lot to ask from someone who doesn’t even know if they are a fit or want your job yet.
In any case the hours long takehome is usually in addition to an bourse long set of interviews- not in lieu of them. Another common problem pre-Covid was that a lot of people just weren’t set up to work from home so it was harder to get the space and time to work on a project at home. I expect that’s probably changed a lot these days though.
I personally like take-home problems. It's hard for an employer to time-box them without resorting to basically leetcode though. I know that, as a student, I definitely spent many hours on them.
That's how your manager is going to be hired, as well as all of his bosses on up.
If they want to be really undiscriminatory, the interviewer and interviewee need to not be able to see each other, and even real names (which can indicate gender and ethnicity) must be hidden.
When orchestras started doing auditions with candidates anonymous and behind screens, they ended up hiring a LOT more women and minorities - even when the selection committees had previously thought they were trying to be nondiscriminatory.
Deeply embedded biases are really hard to root out, even for ourselves.
The number of women increased, not so much the number of minorities[0].
[0]https://www.nytimes.com/2020/07/16/arts/music/blind-audition...
The companies making you do this though likely don't want someone like me. They want someone young who will burn themselves out working 80 hours a week for them.
So I guess it's a good filter for me as well.
However, we don't ask employees to work anything like 80 hours a week. In fact, we track overtime hours (> 40hrs/wk) and pull the red "panic" lever when it goes above a threshold as a control for burnout.
But like you said, you're applying a filter too (if no coding test -> low overtime required). It probably has false negatives (my company), but it's worth it for you because you have found that it rarely shows false positives.
The practice is just a veiled hazing ritual meant to strip you of dignity and agency.
If it isn't meant to do that...well, guess what? That's what it is doing.
And if I study real hard and maybe take a boot camp, I can join one of the illustrious paragons of internet virtue such as Facebook (sorry, meta block chain addicts inc.) or Google to spread ad-tech throughout the known universe.
Most development jobs require very little CS theory or hobby projects to do the actual work. Most of what software engineers build are glorified CRUD apps. What those things tell a prospective employer is that you’re willing and able to grind yourself to the bone.
Case in point: I’ve been hiring people from local minority jobs programs for entry level dev roles. Yes they’re green as heck (usually just a coding bootcamp) and we have to handhold them for a few months, but it gives mentorship opportunities to our mid-level devs and after 6 months of project work you’d be hard pressed to tell the difference.
Not everyone can take a couple years off work to go get an advanced degree. These jobs are not so hard they require one. Credential inflation is out of control, and trying to hyper-optimize individual achievement often ends up building poor teams. Give me someone with good work-life balance and priorities outside work any day.
Word. I left the industry to sit around my farm and raise my kids for about ten years. When I came back and started working with people I was shocked at how long it takes to learn anything about tech on the job. I was working on my own trying everything while I was away.
I noticed that my "senior" co-workers who had been working the previous whole ten years knew far less about the inner workings of the various tech they used daily than I did. I would rattle off something and expect a comment or answer and would repeatedly see architects and lead devs freeze up. I watched as they completely botched implementations simply because they didn't read the manual. The surprises were many because they used the same mental model to understand everything.
One implementation with a vendor required socket programming. They snapped and threw up their hands immediately in a big huff. I pointed out that C# had libraries to support that and that it was fairly trivial and probably way more fun than consuming a HTTP API. It took a few of us to calm them down and get it working but the dev who was assigned to it continued bitching. They were incensed at having to program against a TCP stream. It was so easy and trivial (imagine a binary string the size of an encoded JWT). He fucked it up bad and blamed the network for weeks.
In another instance, they were having trouble selecting a protocol for an external message passing framework. After selecting one at random I started asking about the protocol, mentioning that it sounded like it was based on "remoting (RMI binary non-routable transport). They had no idea. That concept of not having any idea about the underlying libraries and tech they selected was spread across an entire project, causing many real life disasters.
This all worked out great for me because I got use my deep knowledge a lot to identify root causes and fix thier messes which led to mahoosive salary increases and bonuses.
These bros were trying to leetcode everyone they hired. I couldn't do fizzbuzz to save my life. Just not interested in it. Is leetcode a filter to make sure you can work on the same old boring shit without losing it?
The argument is that leetcode is a means to dress up the latter as the former. Prima facie, this seems plausible. I dont think it's racially/etc. motivated -- I just think interviewers like people "like them", and leetcode selects for "like them".
Hiring is not about absolutes; it is about relatives (local maxima). When you work at an "elite" company, you quickly realise that you don't need to be a genius. For each open role, there must be 100 qualified candidates. As a candidate, you need to be a more-than-a-little-bit lucky to get the role! How does the hiring manager choose? Start with a baseline. Then pick the best.
Be curious to see numbers on burn-out rates between people who do practice leetcode to get hired and people who don't bother with it.
Our firm has every candidate take a quiz of five coding problems. Two of which are quite easy and the remainder a bit more difficult but none of them even approaching "leetcode" levels of difficulty. Even so, let's just say that most candidates don't do very well.
For a long time, I used an easy-to-understand, but hard-to-be-perfect interview problem: Please implement the classic C-function atoi() [string to int] in any language. (The candidate cannot use a built-in to do the parse!)
The best candidates immediately dissect the problem and start to ask about edge cases. The worst ask no questions and very rarely do a good job, and never think about test cases.
I’ve been able to stay comfortably employed and even climb the ranks in software dev for 7 years now, but had it not been for the company that first hired me eschewing the leetcode in favor of practical exercises in their interview, I wouldn’t have gotten in until a couple years later at minimum, assuming the resources required to continue studying held out (I was extremely cash-bare at that point, so absolutely not a given).
Now that I have years of experience under my belt it’s not as much of an issue — lots of places want to hire me regardless, but if I really had to I could drill leetcode for a couple months to prep for an interview. Back in the early days that wasn’t really practical, though.
However I have seen the "leetcode" process defeat discrimination at least once in my career, when HR was assuming a black guy was not qualified but he was able to prove himself on the white board.
There are plenty of good critiques about the whiteboard process, many of which I agree with, but this critique is silly.
Perhaps. I've been building software for over 30 years and I still find that I learn a lot when I practice and push myself to work quickly and efficiently.
> If you haven’t seen a particular problem before or had time to research it, it’s unrealistic to expect a candidate to solve it in twenty minutes in a high pressure situation.
Someone just slipped a bug into production. We now have $12,399 per minute in transactions that will not be processed. CEO needs a report for a board meeting in 20 minutes. Junior dev didn't show up and four team members were waiting for the commit he was supposed to have in yesterday. Dealing with high pressure problem solving is really every day, and practicing against the clock is a great way to learn to be calm and focused when it matters.
> For example, I work 50+ hours a week with two kids and a parent with cancer.
So sorry that you are dealing with cancer in your family's life. Cancer sucks.
While it's helpful to have rockstar devs that fix that kind of situation in 5 minutes, I'd say you still have to have boring people who test thoroughly, document properly, and have deployment procedures and rollbacks figured out, none of which is something you identify from a Leetcode type test; yet these practices which lower the chances for that scenario to happen in the first place.
> Junior dev didn't show up
Why is the junior dev in charge of something so important? What were the senior people working on instead that was more important than this? Sounds like he cracked under the pressure. Where was leadership?
I think you are blending all of those problems together (there are three - hopefully not all of them at the same time... that would be a worst day ever). It's pretty normal that someone can't get to work, and you end up with a last second scramble to get something fixed. When something ships into production and is buggy, what matters is fixing it quickly.
The point is that most developers do end up having to work under pressure from time to time, and the higher up you get, actually, the more critical it will be.
I don't think that there are any conclusive studies covering this, so both sides might be correct for all we know.
Then they go to Harlem to ask people what they think of those comments.
As for your claims themselves, In 3 months I studied 350 hours to pass the hardest test in finance while I was married, had three young children and worked full time. Nobody has time to do the things required to advance your career. You have to make the time.
For years, I also recruited and mentored students from an inner city bootcamp near me where the students spend 80-90 hours per week for 12 weeks learning software engineering. The vast majority of students are minority and there is fierce competition to hire graduates by local companies.
Maybe they should have asked in one of the states that is actually passing restrictive voter ID laws, and that is at the same time closing DMV offices in minority areas, limiting the hours that DMVs issue IDs, and has nearly non-existent affordable public transit.
The might have gotten different answers than asking in a state that is pro voter rights, in a neighborhood that has a DMV office, and that has excellent access to public transportation if for some reason the neighborhood DMV is not available.
In order for me to add my family to my insurance I had to provide identification for each of them, including a marriage certificate and drivers licenses for myself and my wife. All that just to get health insurance.
In order to vote you should have to identify yourself and that you are eligible to vote in a US election. It's complete nonsense that getting an ID in the US is just too much of a burden.
Regardless of what some people in Harlem think, data shows that minorities are in fact much less likely to have government ID.
https://www.brennancenter.org/sites/default/files/legacy/d/d...
The study you provided was a phone survey of less than 1,000 people that occurred 15 years ago. It along with other studies showing similar results were debunked by researchers at Stanford, Yale, and the University of Pennsylvania.
Free, state issued ID is part of the answer but the opportunity cost getting to a photo booth (!) is still a surprisingly large inhibitor given the stringent requirements on photos. (I do my own photos at home, you have to have a reasonable colour printer, I edit on the computer but you could probably do it on a smartphone nowadays).
If people of a particular background are over-represented amongst the [very] poor (such as "White Irish" in the UK) then they'll be disproportionately disenfranchised.
I don't remember much of algo questions before 2010 outside of actual GOOG. If anything, OOP design like "for a game of chess" were common in LNKD-like companies. And j.u.c-like real life knowledge.
I remember being asked to implement quick sort or reverse a list in 2010 or so. Then to do DFS on a graph or detect all connected subareas of a matrix in 2015. DP questions were so new I din't know what they were back then. I had interviews last year with two out of three rounds being DP puzzles.
I don't know about junior engineers but I want to go outside at least on weekends and not think much about computers. So the hours I have for "studying" can be spent either on learning something new and useful (Flink? ML? golang generics?) or memorizing this mindless leetcoding. I've done development for too long to have any interest in algo trivia or problems not based in real life situations.
Often the same thing in for example, typical wall street firms before 2008.
I read that to mean that the tests are geared towards white candidates! Is that really what you mean? Coz I can't wrap my head around that!
And I bet Asians (a minority) , as usual, do better on them on average than the white candidates. Not because the tests are designed for Asians, but because of culture of studying hard.
https://thepractice.law.harvard.edu/article/the-model-minori...
Familial wealth provides an individual with more free time, generally.
More free time before a big interview means more leetcode prep time and memorization of the answers.
More leetcode prep time leads to passing leetcode interviews more often.
This isn't that complex.
It really bums me out when people reach for this kind of "how are you not getting this" slight. You could have just explained the reasoning without implying that the asker is an idiot. You're just making yourself harder to hear.
I don't have familial wealth and I can study for stuff. I happen to spend around an hour a day (most days) studying programming-related topics.
I'm sick of this woke nonsense pervading society.
Studying for a Leetcode exam has sweet-fuck-all to do with race!
I guess 'poor [edit: low on money] candidates' would be more precise.
You literally can get good at leetcode with an hour a day for a couple of months provided you studied computer science or even just like took AP Computer Science in high school. And even that just requires an internet connection.
I think this partially explains the phenomenon of external candidates at Google entering Google at the college-hire tier when they may have been repeatedly promoted at their prior employer. Of course the comp is usually more so it's not a big deal...
Can you flesh this out because you claim it but then provide nothing to back it up other than saying minorities don't have time, which just seems to be a strange and unsubstantiated claim.
To me these are far better for eliminating discrimination as the interviewer and interviewee can't see each other over a phone screen so there is no racial bias introduced, all you have is can the interviewee code. Plain and simple with far less chance for discrimination than a face to face interview.
It's about as close to the famed blind music auditions as we currently have.
Stephen Jay Gould's "Mismeasure of Man" appears to be defensive of minorities for protective colorization. The real problem Harvard has is that it is flooded with legacy admissions who couldn't test their way out of a paper bag -- people like Gould get funding because their work supports the interest of those people. By saying it is about minorities they get support from the general public.
Standardized testing is a path to opportunity for poor people and other outsiders to demonstrate their talent. It's true that some rich people can improve their results by spending money, but also true that some of them are as dumb as a post and the only way they are going to beat standardized tests is bring in a ringer to take the test for them.
In every other aspect of education rich people are much more able to "achievement launder" and use their parents money and connections to appear to punch above their weight. Standardized tests can keep the bottom 40% of those people out.
The bottom line is there are more qualified applicants than there are spots available. No matter how people are selected some group is going to feel unfairly treated.
This is actually such a bizarro answer I’m surprised it is getting tons of upvotes. All the techniques you learned in school can solve nearly every leetcode problem. You can get good at it with an internet connection and an hour a day. If you're going to work at my company for 2 years you better demonstrate you can do some preparation when there's literally 400 of you applying.
It’s been 15 years since I’ve been in school, and probably about 5 since the last time any of the things I learned there were relevant outside of interviews.
You can certainly get good at it with an internet connection and a hour every day. But that is 50% of the time I have left to myself after all my obligations are fulfilled.
Anyway, that’s not the issue. The issue is that the alghoritms tested for in leetcode are never relevant to the performance of my application.
On the interviewee side, I think many candidates fall into the same mental trap as the smug interviewers; they think of it as a school test where you have to match the answer sheet. In reality it's more about selling yourself to the interviewer in between the lines.
I don't really buy the busy family argument; my wife finds time to practice leetcode despite having a full-time job and two kids in the house for a good half of the day. In my experience, people that work more hours per week than the local standard on software roles either have trouble setting expectations w/ stakeholders (and this ability is evaluated in unicorn interview loops for senior level and above) or they just volunteer to overwork when it isn't really necessary. I've seen high-paced environments where the family folks did a consistent 9-to-5 no problem. Extenuating circumstances like family cancer are indeed a valid concern, but at the same time, a minority of cases.
I've seen plenty of bitterness along the lines of "some ethnicities/age groups/etc just work too hard" or whatever, but at the end of the day, if we're talking about roles paying north of 200-300k/yr, the dynamics of the incentives will pretty much guarantee that one needs to put above average amount of effort into getting one of those jobs.
The thing is there are companies out there like Duolingo or Zapier that are willing to hire from non-hub locations and pay 6 digit salaries, and they may not even ask leetcode questions per se, but their hiring bars are very high nonetheless.
I completely agree. Many years ago, I was challenged during a telephone interview to determine if a linked list contained a cycle. At the time, I did not know about Floyd's cycle-finding algorithm. Of course, I failed the interview miserably, but the experience stayed with me for many years.
In 2014, there was a blog post about this exact algorithm and interview question: https://www.nomachetejuggling.com/2014/06/24/the-worst-progr...
I pounded the desk when I read it!
It was even discussed on HackerNews(!): https://news.ycombinator.com/item?id=7953725
One way to think about LeetCode is that it helps to expose you to 100+ obscure algorithms that might come up in an "elite-level" interview. Knowing them off the top of your head will either make your look like a robot / genius / both(!). Also, for interviews that require keyboard or whiteboard programming, "kata"[1] is undeniably good for your performance. Like anything, the more you practice, the better your performance will become.
Currently, we are interviewing at my office for software engineers. I always interview as a pair with the same person. We have slowly evolved our interviewed in an attempt to find a "local maxima" during a one hour time slot. No, we don't do whiteboard programming -- everything is f'in Zoom/WebEx these days!
I struggle with this: With the advent of Java and C#, a lot of average programmers know "enough" algorithms and data structures to get through an interview. How can we push harder to find better than average candidates? I don't know a good way without take-home programming assignments. Asking people to memorize 100 obscure computer science algorithms before an interview is just silly.
I would struggle to explain how a sorting algorithm works, but I know all about O-notation for time & space complexity of the best sorting algorithms. (My sort sizes aren't very large, so TimSort[2] works 99% for me.)
Just ask them where they needed to solve a problem with an algorithm, why/what they did, how they implemented, tested, validated. What other problems could use the same approach, how could the problem be changed to invalidate assumptions, and so on. etc.
(While writing I realised that this fails in cases where the interviewers are not competent enough to follow along in random directions, which then gives the rationale for a leetcode quiz - basically a battleship-game that the interviewer prepares in advance so that he can pace the discussion and grade the candidate.)
How is that different from learning any skill/profession?
Everywhere you gotta put time / effort.
The difference is that LC questions allow you to get highest paid jobs.
Average software shop probably does not require them.
The solution is to overturn Griggs v Ohio.
So making a test to see who you'll recruit is unlawful. I don't know what to say.
Yes, maybe we should consider leetcode interview as something of a rorschach-blotch. The interviewer can take the discussion in any direction he wants, under the pretence of "evaluating technical competence" or whatever.
Note: this is a genuine question, I am interested in understanding your view point.
The soft bigotry of low expectations.
So, I gave a few interviewees a code test, and they failed miserably. Mind you, nothing hard - it was a test can I give you a simple function to write, and can you 1) declare a function or class that accepts the right inputs, 3) does what the spec asks, and 3) has the correct output format. The test took 10 minutes to an hour, and was totally open book. The result was pretty staggering. 2/3 of developers would fail the test, and not for esoteric reasons. They would fail because they used the wrong boolean operator, make simple type-casting mistakes, or fail to return data in the correct type (i.e. return a string and instead return a bool or an int). When they failed, it wouldn't be just one thing, it would be two or three mistakes.
So, now I code test everyone, and it has nothing to do with your salary. If we expect you to program in your job, we will verify that you can actually string together 10-15 lines of code. I've only had a handfull of applicants call the test leetcode (I think it's a lot simpler than that), but the reality is there are just a lot of people who can't really code out there.
We hire with a similar setup, but we try to keep the test extremely simple and close to reality. Something they would likely encounter on their day-to-day.
The majority of the developers fail at it. Senior, mid-level, juniors, etc. It doesn't matter. Which always surprises me. People who claim to have 5-6 years of experience can't even refactor some code. Or they can refactor and can't explain why they'd do it. It's bizarre.
But I would never classify this as leetcode because these are common tasks that any developer should be able to solve and not purely algorithmic questions that will rarely (if ever) be used in real life.
I'm an IC and I could deliver software with all methods in a single class, nobody would care I think, as long as it worked as intended. I happen to like programming and as I am improving my skills every time I touch an existing project I look for things I could have done better. If major changes are being made, I often upgrade frameworks or do a partial rewrite to improve things.
I know people who just do stuff without trying to understand why. If I cannot explain why I am using dependency injection and what problem it solves, I am not doing it correctly.
- multiple "senior" data scientists who cannot write a function definition in python
- a "senior full stack engineer" with 5+ years of web dev experience who took 20 mins to change the width of a div in a web app
- many "mid/senior level" full stack engineers who don't know the difference between sync/async, or have any clue about how the JS event loop works
There are so many candidates out there who have what looks like impressive CVs, but can hardly string a program together.
But also, seniority doesn't determine if someone knows those things. If I asked you for a list of things I should know by the time I get to mid/senior, someone else will have different expectations. Everyone is kind of inventing their own requirements on what someone ought to to know at junior/mid/senior levels.
It depends what the requirements of the role are. For some frontend React work maybe, but the engineers we were trying to hire would be working on APIs and processes that handle high volumes of streaming data. In that context using sync methods over async would significantly impact throughput.
When asked "why are you using a sync method here" the answer would often be "I want the code to pause here before the next line executes". It's a fundamental misunderstanding of what's happening under the bonnet that IMO is required for this sort of task.
Also - I agree that labels like "mid" or "senior" shouldn't carry a specific list of knowledge requirements, but they are useful to set benchmarks for what a candidate should be able to roughly offer in exchange for the level of comp they are requesting.
I definitely would have failed this a few years back, because I spent most of my time in R & SQL.
2: Could be terrible or totally reasonable... how much of that was "fixed cost of any push to prod regardless of complexity"? I've worked at very few places where I could get a change from my editor to production in less than 10 minutes, except in emergencies. Even at my one person freelancing shop a push to prod took at least a few minutes to go through the pre-flight checklist.
3: Bad but not insanely bad, depending on what's needed for the role. Definitely something they should learn, but not catastrophic especially if they are a huge value add in other parts of the stack.
There is of course a possibility that someone has rehearsed their interview happy path down to the word and they can easily describe complex technical concepts without understanding them because they're quoting a script, but an interview that can be gamed in such a way may highlight a problem with the interview.
If most of your interviewees are failing to write basic code, the issue probably isn't the applicants.
I dislike leet code, but you do need to be able to code something (Even if it's syntactically incorrect) on the fly and reason with me about what and why you're doing something.
Deeper question: Did you think about why some people are able to "show me things you've built, tell me how this function you built works", but fail miserably on a straight-forward coding test?
Sometimes, during an interview, it seems obvious the person is very intelligent, but having a bad day. Some part of interviews is pure performance to me.
1. Write code that will find the second largest item in an array on ints.
2. Write SQL that selects the second highest number from a DB table.
I'm floored how few candidates can do these. Many end up giving up or fiddling for 10 minutes before giving something like `SELECT table WHERE 2`.
Here in Europe this sometimes happens (candidates can't code at all), but _very_ rarely, maybe 1 out of 100? Especially as you move eastwards, the base coding abilities start to improve massively for the average candidate - in the UK, if you are stupid you can easily get by on the social welfare system, in Eastern Europe, if you are stupid, you starve. As simple as.
There was a time I used to ask Fizzbuzz-style warmup questions on interviews, but then I stopped because the signal it gave was pretty much useless. The only positive case I can remember was when a tester applied for a dev position.
I'm generally more a fan of keeping skill-based examination too, but making it very easy and language agnostic. Harder than FizzBuzz of course, but nowhere close to dynamic programming.
Ideally, if a candidate has never seen it before, a basic tree traversal is enough. But since 100% of people have practiced that before interviewing, I invent a problem by ripping out a little piece from the codebase I'm working on. It usually amounts to.. Show me some clear control flow, factor that code into a subroutine, iterate over a collection and call that subroutine, contemplate the performance characteristics in a discussion (not bigO complexity, more so consider the I/O device..caching..)
I recently got that question after a homework with about 200 lines of python written. If I had failed at this question, the company would have concluded that I had somebody else do the homework for me, so I understood where they came from with this.
I cant say its perfect... But they have a really great Clojure team and everyone else seems to have a difficult time hiring for it. They IPO'ed last year too...
reality is there are just a lot of people who can't really code -- IN THE ARTIFICIAL CONTEXT OF AN INTERVIEW - out there.
FIFY.
I don't think its wrong to do these types of interviews. But interview stress is real, and it affects people in strange ways. I bombed one of these interviews once and the interviewer was convinced I was "not a front-end programmer". I had just left a job where I had written literally hundreds of thousands of lines of (modern) front-end code, daily, for the last several years. More complex than what I'd be writing at that company (I was eventually hired in spite of this particular interview). And oddest of all, that interviewer was (very soon after) let go. Such is the world of programming interviews.
So yeah. I don't think its necessarily the worst. It might even be the best way to interview candidates. But we all need to take our asessemtns with a huge grain of salt and stop being so judgemental.
I guess where I'm going with this is, maybe change your thinking about leetcode? Don't think of it as a necessary evil in order to land a high paying job that you dread doing each night; look at it as a fun little hobby, with the nice side-effect that you're keeping your data structure knowledge, algorithms and general problem solving skills sharp.
Like my past studying for SAT or LSAT, it was as much about preparing myself for the test itself vs. trying to gain some specific knowledge. Time management, making sure to test, and knowing that there are almost always naive vs. optimized solutions for these types of problems and learning how to quickly identify the naive solution (i.e prove I can solve) and then figuring out the optimization.
In any case, I enjoyed the process and didn't really practice more than 10-15 hours. I literally just kicked off the rust and got used to managing time. If you get too deep in to "I've optimized systems to process millions of transactions/second, and some 25 year old is sweating me on hashtables" you're going to have a bad time.
The ironic part of the interviews at this level of experience was that the coding portions ended up feeling tough, but I was able to talk work through them. For one company, one of the two system design round was with someone who couldn't have been more than 3 years out of college (with PhD though) and had only been at that big company. That was my hardest interview because the person I was talking to had zero to little actual experience there. They knew the problem and expected answer, but didn't know the space. It was VERY HARD to talk about things that they very obviously didn't understand in terms that they did understand without sounding condescending.
I still don't know if I'm reading amen or a man.
But I hear these stories over and over - the variance is so wildly high. The people who spent the same or more hours studying and didn’t get an offer tend to not talk about it though. So, sampling bias issue.
Have not done a leetcode-style interview yet, and might never do, and might not pass if I do do, but just as a scratching post for your coding claws I think it's awesome.
The counter arguments often mentioned against Leetcode I often hear:
- You are often asked stuff that took PhDs years to figure out: This usually shows up only in Hard questions, and badly designed ones at that. In my experience, Medium ones are usually solvable with solid algorithmic knowledge. It is also usually that maximum difficulty people encounter during their work.
- It discriminates against women/minorities: I don't live in a very diverse country, so I don't know anything about the minorities part, but in my career, I've encountered plenty of women who were as good or better than men in solving algorithmic issues. It does filter people, because it's designed to filter people, but I've never found it discriminatory along gender lines.
- It discriminates against poor people: You're a programmer, you are not poor. Even if you were, the few weeks of time investment it requires is usually offset by the higher salary you can ask for. Think of it as an investment in your future. Or if you are not a programmer, the amount of skills you need to learn to get your first programming job is usually far excess of just learning leetcode.
If you as a normal software engine write a topological sort algorithm you likely failed your job. Your job is to use existing topological sort algorithms designed by people specialized in that area, implemented by people which are specialized in implementing and fine tuning algorithms (it's its whole own field of expertise, and overlooked field tbh.).
Or to reformulate it the job of an software engineer is to reuse existing components and basic building blocks to create larger components or programs, but it's not your job to create new basic building blocks. The job requires you to have an understanding of such components but not to memorize them.
Sure sometimes you have to create basic building blocks, but then doing so from memory is nearly always the wrong approach.
Leet code is not at all representative for "how well someone is suited for given job" (for most companies/offers, there always are exceptions).
While wasting everyone's time.
And favoring certain skill sets/problem solving approaches (memorization) over others (adaptability, deep generic understanding), at least in the way they tend to be implemented. It also strongly discriminates again anyone with exam anxiety and similar. Be aware that the points mentioned here apply to common leet code based screening (especially automatized screening), but not necessary asking people to solve some code problem in interviews (if you handle that appropriately).
Knowing how to write a topological sort isn't the key skill here (although, I would argue, it's a good skill to know, and it's probably much simpler than you're imagining). The key skill is knowing that a topological sort will solve the problem, or perhaps it's simply knowing that "finding an order of actions that satisfies these dependency constraints" is called a topological sort.
I have always been under the impression that the goal of leetcode-style interviewing was actually to measure a candidate's ability to recognize what algorithmic tool to use, rather than to measure a candidate's ability to implement an algorithm from scratch. When I've been in the position of interviewing in the past, I've always been more interested in that problem-solving approach than in the actual code.
In my experience, most software jobs are 90% figuring out the problem that needs to be solved and coming up with tactics for solving the problem, and 10% actually implementing those tactics. In that context, investigating the ability of a candidate to analyze problems seems like an excellent interview technique.
While I get your point, you chose a horrible example.
No, because the way topological sorts show up in many systems is not amenable to a library. Sometimes you will have unusual caching strategies available to you or the topological sort needs to work with some weird asynchronicity that no library handles well.
Even if you do just need a topological sort it's often not worth bringing a library in. It's a simple algorithm implementable in a few lines of code in many languages.
What standard library ships with it ? I can remember multiple times I've need to implement topological sort in various languages - mostly to detect if there are cycles between dependencies or order actions, it's rather simple, introducing a third party lib for such code is in the leftpad territory and writing a generic interface to generalize graphs would be clunky in a lot of languages.
It might come up in unexpected ways, say cache propagation, or a cyclic dependency in your favorite IoC container. Or in many other possible scenarios that are all real and I see them almost every day
This comment does not acknowledge the experience experience of many people who grew up poor or put themselves into major debt because they didn’t receive financial support or live in economically disadvantaged areas.
I grew up poor and took out massive education loans to pay for my education. I still pay off those debts today. Does that mean I consider myself poor now? No, but my economic disadvantage has made me need to work much harder in other areas and I’ve needed to prioritize many other things over leetcode. I haven’t had the luxury of spending multiple hours a week to get “good” at leetcode
So yes, I’d argue that leetcode is responsible for gatekeeping people out of jobs who don’t have time/money to grind on it.
OK. But, it has nothing to do with interest. It's time (which may already occupied with working long hours or a second job to pay off debt or looking after family). Who has extra time to perform leetcode tasks that have no alignment to day-to-day tasks and expectations. People with the luxury of free-time, thus attracting a certain type of profile.
> Getting real life experience or a college degree has got to be the bigger gate.
You don't just get a job doing leetcode. The experience and/or degree are table-stakes. The OP post is asking folks who likely already have experience or a degree related to the field of software engineering.
I would take 1 person who can understand problems at a high level and Google the minutia over 10 that try to remember how to re-balance a tree and confidently introduce off by one bugs.
How do you plan on screening for that person?
It is also vanishingly unlikely I’ll ever have to do a topological sort. 15 years and counting. Meanwhile, being able to read and understand a bit of kotlin has proven useful several times.
Knowing when you need a topological ordered list of vertices is (in my opinion) more useful than knowing how to implement tsort.
I love how you lead with this and then drive a car into every single wall about this issue. Its like the most predictable meme and you are it.
You've encountered women.... proportionally? What stage of the career, entry level, lead?
The only point here is about time, and time commitment available. Forget about the supporting culture you were raised around for "grinding for the job you want", that method discriminates against competent people who have other obligations. When people are interviewing for a job, they are interviewing for many jobs at other potential places, so there is no way to determine passion or seriousness by their willingness to focus on studying for your job, it only determines who has things they can neglect. And basically that is just single men without debts or other distractions.
Many times minorities have other distractions, in your non-diverse country a minority would likely have a time limit to find a job to maintain a visa or comply with an asylum application. Women often have other distractions as well, with only some slim slivers of time being similar to the single men.
Hope that illuminates something for you, or others.
However, I find these distractions are much stronger correlated with a person's economic situation rather than race or gender. Also, I agree with the parent of your comment where the time spent with leetcode is a small fraction of the time needed to learn CS fundamentals, which are usually required for the job. Especially when you're not expected the candidate to KNOW the answer, you're observing HOW they solve the answer.
I've failed candidates that memorized solutions, but could explain how they got there. And I championed ones that didn't get the optimal solution, but had a good thinking process that they could properly communicate to me. Guess which candidate spent more time studying?
Which changes nothing when its a 99% correlation by race and gender.
Its not a dissertation, its acknowledging that something has the result of marginalizes groups disproportionately. Disproportionately means that it doesn't affect everyone, it doesn't 'affect all women and all minorities. It means disproportionately affects, due to their disproportionate representation in these distracting economic circumstances, so lets do something else instead since the reasons why it affects them isn't going to change in our lifetime.
> Also, I agree with the parent of your comment where the time spent with leetcode is a small fraction of the time needed to learn CS fundamentals
If people got formal education they took the risk for that allotted time. It doesn't matter if a time-discriminatory process takes less time, its an additional and unnecessary risk for the candidate.
If people didn't get formal education then they didn't take the risk for the allotted time, they just have exposure to the tasks the company needs. That alone suggests more inspiration is needed to have a different way of determining their compentency.
For me it's the time pressure while someone is looking over your shoulder and them asking you to talk and explain your thinking.
I just panic and close up, I need mental space to come up with an algorithmic solution and can't do that if you want me to "talk through my process". Leave me some time to solve the issue and I'll come back to you with a solution, just like it is in a real job.
If a company asks me to complete a leetcode style code challenge they are not getting a representation of the work I’ll do day to day, so I always make a point in an interview to say, “I may have passed your test but please don’t judge me on that basis, let’s discuss my work”.
They’re garbage as a hiring tool for lots of reasons, but mostly it comes down to the reality that they just aren’t representative by any stretch of the imagination.
This is hugely Silicon-Valley-centric. There are millions of skilled programmers outside that culture, who have never had a six-figure salary, many who have never even worked for a tech company. Just regular (white-collar) working people with the same kinds of burdens that the average American (or European, or person from any other developed country on the planet) has to deal with.
In short, this shows how much you live in a bubble and don't understand what life is like outside of it.
As for the counter arguments:
> You are often asked stuff that took PhDs years to figure out: This usually shows up only in Hard questions, and badly designed ones at that. In my experience, Medium ones are usually solvable with solid algorithmic knowledge. It is also usually that maximum difficulty people encounter during their work.
Software engineer are not computer scientists. 95% of my time is normally gluing libraries together to build a product. Most of the time I am just implementing business processes in code and I don't really need to implement anything fancier than a for loop. What is normally more important is implementing the (correct) patterns, good practices and managing changing requirements, implementing a database schema that makes sense.
The sort of problems in leetcode won't help you do any of this. All it proves is that you can solve some arbitrary and unrealistic problem.
> It discriminates against poor people: You're a programmer, you are not poor. Even if you were, the few weeks of time investment it requires is usually offset by the higher salary you can ask for. Think of it as an investment in your future. Or if you are not a programmer, the amount of skills you need to learn to get your first programming job is usually far excess of just learning leetcode.
Many of the people grinding things like l33tcode are looking to get a web development job so they don't have to work frying chicken in the local KFC knockoff. Building most websites doesn't need to learn a bunch of algorithms. What you do need to have is a solid understand of HTML, CSS, JavaScript and how things likes HTTP work. The sort of problems in leetcode are absolutely irrelevant to this sort of work.
It ultimately depends on what sort of jobs you are applying for. A lot of positions won't require the skills that leetcode and similar try to test.
> It discriminates against women/minorities: I don't live in a very diverse country, so I don't know anything about the minorities part, but in my career, I've encountered plenty of women who were as good or better than men in solving algorithmic issues. It does filter people, because it's designed to filter people, but I've never found it discriminatory along gender lines.
No it discriminates against older developers and developers that are self taught. Typically when you are looking for the skills needed to work in a particular field you will look at job postings or talk to other engineers already in the field and they will typically say "You need to understand this language or something similar and how X and Y work" and typically people will buy a book, or do a course on those things.
With older developers a lot of these wanky problems we forgotten how to solve years ago after we left university because the majority of jobs outside of FAANG will rarely require anything more complicated that recursion or a for loop.
You are trying to assess whether people can do a job. Not solve arbitrary problems that don't present themselves in the vast majority of circumstances.
I don't think this is true. I've a buddy whose bread and butter is web development at small companies (<20 devs, often < 10) and he's been running into these types of problems at just about every role he has applied for in the last year and he's absolutely terrible at coding interviews despite him being able to reliably turn out solid code during his day job week after week.
What's fashionable in SV tends to be adopted by other companies no matter how well it actually fits. See shops with one team of 6 developers trying to turn everything into microservices.
The whole issue that these sort of tests are used inappropriately accessing someone suitability for a job. Most software people produce is simply implementing existing business processes. This doesn't require anything too smart algorithm wise, but may require good use of gang of four patterns or understanding how best to put a database together.
1. Leetcode challenges aren't representative of the actual work. Or else years of shipping working software should be as good a practice as one needs. So is it sufficient grounds for rejecting a candidate?
2. Those who pass leetcode challenges need not have any real experience as long as they can commit to few hours to practice the toy problems. So is it a good criteria for passing the candidate to the next level, given others who were rejected on leetcode basis?
Getting leetcode questions at an interview is ridiculous if the position doesn't require it.
Beyond that is a bit tricky. It's not impossible, and you can land a high-paying job at a startup or established non-tech company (established tech outside of FAANG is usually terrible pay-wise) through your network or recruiters, but the workload might be higher.
The advantage of FAANG is that beyond the initial LeetCode grind and the relative mundaneness/uselessness of the work (are you really passionate about littering the world with even more advertising?), it being such a huge company means that once past the initial grind you can lay back and still enjoy a very good paycheck for lower effort than in a smaller company which actually produces useful output beyond advertising.
Of course as a freelancer you have to arrange your own insurance and miss out on lots of benefits that employees get automatically, but personally I think the trade-off is easily worth it. Though to me the real advantage of freelancing isn't financial, but freedom; I'm less bound by all sorts of company rules and restrictions. Although on the other hand, I'm more bound by the tax service. I think it's a good trade-off.
At least in the UK, the contract market seems quite good for this early in the year, and usually peaks around summer. YMMV.
It obviously depends on your situation and whether you have any responsibilities; my opinion would probably be different if I had a family, but in my case I have little to lose even if things go sour. I won't be able to do this forever so I make the most out of it while I can still afford the risk.
I suppose I could do my own acquisition; cutting out the middle man would probably increase my hourly rate, but that's a lot of work I don't like, and this works well enough for me.
I personally would like to get to $175-$200 an hour as then it would truly be competitive with the above, but not sure how to get there
Beyond that, it's up to you how you want to structure it and whether you are physically based there - the client doesn't get to see it and couldn't care less as long as the work is done.
Its super easy to get £1000-1500 as a freelancer who handles your own sales if you have the right credentials (degree, +5 years experience, do not completely suck at programming, specific domain experience, etc).
But yes, there is a whole industry of middlemen who try an convince suckers to work on a contract basis for around £500 a day.
In contrast, half that is doable for any mid-level developer and is still a major lifestyle upgrade compared to permanent employment.
Leetcode is literally gatekeeping to boost the egos of people whose entire identity is that they work at a FAANG. You have probably met such people - I remember these types from high school and college who could memorize a bunch of shit and regurgitate it. Beyond that, I've found maybe 25% of them are good team mates/leaders. They go home, update their bios to read "Stanford CS, Ex-Apple, ex-Meta, now Noogler", and hang out with other similar types.
I've been on interview panels before, and while I prefer administrating the systems design interview, I've also had to administer coding. The way it goes is like this - half have this stuff memorized because they took a FAANG interviewing bootcamp or spent 6 hours a day for 3 months grinding leetcode. The other half are split into another half - one half that struggles but manages to do decently with guidance, and another half that just fails outright due to nerves, lack of knowledge, etc.
Here's the weird, anecdotal experience though - of the people who absolutely kill the coding interviews, maybe half will do well in systems design. They struggle at explaining concepts on the fly, or cannot come up with reasonable solutions. Maybe it is a lack of imagination, because I really do think a lot of people just memorize and get ahead. Then they hit a ceiling, or fly just at the max ceiling while boasting "ex-Facebook, ex-Apple, etc."
Then proceeded to give me a crazy leetcode question with basically no guidance or help.
Now, I expect and event want _some_ kind coding test questions. But not some crazy harebrained leet question.
That said, I have seen that even those firms without rigorous leetcode rounds have mini-leetcode questions during onsite that are the easiest of the easy leetcode problems; e.g. find the sum of an array of ints, find a duplicate item in an array, etc. So, I don't think you can avoid these questions completely, but at the same time, summing up an array seems like a fair sanity check for dev applicants. I saw one programmer (PhD!) from a Top-3 school in Europe that could not find a maximum value in an array. So, yes, some sanity checks, but I don't think this is what you are concerned about.
All those examples I mentioned above pay above (some well above) 150k USD TC.
var max = arr.reduce(function(a, b) { return Math.max(a, b); });
which is totally valid for javascript and also pretty neat. I would probably do some funny things with loops instead, wasting time and resources.
Even when I know how to do something, I look it up just in case. Sometimes there's a cleaner approach, or I learn that I don't fully understand the problem.
Premature optimisation:
In most cases the performance would not matter. Instead of optimising for performance you should optimise for readability. IMHO IFs and FORs are way more readable in any context than any language specific methods like REDUCE and MAX.
Incorrect optimisation:
At least in modern browsers, simple IFs and FORs are the most optimised methods of doing anything. See for instance https://leanylabs.com/blog/js-forEach-map-reduce-vs-for-for_... (Operations per second, higher is better).
The idea that “reduce” is language specific is frankly mind boggling. It’s no more language specific than a loop.
Mind you I’m talking in general and now in browser specifically
There are eng offices of soon to be IPO'd startups such as Stripe or Intercom in London, those don't ask something you don't do in your day to day job, however comp at this stage would be base + maybe bonus + stock options. You can never know when that stock option will turn into something, so in a way it's even worse than lottery, at least in lottery you know the date to check if you get rich or not.
There have been few IPOs from London startups like Deliveroo, but I would say they perform pretty badly and things are not going well for people who relied on the return from there.
So, I would say Yes to this. Unfortunately.
Leetcode probably has value - but the real value isn't in your scores. The scores are a heuristic grade for algorithm capability maybe. And it makes sense that hiring parties would take it into consideration. The real value lies in what you learn from completing the challenges. I don't think there's much value in being able to 'invert the binary tree' or implement a hash table from scratch. Nobody should do that professionally unless they're trying to push ahead the state of the art in that field.
BUT knowing about algorithm X,Y,or Z, and its performance characteristics and having that in your toolbox to solve real world problems is the difference between an engineer that spins their wheels for a week before solving a problem badly, and one that doesn't break a sweat making a correct and performant solution. A portfolio of algorithms and their strengths in you're 'inmem cache' is crucial if you want to move to roles more advanced than hocking json blobs between the frontend and DB.
I consult and typically find myself working on problems that the in-house team hasn't been able to work out, and very often I walk in on messes of nested loops and O(n^3) functions, when all it would have taken is judicious use of a Heap here, a Dict there (it's surprising how often a linear search over a list rather than a O(1) hashtable is used in some circles), or maybe a Trie or two. These aren't esoteric academic things, they are the abstract building blocks needed to solve real problems.
So, I digress, but: use LeetCode, work on open source, build challenging things and hang with a crowd that knows more than you and watch what they do closely.
Seek to grow your power and capability, not your credentials. If you grow as a developer then the credentials will come automatically. And if a potential employer can't tell the difference between a stone-cold competent programmer and somebody who just has a lot of acronyms on their CV, then they probably don't have much to teach you anyway.
The result in a 40% increase in total comp and having worked for some very high quality folks and with extremely pleasant folks. My job satisfaction has never been higher.
There's also the issue of Coderpad et al being a sterile, primitive, unfriendly environment. Not the editor or IDE a candidate is comfortable with. (Additionally, I want to know about a candidate's editor and setup. It reveals a number of things I'm interested in) And I like candidates to be comfortable to be able to be their true selves. Then there's the awkward "wait while you code," folks sitting on the other side that you don't really know, waiting or trying to make some kind of polite commentary to let the candidate know they're not being ignored or forgotten. And the candidate trying to talk through code, again with people they don't really know or have any social basis with. Coderpad is a horrible environment for interviews.
That said, I have seen VSCode's Live Share used successfully, where all parties were engaged and contributing to code in the same session. That was on an actual job-applicable, practical exercise.
What a miserable excuse for a test of my abilities. I will refuse to complete these challenges as a matter of course, and encourage others to do so as well.
I do not believe that "grinding leetcode" is at all necessary. However, familiarizing yourself with online "IDEs" and the skill of solving (relatively simple) problems quickly while communicating your thought process is necessary.
That being said, I would do a handful of Leetcode-type questions on your own time. Don't aim to solve as many as possible or even bother to hit the hardest questions. Most questions I received were actually pretty simple algorithms that any dev could handle. IMO it's more important to be comfortable in the environment, and be able to communicate well to your interviewer if it's live than to be able to come up with perfect solution instantly.
The better companies I interviewed with made the live coding portion a small component early on, basically as a screen for basic coding skill. After that, the most important parts were design, discussions on previous projects, and behavioral interviews.
Is it:
a) Having a good score on the actual leetcode website as a prerequisite for an offer/interview.
b) Using the actual leetcode website to practice for a technical interview?
c) Practicing some other way using leetcode style data structure and alogrithm problems. e.g. working on the Cracking The Coding Interview book.
Personally I've never seen any recruiter or interviewer mention leetcode by name. But I've certainly been asked to practice leetcode style problems.
I'd probably do something like that. No actual writing code, more of a discussion with them about ideas for solving it. I'd try to let them take the lead on approaches, just adding ideas to keep things moving if they were getting hung up on something.
After we've got what seems like a reasonable approach and I'm sure the candidate understands it, I'd then have us take a quick look at the official solution and see if it is along the lines of what we came up with.
Finally, I'd go to the discussion area for that problem and take a look at a few of the solutions posted there and ask the interviewee to help me do a quick code review of them.
The discussion areas for Leetcode problems are an often overlooked resource. They are full of proposed solutions with all kinds of issues. Sometimes they just won't work. Sometimes they solve the problem but don't meet the time or space constraints the problem asked for. Sometimes they work except for edge cases.
Plenty of startups don't have leetcode-type coding interviews in their culture, and the job market is such that $100k remote salaries are widespread.
No, the leetcode grind is not necessary in this job market, particularly if you apply to startups rather than FAANGs.
Edit: in my figure above that's 80k pounds but from my perspective it doesn't make a big difference for someone living here whose living costs would also be paid in pounds and the prices of most goods (in terms of the number, ignoring the currency) equivalent to the US when you'd expect it to be cheaper given the value of our currency being higher.
Those that have raised a large seed round (e.g. YC companies), or Series A, $100K USD for a senior engineer is pretty common.
Most of the remote jobs advertised here will be expecting that, including the UK companies:
https://www.workatastartup.com/jobs/l/engineering
Disclosure: YC Company in London. Not hiring, but our peers are hiring with these kind of salaries in mind. Not happily mind you - employers never like it when the market favours job-seekers!
Taxes also seem extremely high. I'm not sure of the situation in the US but 80k£ here already lands you in upper end of the tax brackets despite the rent on a decent 1-bedroom Central London apartment being ~50% of your monthly take home.
https://www.thedailymash.co.uk/features/how-to-be-poor-on-80...
Which appeared after someone came on Question Time complaining that £80k wasn't really that high
Mind you - I'd love to see hard figures!
Context - We have a UK company with US parent, and choose to hire in the UK for this reason.
UK firms pay for private health insurance too, but that's supplemental insurance on top of NHS coverage.
(To be fair, this was all years ago, I haven't done any freelancing recently. But I can't imagine it's changed that much.)
The ranking system is gamed to death and is meaningless - all those low-quality spammers are highly rated, so having reputation helps very little.
The spammers driving the rates down also mean that even if you do manage to get a higher-paying gig, the client may have significantly higher expectations than what's reasonable (as they were fed a distorted view of the market).
It's pretty much impossible to live on in Western Europe or the US.
For example, one client had a custom CMS/Webshop that was on its ass. It was a data corruption in their MongoDB (of course...) the code didn't really deal well with. They had contacted two people before who looked at it and said it was "unrecoverable" and nothing could be done. I solved it in an hour, and their business was back up and running. This wasn't act of genius on my part or anything: most people here probably would have been able to do it, it's just that the previous people were the software equivalent of quacks.
Needless to say, I earned a lot of points and trust with that, and did more work for them on various things, at reasonable rates.
But you do have to dig through a huge pile of crap to get these kind of things. Overall, it's not really worth it. Plus the cut UpWork takes is not in proportion to the value they deliver IMHO, so I ended up giving up on freelance work (I'm not the kind of person that's good at "hustling" in the tradition freelance sense).
I have never sold my time on upwork but I have bought thousands of hours of time and I have regularly had freelancers move out of my price range due to demand for their skills.
I’m sure there is a cap but the market is global. It is well above what many could earn locally. Over the years I have seen a convergence of rates in developed and developing nations.
it just bugs me to read these comments that makes it sound so easy to earn that much in upwork or similar platforms without context or disclaimers
I think you need to distinguish it from regular contracting.
A: No, you can get a good remote job without it.
---
Q: Is being good at leetcode-style problems necessary to land a job at certain companies (like the FAANGs you mentioned but others too)?
A: Yes, you'll need to be good at these problems.
---
Q: Is "the leetcode grind" necessary to get good at these problems?
A: It depends on your background, on your current level and on how well you want to prepare.
The alternative was to have system design and technical talks and it seems to work well. I wrote about my experience where we discussed about my side project as well: https://www.arbeitnow.com/blog/how-a-side-project-led-to-a-j...
So don’t feel as though you’re alone there! Even people who are good or decent at these kinds of puzzles will struggle to be successful in an interview situation.
That being said it is also possible to manage anxiety. The first step is to master the skill you need to perform until it is nearly subconscious. The less mental effort you can expend on solving the problems the more you have in reserve for regulating your anxiety.
The second strategy is to raise your tolerance for feeling anxiety. Don’t interview with the company you want to work at first. Instead prepare interviews with several smaller companies that you’re less interested in and would not be unhappy if they decline to send you an offer. That way you get some practice feeling anxiety without the disappointment or worry about failure.
The anxiety won’t go away entirely for nearly anyone. But if you work at it by the time you get to the interview for the job you really want you would be prepared to face the challenge.
No. Why? There are companies that know what they do, have a good founding/income and they're willing to pay well if you can make a good impact in the company.
What does it have to do with Leetcode? Nothing. They can give you a development assignment when you're going to use technologies they use every day, the ones you're supposed to be used to and for problems they might be facing right now, saw before or they're expected to overcome probably soon.
What would a Leetcode interview give you instead? I'm all ears.
There are companies that send you generic Leetcode or any type of problems to solve in a couple of hours and you never see a face, nor know more about the business you're suppose to be working for the next time if you perform well (I'm looking at you Sumo Logic/Toptal). I wouldn't even bother if that's the case.
Leave leetcode and related just for newcomers and people learning CS. Isn't viable in most of the cases for day-to-day problem scenarios.
Before I interview, I definitely spend a couple of evenings working through leetcode exercises to sharpen up on those kinds of problems. But it’s just that, a couple of hours to sharpen up working in that format - the foundation that lets me perform in the interviews is my existing skills in the field.
I actually think of it as akin to running - the thing that makes the difference is your base of aerobic fitness, but you perform best in a race if you spend some time sharpening for it.
I’ve generally not found coding interviews to be a barrier to getting good offers either on-site in the Bay Area or working remotely.
I’ve also never felt like the questions I face in interviews are totally out of alignment with the work I do. They’re not the entirety of the work I do, but they’re usually a decent distillation of the hard parts of some aspect of the “writing code” element of the job.
I also think people get way too hung up on them. At the on-site stage, honestly, I think more people fail on the more holistic system design and architecture problems than on the pure coding ones.
You have to weight those few hundred hours of hard work. You can prepare for FAANG interviews and earn 100k+/year or you can do your side project and earn ???/year plus your current job or you can improve your skills and resume and look for another non FAANG job that pays 100k+/year and doesn't use leetcode.
Clearly you have prejudice against leetcode style process. To participate it's better that you be neutral or at least acknowledge that it's part of the game that you have to play. You don't have to like it, but if your mind think it's the worst thing in the world, it'll be much harder.
I recommend you to up you linkedin profile and try to get some interviews around the world to get a feeling of what it's like. Do it without expectations, so that is doesn't stress you much.
I can tell you that requiring leetcode tests means that you won't be working with me. For a lot of folks, that's no big loss. For me, it's shrug. I'm a bit sad, but I don't cry myself to sleep, over it.
I feel these are tests for conformance and pliability, as opposed to actual prowess. To many corporations, that is much more important. They certainly don't test for many practical applications. Take-home tests are a bit better, but, it has been my experience, that the companies look for rote responses, and don't deal well with the way that I tend to solve problems.
When I interviewed folks, I got them to talk about their favorite projects, and asked them about solving unique, real-world problems, which, to me, was pretty damn important. I looked for enthusiasm and the willingness to solve problems. The code we wrote wasn't exactly stuff that you'll find in a textbook.
I also believe that, for many companies, they are a "young-pass filter." I'm old, cranky, nonconformant, obdurate, and probably a pain to work with (although I have decades of experience, working with teams that say different, I suspect that a lot of folks here, would be unhappy with me).
I won't go where I'm not wanted. I have a great deal of skill and experience, and have been shipping (as opposed to "coding") for my entire adult life. I can prove it, too, with a pretty massive portfolio. If you are interested in delivering modern, high-quality, working, maintainable, software, as opposed to FSM worship code, jargon, and excuses, then I'm a good bet.
There's a small possibility that I may know what I'm doing, and could make other people quite a bit of money.
But I'm not a "cultural fit," and that's fine with me. It wasn't fine with me, for a while, after encountering today's hiring process, but I have learned to accept it, and everything will be fine.
I love to work. Since no one wants to pay me to do it, I'll do it for free; but, of course, that means that I do it on my terms.
My best interviews have all been ones where I have had absolutely no preparation.
Also, I don't really get what you mean by saying you don't want to practice because you know you'll be anxious. The whole point of practicing is to get rid of that anxiety. Companies like to see how well you can perform under pressure, and how well you can communicate through that. The LC is a small part of the interview in my opinion.
I make almost the lower end of the scale you gave (or I would, adjusted for working 40 hours, but I actually chose to work just 32), and I could be making a lot more if I had been a little less self-critical and somewhat more persistent with a career.
I'm not a developer though, I'm an Admin type (or precisely, currently a IT Systems Architect) with loads of experience, but no formal education.
My successful job interviews have been a guy in shorts and flip-flops asking me for two minutes about the products and tech I know, in 2008 (okay, that company turned out to be desperate), and a one hour sitting with an HR and a technical guy, during which I was asked to solve the puniest problem in shell, ca. 2015 (I literally wrote down one line of shell and a pipe to awk on a whiteboard).
Though I did also work for Amazon way before this, too, the companies I describe here were medium or large, but not high profile types like Google or Microsoft.
Also, I can well imagine though that the situation is somewhat more formal for developers.
I do happen to be comfortable enough with leetcode style questions, but only because I have failed enough interviews in the past doing them (I seem to do well enough to do onsites at other FAANGs at least, even before joining my current one). I figure it's something I rather optimize for on failure than before the interview.
Higher level roles and senior roles focus more on system design and offloading more responsibility for you solving their technical stack problems.
Step 0: manage to get an interview
Step 1: do 300 leetcode problems
Step 2: fail ("you're almost there")
Step 3: do 500 problems
Step 4: take interview
Step 5: land $300K job (see salaries on levels.fyi, depends on country and level) and relocate) + tons of benefits, include remote work nowadays
Step 6: Struggle with legacy code, buggy internal tools, stressful performance reviews, strong colleagues who set the bar very high, high turn-over, oncalls. But the money is real, and overall management and colleagues are pragmatic and skilled.
I assume a smart/lucky/fast thinking guy can do with less than 500 problems. I also assume that as these recipe is getting well-known, difficulty of problems is going to increase.
Also not that this work even if you didn't graduate from a top school, even if you don't have significant experience, even if you're an older candidate. In that sense, these companies don't lie on the "equal opportunity" stuff. It's all about how much you're willing to grind these problems.
Other may offer counter opinion, but this was my experience as well as other new recruits.
What if you aren't willing or able to relocate, though?
I can't generalise to all the teams and companies, but this was my experience, and I've seen some similar profiles around me. I suppose if you really check all the wrong boxes, it may be hard to land an interview, but once you're in the process, you have a shot just like anybody else and it really boils down at how well you do at the leedcode questions. Concerning diversity, interviewers are trained to avoid common biases on gender, age, and recruiters have incentives to interview people from minorities. I would say that if you come from a minority, you are at an advantage and you're more likely to get an interview.
What is clear, is that not everybody graduated from top schools. There are plenty of SWEs coming from developing countries. Older people are more rare. I was hired at 45, and the bar was a bit higher as they wouldn't hire me below a certain level. I've also heard stories of people hired at 55.. so there's hope.
If you're unwilling to relocate, you may be able to remote work from a different country. This depends on the company and the role, and which country you want to remote from, but it's doable.
To me, the main issue with leetcode is that it's not transferable kills. It may be very frustrating to spend 100s of hours doing these problems and not being able to land a job in the end.
Many jobs are fully remotable now (tho it varies from almost all of them like Meta, to almost none of them like Apple). Sometimes slightly less money.
I'd say it depends on many things. What level are you applying to. And also, how well you perform in situation of stress. And of course, in the end, it's a competition. If the other applicant can solve problems faster than you, they'll get the job and you won't.
For me the hard part wasn't solving the problem, but solving them in 15 minutes. At Google, 2/3 problems I got were hard and not medium. There would be no chance that I solved any of them if I hadn't seen them before.
You can go on LC (I think it requires premium) and see people post similar things (may be biased there). There's an entire category in the problems where you can see what companies have asked certain Qs and their frequency (6 months, 1 year, 3 years, etc).
I myself am starting the LC grind, the only thing I've honestly regretted in my career is not getting a CS degree (mine is in Maths). Never having a solid foundation in DSA makes LC prep painful, also the first time I'm prepping LC in general.
I'm a frontend developer for the last 7ish years and it kinda sucks that I have to do LC to get these jobs. I know some companies are starting to give different tracts for frontend roles but the vast majority still seem to be LC problems.
When I went through it all, it was only Google and Facebook that did leetcode questions. The Facebook recruiter even suggested grinding before the interview. The rest of the companies did various coding and architecture sessions, with the coding sessions being much closer to real world problems.
In the end I ended up at Mutiny (https://www.mutinyhq.com/). We do real-world domain-related coding problems in our technical screens and we won't ding you for having to google things - that is after all what most of us do day-today.
If you're interested in learning more about what we do, I am happy to chat. Just shoot me an e-mail at bo@mutinyhq.com
However it does not mean it is necessary, there are other ways to prove yourself and not every high paying job is going to do a coding interview.
I just loaded this submission because I am very interested in the results. I have not interviewed in ages, and I want to know what the trend is, but I do not have a meaningful opinion. I have to make a vote one way or another in order to see the results though.
This means I will most likely vote “depends” and not explain it in order to see the results as they develop. I do not want to do this.
Adding an option to abstain would help a lot here, and I suspect this applies to many if not most polls on HN. The number of abstentions should of course appear in the results.
Do you not see them?
At current company, we're open to hiring in Europe, and we do a ~4 hr take home assignment, which is then discussed in the meeting. Evaluation is just as much around documentation and showing your thinking, as it is around the code quality - very important qualities for a remote team.
I still got some live coding questions, which weren't that hard. For example, one of the problems was classic n queens. I remembered the problem, but didn't remember the solution, and had to come up with it in 45 minutes. Interviewer even pointed out that my solution ended up being not one of the more common ones — it was a bit quirky and awkward, but it worked.
But most of the interviews were centred around more practical problems: take-homes with realistic tasks, or questions about architecture that didn't have one "correct" solutions but served more as conversation starters. May be it's because I didn't interview at FAANGS (I really dislike working at companies that have more than 100 employees), but overwhelming majority of the companies that I talked to had excellent interview process and I did not feel as if they were testing irrelevant skills like leetcode grinding or API memoization.
This guy's course changed my life
https://job-interview-answers.com/job-interview-tips/about-b...
even though I am an extreme introvert who has to spend a lot of downtime to emerge from my lair I can manage great feats of empathy, charm and seduction. I went from being afraid of job interviews to finding them fun.
To be fair I got a PhD in a quantitative field so I find the "leetcode grind" to be easy and intrinsitcally gratifying. Today, even if I am less good at it, I find it more challenging and interesting to grind at art, photography, printing, unusual imaging technology, 3-d graphics and ensorcelling people,.
It is what it is, in practice, on the job your value comes from knowing a system, which takes time, but interviews don't check for that. I don't respond well to artificial pressure like that, but interviews have time pressure, the only way for me to break through that is to practice these puzzles.
I had been making my way through these:
https://www.teamblind.com/post/New-Year-Gift---Curated-List-...
Paused currently though, as I got a job elsewhere, that didn't have the leet code barrier to entry. Respectfully, they told me up front what they wanted to talk about it, so the questions were not a surprise.
If you get an async automatic test you can always google your solution easily. You need to be proficient in understanding the problem and implementing the solution from description or rewriting in it different programming language. I had few live coding sessions with "leetcode like" task. Most of they time you'll ask you to do some basic thing, where the default complexity is around O(N²) and the idea is to come up with faster solution.
Once in a while I like to experiment with different programming language and leetcode is one of the best way to do that. People advice on building real world apps when learning new stack, but I find that really dull, as you need to understand a lot more machinery in the stack before you can actually have something running. Leetcodes are easy to run and create. At the same time they force you to lookup basic constructs, learn how to work with strings, arrays, etc.
In interview loops I've done recently, I realized I was most nervous around Systems/Scaling and Graph (e.g. Dijkstra's) questions, so took some time to work on those.
You don't have to do like the author of that piece and work for hundreds of hours. If trees are proving a problem or are an area you know you aren't so up on, then use studying to fill in the gap. Anything is better than nothing, and studying for, let's say, 10 hours might make you just more comfortable with the topic to turn the interview in a more positive direction.
(Disclaimer: I have a academic background from years ago, just haven't used most of these things in years, since like everyone here has admitted, it isn't regularly a part of day-to-day life)
Most everyone seems to agree that leetcode has poor corollation with the ability to perform at most companies, while also agreeing that leetcode is very common practice in interviewing.
You may be able to find a company where you can pass through the interview stages with poor leetcode ability, but many companies that YOU WOULD ACTUALLY WANT TO WORK AT currently include a leetcode evaluation as part of their interview process, despite the fact that that very company does not require those skills for every day work.
And ignore the, "well you wouldn't want to work for a company that tests this way" comments. There is NOT some magical super-strong correlation between the interview experience and the actually-working-there experience that applies to all companies. Some have this correlation, and some don't. This is why you ask the hiring manager for 1:1 interviews with front line engineers and then you grill THEM about aspects of work that matter to you.
Companies that did leetcode stuff are just like a joke. Can you reuse this array to store the information you're using while you're going through this list of items? Great! Wow, smart candidate!
Okay, try interviewing for something like Insomniac Games where they want you to write an effective memory manager in C as a screening question! Or interview for Sony where you got 3 algorithms problems, 3 game logic vector math type problems, and 3 obscure memory uses of C problems in 2 hours and you gotta do it all on paper. These are out of date too. It's probably even more involved now for game companies.
Leetcode is totally fine and you should get comfortable using the techniques you learned in your core competency classes in school to solve novel problems.
You need some luck, and learn to be good at marketing yourself. More than that though, you need to work your arse off. Work-life balance is something you always should be mindful of, but you'll have to work harder and smarter without the leetcode,etc. and a degree, than someone with those things did, to get to the same spot.
I think the biggest benefit of leetcode and things like it is that they help you prepare for coding interviews.
I've been working as a software engineer for twenty+ years, am making low six figures, and do not have a bachelors degree (I am in the slow process of going back for it). I also don't have a leetcode account. Someone with half my experience, but with a degree from a prodigious school, could be making $300-$400k. I also am more risk averse due to family situation (so no moving to SV/Austin/NYC to take my shot with a startup, yet).
But most of the Leetcode problems cover basic algorithms like BFS/DFS, binary search, dynamic programming, and other Algorithms-class material, no? As long as you're given adequate time to think about and solve the problems, I don't really understand the negativity in the comments towards companies requiring coders to... actually code.
(By the way, if all of the monetization/engagement/social-media aspects of Leetcode turn you off as much as they do me, I recommend practicing on https://cses.fi/ instead---the problems are higher-quality and better-taxonomized too).
I much prefer the book Elements of Programming Interviews. It has an accompanying git repo with tests that you can debug in if you really need to. The solutions usually discuss a couple possible approaches. Following their study guide, I learned about Java data structures that I don't normally use and saw a good variety of problems. Ended up getting a job I was shooting for.
Ultimately though, it's not so different from leet code, although I think it is a more effective use of time. I think it is a good idea to do some practice just so you are ready for this type of question.
I'm a software consultant with a consultancy that would qualify as both high paying and remote in the UK and involved with interviewing, personally I value having a "homework" assignment so that candidates can complete a simple assignment and then build on that in a pairing session.
I don't think much of leetcode assignments as they tend to focus on the algorithm and getting solution through rather than writing good quality code that keeps it simple and is maintainable. That is much much more important than repeating an algorithm.
Though I also would say that in the current climate, the pressure on finding good candidates is so that a lot of places are considering dropping take-home tests in fear of putting off quality candidates, so I think you may well be in a good position at the moment to avoid leetcode and hackerrank...
If you want high paying job, you need some way to demonstrate that you are smart enough and distinguish yourself from others. Leetcode is one way to do it.
Other way is to demonstrate your work contribution. But what if you don’t have any experience?
Show that your are from top tech institute and got good marks.
But what if you are not from top institute? And you don’t have any great projects to distinguish yourself from others?
The answer is leetcode. Regardless of your college/background/ company background, with leetcode, you can demonstrate that you have aptitude for learning, self motivation, grit and perseverance.
That is why leetcode is so much used. If you are senior engineer (>10yrs), then you can turn down leetcode and show case your experience instead. For all else, leetcode is most reliable way to do it
FAANGs aren't the only things out there. I'm not sure why you specified that kind of company specifically, but you may want to consider that there are literally hundreds if not thousands of local or country-wide companies that can give you what you want.
My company probably isn't even the biggest company on the street and employes less than 50 people, and yet I get good pay, work 100% from home, and get 28 days paid leave. I work from 08:00 to 16:00 with 1 hour lunch and I haven't worked a minute of overtime in 5 years. FAANG isn't the be-all-and-end-all.
I haven't seen one here in a long time. Maybe the algorithm doesn't particularly like poll posts?
So long as SW devs realize simple things such as maps are faster for lookups (rather than looping over a list) and use them when needed, that's about all they need to know to get the job done.
I would also say that everyone ought to be able to come up with the brute force (slow) solution to the algorithm problems (at the very least) and then offer another solution that's still correct and somewhat faster. If you can do that, then most places will hire you (even if you can't think of the ideal solution in 20 minutes).
Can you do your work remote?
I just did a round of interviews with offers over 100kEUR in GameDev working remotely. All British or EU companies. No leetcode questions, some did take home tests, some online questionnaires and most of them a normal technical interview talking about code.
I had a few companies reject me for the asking price, but that's fine, at least I knew I was pushing their limits. If we don't do that we won't get rid of the hand waiving excuse of salaries are lower in the EU (or in gamedev for that matter)
If this is ever cause for filtering, that's fine. I'm not interested in the kind of environment that privileges memorization over thinking.
The details matter; but the details that matter are almost never (it not literally never) about the syntax of e.g. for loops in bash.
I have a feeling that some content marketeers have been posting questions like this here and also on https://www.reddit.com/r/cscareerquestions/ just to give the impression that leetcode is some sort of industry standard, when in reality it is almost never used.
Also pro tip: absolutely do a fake interview before with a friend before each step. You'll fail miserably and stress af, but it will give you point to reflect on and prepare for real one not to panic.
At one point in my career, I did the grind and it helped me land at FAANG.
Now I can land good jobs without doing the grind, but that's because I'm at a level where I could easily solve most problems without prep. (The key is to make sure you're being challenged and growing in your current role)
Further I can see myself doing it again in the future to hone my skills again as interviews continue to evolve.
I suspect leetcode and whiteboard interviews are a way for Asians in the US to select for other Asians. Also more powerful HR departments leads to more "objective" and metrics-based hiring practices.
Look for anyone who had 50 million plus in funding. Look at every YCombinator graduate. Look at crunchbase. There are lots of remote job boards.
So at least to me "this kind of things" would be a superset of "find a sum of polynomials" and checking knowledge of a subset is a little bit easier.
Yes, probably everything in this world can be represented as a balanced binary search tree, who knows.
In my experience interviewing, doing leetcode problems gives you a distinct advantage over people who haven't, like me. I did much better on problems that I have encountered in the books (even if I didn't recall the solution exactly) than on completely new types of problems, so, by induction, if you work through as many problems as possible you'll perform better at the coding interview (the leetcode-style ones).
That's the trick to performing well in these interviews. It's unlikely you'll come up with a double-pointer list traversal method in 30 minutes on your own (maybe with a lot of help from the interviewer), because that's a clever way of solving a problem and clever solutions are non-obvious by definition. It takes time to invent an entirely new solution in your mind, but if you know about it and other clever solutions like it, you have a bigger bag of solutions to match to the problem at hand, which is a distinct advantage when interviewing.
You could argue that you should be able to come up with a solution to these problems in less than 30 minutes all on your own, but when the interviewers are calibrated on the other people who have interviewed before you, the majority of which trained on leetcode problems, were exposed to that problem category and it took them much less time to solve it, then you look like an outlier, even if there's nothing wrong with your problem solving abilities. This translates to the interviewer expecting to work through 2 problems in the 30-40 minutes, because that's what the majority of his other leetcode-trained candidates were able to do, so you performed worse than your peers, even if you found the solution in ~30 minutes.
In my opinion, there's value in knowing about these algorithms, in general, to be able to recognize situations when they might apply, but there's little value in being able to know them all so well that we should be able to code the algorithms on a whiteboard under time pressure.
In any case if you want to land such a job then there's one thing which helps tremendously, namely: immediate availability at the start of the quarter.
Q3 is an exception, because that's when everyone is on vacation.
That disappears with practice. Just start slow, do a couple of easy leetcode questions a day until you are comfortable then move onto medium. You'll get there don't sweat it.
If you know your field, then 'leetcode' is a non-issue, it's like asking a barista to make you a coffee.
The only people struggling and complaining are the ones that won't make the cut, and that tells you all you need to know.
It's a quick and easy way to separate companies who know what they're doing from those that don't.
Edit: I live in a country with average wage of ~25k$. All numbers are pre-tax.
It really depends on the company and country. Leetcode style is more prevalent in some countries then in other
There are two options of leet code: some compound algorithm that you would never use in production coded live or homework conducted over 4-6 hours on your own time. Given the extreme subjectivity of software hiring I am not inclined to do either. The homework approach is far more practical and realistic but is a complete waste of time. Never do hiring homework without grading criteria supplied in advance.
There are far more effective ways of assessing competence with simple cognitive exercises unless you are in an area of software that doesn’t primarily favor competence, such as preferences towards tools.
I'm in Portugal. 100k is a mirage.
He said, the actual interview questions were easy after that.
I’ve seen people on here say curious things like “I’ve been a software engineer for N years, but I wasn’t able to get past advent of code day 3”.
At a certain point you have to wonder if, no matter what they tell you, these people are just bad at programming.
That’s not to say they can’t improve, of course, nor is it saying leetcode is the best way to improve. I’ve never done leetcode myself, I can’t speak for it.
if you screw leetcode up, most likely the interviewer will dismiss you as not being serious
do you need to grind leetcode? or without grinding is it possible to land a job?
both depends heavily on the lineup of the interviewers on that day. everyone has a different interview style and strategy.
if you expect to get good/better pay, then grinding leetcode is actually ok, the roi is worth it
the reason you should LC is precisely most dislike it.
that is why it is worthwhile
Search more, you will find 10-50 people companies paying way above the usual faang-style sweatshops.
Last couple of years crypto-hft was the place to be, but that's changing. Anyway, they are there. Do not conform or you become useless.
A developer who's excellent at leetcode really shines; it's a strong positive signal that correlates more often than not with someone who writes clean, easy-to-read and fast code. Furthermore, huge bonus points if they find learning algorithms fun because learning and enjoying code is, obviously, a big part of our work.
It also saddens me that so many developers (especially late in their careers) are stubborn about not learning these techniques ("I didn't get to be where I am now mastering recursion therefore it's stupid") which too often comes from an established position of privilege... This is very apparent when you compare to developers fresh out of university with little commercial experience; for them being good at algorithms is one of the few things - other than enthusiasm and side-projects - at their disposal. For that reason, leetcode is also fair you could argue; everyone gets the same treatment regardless of level.
However... a great many outstanding developers get flustered and tie themselves up in knots under interview pressure. If I went purely by "can this applicant perfectly solve this problem in 50 minutes" then I would be ruling out lots of really talented people. It also saddens me that early-career developers are being trained to just leetcode grind when what makes for a good hire (at any level) is someone who's endlessly curious and humble as opposed to being an algorithm beast.
It's tempting to think the solution should be a practical "make this app" test, but most highly-experienced developers can kick out excellent apps from muscle memory which tells me little about their ability to think on their feet, collaborate or learn new things. Furthermore if it's a take-home exercise, it significantly privileges those who have the freedoms to spend lots of time on it: e.g this could be a struggle for single parent families.
I recommend you watch Dan Abramov's fake interview on YouTube along with the two Ben Awad did to get some perspective on all this.
What we're currently experimenting with at Tipalti is pairing on a mix of some practical challenges and some algorithm challenges. The expectation is set that we don't care about completing, but more about how to solve the problem together. Everyone - including the hiring panel - are allowed to get confused and stuck and in a good interview session we'd all solve it together. The two sessions act as complementary bookend that gives a good feel for the candidate's range and approach.
Of course, it's not perfect by any stretch but like most things with engineering we keep an open mind try something new, get feedback then iterate. Always learning.
Then came the second interview. They asked me to, in real time, using a shared coding system, construct a javascript program that would, given any input string, print out a list of all the possible letter permutations. (eg. "abc" would show "abc", "acb", "bac", "bca", "cab", and "cba") The challenge didn't scare me, and I had an idea of what I wanted to do algorithmically. I certainly knew it would be a recursive sequence of calls moving along the string until it was done. Using the "abc" example, you'd rotate "a", "b", "c" into the first spot, then, with each of those rotations, you'd do the same on the next digit, and repeat until getting to the last character. When you get to the last character, on each rotation, you'd have a result, which you'd store. You'd then unwind back up the chain storing the results as you went along. So it involved a recursive sequence that was rotating letters in each spot and then on the unwind aggregating the results.
I sat there, with the interviewer watching my every keystroke as I put together a first pass that didn't work. I added some diagnostic output and worked through a few things. For some reason, the interviewer, apparently thinking I was "close", jumped in with a couple of things to change, which I did, but there were still problems. After about 45 minutes, he called the interview over. Shortly afterward, I got an email from the company thanking me for taking the time, but declining any further interest.
That evening, I sat down to write the exact program they had asked for. It took me the better part of two hours, but I got it working, and working well. Having no prior experience with this problem, I wouldn't have solved it in the time they were expecting. I was going to email my solution to the company, but I figured they'd just dismiss it and assume I had cheated, or, perhaps not be interested anyway since it took me so long.
To this day, I think the company misjudged me. I'm not one to produce rapid-fire, bug-free, algorithmically magical solutions in a first pass on the spot. But I do pride myself on the quality of what I write and how well I'm able to address and understand the very problems I was being asked about in a variety of contexts.
In this scenario, I felt that "leetcode" skills and speed were given too much weight over other factors including the thought process and eventual solution. I don't disagree with the use of some "leetcode" competency tests, but I think a company should be careful not to eliminate a candidate who doesn't sling code fast enough in an interview, particularly if, through probing questions, you can establish that they have a sincere and thorough understanding of the problems at play and how to solve them with code.
My two cents.
> Do you think grinding leetcode is an absolute necessity to land a good job at a company hiring worldwide remotely?
> ... western europe ... salaries around 80-100k$ ...
You've very clearly defined the problem, and I'd think the answer should be obviously "no". Are there any software engineers making that salary in that location who haven't ground leetcode (grinded?). I guess that term isn't very well defined, but let's be super generous and say it's spending more than 8 total hours practicing algorithms for the purpose of passing interviews.
So an equivalent question is "are there zero software engineers with a $100k salary in western europe who spent 0-8 hours practicing algorithms for their interviews?". I'm guessing if you asked that question you'd have a lot less "yes" on the poll.
Not exactly the best question though. It sounds like you're not categorically blocked from grinding leetcode. You have performance anxiety. Not diagnosing you, just rephrasing:
> it's not really about whether or not I can solve a hard leetcode problem, it's about if I want to do it live in front of a recruiter, it make me anxious just to think about that and I don't want to inflict that on myself
So is dealing with performance anxiety + the hours spent on leetcode worth the job? Is there another path to the job that's less work and/or higher probability? These are optimization questions. You won't get at their answers with asking about necessities.
My perspective is there are roughly three levels of algorithm skill that come up in interviews. First is the kind of stuff you really actually do on the job. A decent professional with a few years of experience should be fine with zero prep. FizzBuzz level, really. Level 2 is beyond what most people do in their jobs. Count the number of components in a graph. Really good engineers or people who practice will be able to do this. Level 3 is the stuff that just rarely comes up at all. Leetcode hard. Can't think of an example. Almost everyone needs dedicated work to get to this level.
I think level 2 and level 3 come up in similar proportion in interviews, and jobs that ask level 3 questions might pay a little better on average but not a ton and there's high variance. And, critically, getting to level 3 requires 10x the effort of getting to level 2.
With that framing, I think there is outsized benefit to getting to level 2. If anything, make sure your coverage of all possible problems at level 2 is great rather than go into level 3. Go for level 3 if you know you need to for a certain job, or algorithms is a strength you want to lean into. You should probably go for level 2.
Second piece of advice is you should split dealing with the anxiety and learning the algorithms. Think of them as separate problems, practice them separately. They can cloud each other. I've seen it so many times. The pain of performance anxiety will convince you algorithms are dumb and pointless and you shouldn't study since it has zero benefit. But it is benefitting you, it's getting you a job.
Anyway, you should probably just think of it as "practicing coding in front of people" instead of "anxiety". Not saying you need to see a therapist. You would probably do very well to try answering questions that are very easy for you, questions you already know the answer to, in front of someone. Maybe a record a video, maybe live stream it. Now you've separated the algo skill from the performance. Practice talking and coding alone. Separately improve the algo skill and combine them at the end.
Hope this helps.
First of all, $80-100k isn't considered a high pay in the Silicon Valley, but rather an intern salary. So $100k for a remote job is a reasonable ask, even at an early stage startup. In my experience, most of the small startups don't conduct interviews with an algorithm gauntlet like FAANG (or is it MANGA?) companies do; there could be some of that stuff, but not exclusively, and you're of course allowed to communicate that it's not your strong suite. The market to hire good developers is so tough right now, that smart companies are willing to cut you some slack on the "formal" knowledge part if you're able to prove you can be an asset in the "real world" for them.
In my experience, the biggest pain points in hiring Europeans are the time difference, bad English skills, and cultural differences. This varies a lot by company, so take it with a grain of salt, but here's a breakdown of these three things:
1. The time difference is what it is, so you might be required to work in the evenings with some companies. If you live in the Western Europe and work for an East Coast company, the time difference shouldn't be that big of a deal, as you can have a comfortable overlap in your afternoon and their morning. Eastern Europe to West Coast, on the other hand, is a 10h difference, so you might expect to work the late shift.
2. Language skills can be practiced. In your case, I'd say your written English is perfectly sufficient, but in case you're shaky on the spoken level, it might be wise to sharpen your skills there. You don't have to be on a native level, not even close (and Americans in general are used to immigrants and different accents and whatnot), but you don't want it to be a clear weakness either. As long as you're able to understand others and communicate your thoughts in a clear manner, you're good.
3. What I mean by cultural differences is that many European cultures lack the sort of self-promotional and positive aura that comes naturally to most Americans. If you ever visited the US, you know what I'm talking about. US employers aren't necessarily accustomed to reading people who aren't good at this, so it might throw them off. Being able to relax and smile and get past the usual small talk takes you a long way.
It might be easier to get into a company where there are other European remote employees already, as "offshoring" for the first time can be a scary thing for a small startup, especially if the candidate doesn't tick off all boxes.
I need 200k minimum these days and I would like to end up closer to 400k. Why? Houses in the area I want to live cost money, and these salaries may not be around forever. So extra money is needed for a cushion and for investments.
The dollar is weakening, and real assets/income-producing assets are only becoming more expensive. 100k is the new blue collar, sadly.