Lurker News
Just like https://news.ycombinator.com/item?id=26468248, I give up.

I've been at it intensively for a couple months and my mind simply refuses to cooperate. If anything, after having done 400+ problems I seem to be worse at them than when I started.
Since your time is more valuable than mine, let me summarize:
7+ YoE, MSc. in some science (like it matters)
Last 4 years been mostly ETL with Spark and some backend thrown into the mix with a "senior" title for devops and mentoring noobs.
I used to think this job was a creative one, since writing frameworks and libraries for further use, documenting code and extreme programming made me think that I was building something new and useful.
In fact, due to having extreme ADHD the only thing that kept me distracted during all my overtime was the ability to pursue fun and challenging things. MPP and all the cool stuff you can do with modern tools is fun, interesting and challenging.
Leetcode isn't about fun and challenging things, it's about thinking in one particular way, spitting out solutions using the same exact data structures and jumping through hoops on command without philosophizing or creating anything that can be reused/extended.
This is also what Software Engineering has become: you memorize, regurgitate and participate in agile the masquerade. Creativity is shunned. Tried architectures/patterns are what is expected.
I wish I had practiced law for the past 7ish years instead, because at least all of my skills would still be relevant.

Comments (456) 108 threads

EMM_38612 replies#
I'm a 20+ year Senior Software Architect, Team Lead, Senior Developer and a PM (all at the same time at the moment!). I've done everything from C++ to 20 years of .Net to now TypeScript and Angular 13 with .Net Core REST APIs against an Oracle SQL database.

I am self-taught and I can't do these leetcode problems if my life depended on it.
I still deliver high quality software on time, and on budget, and have a solid grasp on my career.
I wouldn't worry about this too much. It depends on what you are going for.
Sure, if you want to pass a FAANG interview where you are going to get these types of questions, go for it. To solve day to day business problems, you rarely need this stuff. You just need to learn how to write quality, performant, correct code that results in solutions.
The best way to do this is develop experience in the industry over the years.
My 2 cents.

polyterative#
Similar experience. 4/5 years in mobile/web, android and angular in Italy. No degree but still now on a solid job. I fully agree.
nojito3 replies#
>I am self-taught and I can't do these leetcode problems if my life depended on it.

>I still deliver high quality software on time, and on budget, and have a solid grasp on my career.
There's simply no way of proving that to recruiters without Leetcode.

foxfluff#
There's no way of proving that to recruiters with Leetcode.
tharne#
> There's simply no way of proving that to recruiters without Leetcode.

If a recruiter can't assess engineers without something like Leetcode, they need to find a another job. Assessing talent is the job of a recruiter, and if the only way they can do that is with Leetcode, that's just pathetic.

scaryclam#
Except, recruiters were able to do just that for a really long time before leetcode came along. If a recruiter today can't assess a candidate without toy questions, they should probably reconsider doing technical recruitement.
GuB-423 replies#
What do you mean by "can't do these leetcode problems if my life depended on it".

Because there is a difference between writing FizzBuzz and solving one of those dynamic programming problems that are so common in competitive programming. For the former, I am surprised you can even work without being able to to this, for the latter, you pretty much need special training that is not very useful in most professional settings.
I never took a leetcode style interview so I don't know what is generally expected. If you are expected to do hard problems, it doesn't test much besides your leetcode skills. But easy problems look like a pretty good filter, assuming the stress of the interview isn't blocking you, which is another problem.

RegBarclay#
FizzBuzz != leetcode. You are correct - easy problems are a good filter. After starting with one company I started sitting in on phone screens and candidate interviews and I was shocked at what a lot of applicants didn't know. Actually helped me with my imposter syndrome. I walked away from several interviews feeling like maybe I did know a thing or two!
cloverich2 replies#
IME the challenge is that all leet code problems seem easy once you know the answer, in particular because the code itself is often very simple. And so many of the interviewers claiming a candidate cannot do "easy" problems are off-base. This usually stems from not knowing the history of the underlying data structure or algorithm. Interviewers take for granted the things they know, especially once they've asked similar questions a few times.

IMHO I believe the right approach is to either ask from a standard bucket of questions that require preparation and advertise which ones to candidates, or not ask them at all. Asking "only a few really easy ones" is becoming a red flag to me.

GuB-42#
It reminds me of the "Jewish problems". Math problems that look simple, with a simple solution, but are actually really hard. It was used in the Soviet Union to deny access to universities for "undesirable" people like Jews. They were given these "simple" tests and their failure was used to justify their rejection.
still_grokking#
> a standard bucket of questions that require preparation and advertise which ones to candidates

And what are you testing than? Whether someone can memorize things?
Even though I'm not good at memorizing things every second monkey out there is.
Actually, people relying mostly on memorization for "problem solving" aren't very intelligent in my experience.
Especially in software development you don't want people who can mostly only reproduce things once learned by heart!
No two problem instances are exactly the same. It's all about the context! What is the recommended text-book solution in one case could be the most stupid thing you could probably do in another superficially "similar" case. You want people being able to recognize the difference and act accordingly.
(Of course you need some amount of drones in every company. Especially when your company is big. Not everything needs highly skilled and highly intelligent employees. Also there is only a given amount of adequate people available at all. If you're big you can't be too picky if you want to hire enough staff in a reasonable time frame. But those are problems of really large organizations).

shahbaby#
I agree that leetcode easies are good filters.

But what if too many people pass those filters?
Then we move onto mediums.
But what if too many people solve those?
And that is how we reached the current state of interviews.

babarock2 replies#
I'm a 15 year(ish) engineer-turned-manager who has spent a good chunk of time doing recruiting.

* I confirm that day to day business problems rarely are the sort of problems you find on Leetcode.
* I might ask similar questions in interview. I don't expect the candidate to solve them. As a matter of facts, I don't care if the candidate actually solves them or not. I am observing how the candidate behaves in front of a difficult problem. Will they freeze? Will they jump head in the code? Can they articulate their thoughts and think analytically about it? Can they think on the spot if I challenge their approach? Are they comfortable saying "I don't know"? This sort of things.
In my book, being a "good engineer" is much more about communication, collaboration, familiarity with git/sourcecontrol, clarity of commit messages, pertinent emails, being reliable, being resourceful, etc.
Good grasp of algo is a big plus, of course, but it's not something that all the best engineers excel at.

hawk_2 replies#
> Will they freeze?

So what if they freeze during those 45 minutes? How representative is that scenario for what most devs do?

miscaccount1 reply#
Most people freeze on interviews and its normal entirely.

Also, most problems are not solved in the 45 minutes and in day to day coding , we generally have a minimum of day to think on the problem and solve it without people looking over our shoulder, google or ask someone :)

Continue this thread — 1 reply

babarock#
What do you mean?

If a candidate freezes for 45 minutes in a 45 minute interview, they won't get the job.
... Right?

Fattestmoron1 reply#
So if I asked you a complex architectural question, or an algorithmic question and you froze, would it mean that you are an incompetent manager?

Clearly thinking on your feet in front of people is what it means to be good at ones profession.

babarock1 reply#
My role isn't to assess if you're competent or not. My role is to assess if I want you on my team or not. There's a difference.

And yes, if I ask you a technical question and you freeze, I don't want you on my team. It doesn't mean you're a bad engineer. It means you're not a good fit.

Continue this thread — 1 reply

RegBarclay1 reply#
I'm also self taught with over 20 YOE and pretty lost with leetcode problems. But I get the job done and have a really good eye for user and business domain concerns. My last two jobs haven't required any kind of test. I actually had to do a couple of short narrative essays for one to prove I could write - which was a hoot because I majored in English.

The only job I've ever had to do any kind of test for wasn't leetcode - just a practical demonstation that I could write a basic CRUD app. Was actually a pretty good test to weed out people who were just completely useless.
I'm also finding that experience matters. It's just tough to get that across up front.

bmj#
The only job I've ever had to do any kind of test for wasn't leetcode - just a practical demonstration that I could write a basic CRUD app. Was actually a pretty good test to weed out people who were just completely useless.

I think this is a totally reasonable way to weed out applicants, particularly if they allow you to do it during the interview time. I've been through several interviews (though, to be fair, they were well over 15 years ago, since that's how long I've been with my current employer) that used a similar exercise. One interviewer just sat me down at his workstation, and told me to build a quick crud with their tech stack (which, of course, I knew going in). Nothing was off-limits (web searches, etc).

kkjjkgjjgg4 replies#
I must admit I don't understand how one can not be able to solve them and be able to solve other programming problems at the same time.

I believe you and others when they claim they are good developers. I just want to point out that for many people, it can be impossible to understand how your minds work.
Maybe it is a bit like dyscalculia, where some people can not comprehend "amounts". They can not calculate well, but they can actually be good in other fields of mathematics.
Edit: I never did a lot of leetcode, but for reference, here is a problem they categorize as "hard": https://leetcode.com/problems/median-of-two-sorted-arrays/
It requires calculating the median of an array. Is that really a kind of thing people who are otherwise good developers can not do? I must admit it really boggles my mind and makes me a bit hopeless and desperate. It seems all attempts to explain stuff to people are futile anyway, at least for some things.

jugg1es2 replies#
Typical day-to-day programming never requires you to find the median of two-sorted arrays, so a self-taught programmer generally has never thought about how you would tackle a problem like that, especially given the complexity requirement (O(log (m+n))) stated in that problem. If your brain immediately knows what to do when you read that problem, then you probably have a CS degree. If you have to spend 5 min thinking about the complexity notation before you even start the problem, then you probably don't have a CS degree.
Cd00d#
And if you see that and go "do they actually say the words 'big oh' when they speak that outloud..." you're interviewing as successfully as I do!

I really appreciate your greater point. I've been given all sorts of CS problems in interviews that I don't have any background in understanding the context enough to know what to do. I changed careers from experimental physics, so my software work is essentially self taught. That doesn't mean I'm totally useless in my job or not an asset to my team or can't deliver products that generate massive revenue. But, those things are how interviewers make me feel.

kkjjkgjjgg4 replies#
But wouldn't it be exactly the hallmark of a self-taught programmer to be able to figure things out on their own? In general I don't think a programmer can expect the kind of job where they only do standard things all the time?

Merging and comparing arrays as in that task also seems like something that might actually come up in a job.
However, I take the point of the other comment that the real issue here is doing it with certain speed requirements. That does make it harder, indeed, but still doable.

Continue this thread — 4 replies

claudiulodro3 replies#
I think the tricky part with that specific problem is that it asks you to do it in O(log(m+n)) complexity, so you can't even iterate through the two arrays to see all of the values -- you need to do some binary-search-like thing across both of the arrays. In O(m+n) complexity, yeah you could combine the arrays and then find the median of the combined array, which is much simpler. This is actually a great example of why those questions are so hard!

Continue this thread — 3 replies

Continue this thread — 2 more replies

Continue this thread — 6 more replies

evercast4 replies#
I don't see this mentioned by other commenters so let me provide another perspective. Namely, I think OP is doing it wrong.

OP claims to have done 400+ LC problems over a couple of months. Let me say it out loud here: this is simply crazy. It strikes me as an attempt to not learn how to tackle these challenges, but to actually brute-force through them. To anyone preparing for an interview: don't do this! Grab a book like Elements of Programming Interviews (EPI), maybe follow some online courses on programming puzzle patterns, and then start grinding LC. Maybe interleave grinding with learning? Your end goal should be to develop deep understanding of what you are doing, not memorise the solutions.
Also, while going through LeetCode, it is very important to realise that the problem classification there is a bit wild at times. Don't stress that you cannot solve a medium sometimes as they are mislabeled. I did mediums that could be hards, hards that could be mediums, and hards that were just impossibly hard. Typically a very hard problem is not something you should expect in an interview setting as most interviers* don't expect you to implement KMP on the spot. Doesn't hurt to know it and impress the interviewer with knowledge, but if you think memorising KMP is the way, you're mistaken.
* - there is still luck involved and you can have a crazy interviewer. It can happen, so just accept it and move on. Don't treat it as a personal defeat.
Source: I grinded and I had offers from most of FAANG letters.

whiskyant3 replies#
Yeah, I practiced leetcode by spending about an hour a day for 2 months, but I had only done around 60 LC total (25 medium, 35 easy).

I didn't feel a need to do much more as they had very similar patterns. I did attempt the ones I had solved more than once though, but it was to really drill in the principles behind the problem rather than to try and "memorize" them.
Prior to my prep, I had almost 0 algorithm experience. I got an offer from every FAANG I applied for.

ikrenji#
this is the way. although your innate ability to learn and apply algorithms is probably above average :)
zaphirplane1 reply#
Including google and Facebook?
whiskyant#
Yes, I accepted the FB offer.
Fattestmoron1 reply#
Going to call bullshit on that, since in recent interviews most people have been getting hard problems and not "trapped rainwater" prefix sum hard problems, but the kind where the optimal solution has nearly 100 lines of code involving multiple steps (topological sort combined with dp and other garbage at one go).

Easy problems literally mean jack and I don't even think 50 medium problems could span all of the possible topics.
Sounds like you got in when it was easier.

whiskyant1 reply#
It was 2019, so things may have changed but I doubt it. Maybe I was lucky? Or maybe you were unlucky. I also applied as a Senior SWE (mobile) if that makes any difference.

Out of the 12 companies I applied for I was given 2 hards (both were private startups), the rest were all mediums.
>nearly 100 lines of code involving multiple steps
I was never given anything even close to involving a 100 line solution. Are you sure this was even the correct/optimal solution? Either that or you're very unlucky. Which companies were asking such questions?
>50 medium problems could span all of the possible topics.
I was given problems that I hadn't encountered before, but I was able to solve them by deduction/critical thinking and applying the appropriate algorithms/patterns. Often the easy solution and the optimal solution weren't even that different, and just involved using a hashtable.
Grinding through hundreds of LC to try and memorize/familiarize yourself with the solutions really isn't the right method. Have you read Cracking the Coding Interview? Gayle McDowell has some videos on youtube in which she explains her process.

Continue this thread — 1 reply

vzidex#
Adding to the comment about difficulty, the number and ratio of likes : dislikes on a problem is a good measure of difficulty. A Medium with 5K likes and 300 dislikes is probably quite a good (well-written, constrained, fair) problem. A Medium with 300 likes and 800 dislikes I'd steer clear of.
vsareto1 reply#
This still seems off. If you wanted a deep understanding, you'd go for academic books about algorithms and data structures, then go try the leetcode problems without the coaching advice. Otherwise we're just coaching towards the particular interview format, which is only proving you can learn to game that particular format. Coaching for an interview format doesn't solve real world problems which is why people are annoyed about these interviews.
cloverich#
If its helpful, I did read one of those academic books (Segewick) thoroughly. But personally I found the practice questions laborious. You have to do the setup, you don't get the feedback. You don't know if its going to be easy or hard. And it takes some effort to see similar solutions. Conversely, once I paired with it with leetcode, I could e.g. finish reading about topological sort and then go look up common problems. I found alternative solutions, comparisons, got instant feedback, etc. To me, the combination of a quality DS&A book with leetcode for the raw (targeted) practice is a really great combination.
shetill#
I'm more interested in how do you even get noticed by FAANG in the first place. I never get contacted by agents about them and applying just gets me ghosted every time?
jnguyen641 reply#
I think at 7 YOE, you’re at a very good spot where you have the flexibility of being picky with what types of interviews you can choose to interact with. Especially in this current market where it’s one of the rare times that candidates have some semblance of power in the hiring process.

You should check out https://github.com/poteto/hiring-without-whiteboards, which is a list of companies that don’t use LeetCode in their interview process.
An issue I often ran into when using the repo myself was I’d find a company that sounded awesome, and then find that they didn’t have any open positions. I created nowhiteboard.org to act as a way to pull all the jobs from the companies listed on that repo (and other companies that I’ve manually found that don’t use LeetCode).
I think there’s a matter of education and shining a light on the companies that don’t use LeetCode as I feel that the prevailing notion in online communities is that companies only use LeetCode to interview. I’m obviously biased since I’m obsessively researching this, but I’ve read a good few comments online of engineers who’ve stated that they haven’t had to use LeetCode for any of their interviews over their career, and that all of those companies aren’t listed on the repo above.
If companies had a good way to source candidates that are hesitant to jump jobs specifically because of LeetCode, I could see our industry starting to make some semblance of progress towards making LeetCode less prevalent in interviews.
Anyways, rant over, hope your job searching goes well!

TurboHaskal4 replies#
YMMV I guess. Based on experience, I'll take leetcode or a whiteboard interview over wasting a weekend doing another one of those take away projects.

Any mention of these gets a hard NO early on during the interview process.

jnguyen64#
Surprisingly, I don’t think I completely disagree with your point of view.

I think if I had the power, I would allow candidates to have multiple ways to interview at a company. Some companies do this already where the tech assessment portion can be administered as a take-home, LeetCode challenge, or re-factoring some sort of code.
There are downsides to LeetCode, and there are downsides to take-home projects. My intention with the website is to offer extra choices to developers when choosing to interview at companies.
And I think as a candidate (and companies as well,) LeetCode is the more scalable of the interviews since there’s defined criteria to study and to test on, so I do see the merits of your POV!
I’m not necessarily about this full-on hatred for LeetCode, BUT I also did buy fuckLeetCode.com just in case

Continue this thread — 3 more replies

Dirak5 replies#
I find competitive programming to be creative and expressive. For most problems, there actually can be multiple ways to solve the same problem, with each approach having both hard (perf, memory) and soft (simplicity) trade offs. Leetcode problems remind me a lot of Celeste levels or rock climbing, where even though there might be an optimal solution, everyone solves the problem in their own unique way. No two solutions look the same. Even if everyone is solving the problem with the exact same algorithm, every submission has its own code style, and that's really cool.

I also find that Leetcode translates really well into the code I write in my freetime (a roguelike. Real work is boring fullstack crud). I personally hate reaching for libraries in my side projects, so being able to have these data structures and algos at my fingertips and being able to implement say A* or a weighted rng function or something else on the fly has been super handy. I honestly don't think I would be able to implement a vertex fragment shader w/ lighting without the skills I've picked up from Leetcode grind.

Continue this thread — 5 replies

Load more comments