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

Earlier comments
exikyut#
There's an interesting sentiment shared amongst some of the comments both here and in the linked thread that leetcode is somehow a fundamental measure of social worth or quality.

Like, if you can complete leetcode, you're so in the in-group, if something happened to Earth tomorrow and humanity suddenly had to migrate to space, you'd definitely be on the shortlist of people $company would select to join the new colony, because you've been trialed by fire, the results have been locked in, and your value and worth will never be questioned again.
At least that's my take on the perspective I'm seeing.
Now, written out like that it almost seems like I'm belittling the view, but I'm caricaturizing it to call out an important distinction:
Ability to complete leetcode puzzles to acquire a job has absolutely no bearing on your *social inclusion* as a *person*, precisely because the initiative to mandate these tasks is coming from HR departments.
And what right does HR have to dictate whether you should feel socially included or not? For that matter, what right does a workplace have to tell you that you should feel small as a person?
Leetcode suffers from a sort of simplicity problem. The mental model of what leetcode implies (programming challenges) is virally straightforward to reason about both for programmers (compete! be the best! go to space one day!) and hiring managers (wow this tiny picket fence is the most effective thing I've ever been recognized for, I've made it!!). I mean that it's virally straightforward because it has a simplicity that makes it "click" for everyone in 5 seconds, which makes it easy for it to scale/spread like wildfire.
And in an industry where hiring is known-ungood and everyone is grasping at straws, you can kind of see why organizations everywhere (especially the well-known, large inefficient behemoths) have adopted this on a shoo-in basis: in those environments, its user experience is orders of magnitude better than what it replaced.
Here's the rub though. That simplicity I mentioned? Other comments here have talked about how leetcode only challenges a specific mindset, that it's extremely narrow. And indeed it is. It's like an IQ test. But there's something about it, a... single-minded, zen-like quality to it, like dance-pad or Tetris arcade games.
In a recent thread (https://news.ycombinator.com/item?id=29728892) showcasing a multiplayer online Tetris game a lot of people marveled at how fast some players can play (the author of the site linked https://www.youtube.com/watch?v=MJDz4-pr9J4, and my personal favorite (definitely watch the end) is https://youtube.com/watch?v=lE_UHhqAd1c). These people get good not solely because of inherent talent, but because there is a catnip-like attraction that draws everyone in, and these people just keep coming back.
I suspect the same is true for leetcode. People just do a Jon Skeet and keep coming back. Reminds me of "the unreasonable effectiveness of showing up every day" (https://news.ycombinator.com/item?id=27833064).
However, I think that in that overwhelming one-dimensional simplicity of "leetcode means X", these finer points are completely lost in translation and do not scale. Instead we're left with " passed leetcode and got a job" and "wow this is really hard" and lots and lots of "wow I feel terrible as a person" - where that latter bit turns into what feels like an insurmountable Mr Everest because this is hard for a *lot* of people, including both those in your immediate social circle and the like-minded individuals who hang out on the same forums that you do.
If you're pushing to complete these, IMHO the only context that makes sense is in an unexpected-interview-next-week sort of situation. Definitely immediate to short term. Generally speaking, if you're aiming to work somewhere this sort of thing will be valued... it doesn't really make sense to try and get your foot in the door of a marathon race by proving you can sprint, right?
That's not to say that most large corporate environments actually give you work that requires a significant cross-section of this sort of skillset. In that regard leetcode is the grown-up version of "I learned all this stuff in school that I'll never use". In practice whatever real work you take on will generally be paced somewhat more sustainably and you'll have ample time to familiarize yourself with the approaches a particular piece of code uses - if they're not already in your mental toolbelt already.
The simplicity of leetcode lends toward what might be described as a "false bigger picture" that describes some sort of idyllic scene where you're working on zen puzzles at work all day. You know that isn't going to happen, but it can be so easy to develop a mindset that looks at the world through leetcode glasses and says, well, what if everything I do all day does reduce down to zen puzzle solving? Yay, I get to do this forever! (Protip for ADHD hyperfocusers: observe red flag. Red flag bad. Red flag signal imminent core burnout. Hate job. Stressed out all day. Depression.)
In reality, the competitive target that leetcode represents can be overwhelmingly easy to extrapolate into a whole occupation of its own.
The fact that leetcode gets people jobs is 100% orthogonal to the fact that some people get stymyingly good at it like with competitive arcade games.
There's probably a notable separation/distinction between people who do leetcode all day and people in Actually Interesting Positions.
For example, you might've heard of the Oroboros Quine (https://github.com/mame/quine-relay), a program that emits source code in over 128 programming languages in successive steps (as you run each program, it outputs code in the next one's language) and when you finally reach the end you wind up with the original source. This person works at a Japanese company that maintains an online recipe dictionary/service. Is this a major tech company? Nope. And that's most likely the reason this person has the time to dedicate to this. They clearly have sane work-life balance. (Work isn't life, it merely sustains it.)
There was a post on here recently about making a supersonic trebuchet (https://news.ycombinator.com/item?id=29408127). The author made a point that he expresssly optimized for difficulty so he would be able to control for how much time the project took.
A very small pet-peeve of mine is when people say that they're passionate about working in field X or Y, as though being passionate is a critical step to solving problems. It can be, *but only if you are not emotionally investing in what you are not capable of*. The problem with passionate investment is that it can be kind of blind, like blind faith or trust - it's just, this is vaguely the right direction to go, put a moonshot amount of mental effort into it and have blind hope that something good WILL happen. (I'm reminded of a quote by a swimmer, who IIRC was asked how he won a marathon swim race. He said that he did not mentally spare any energy for the swim back.) While it is by definition pretty much impossible to have a proper cause-and-effect discussion about the efficacy of this approach, what can hold it back is being passionate about solving problems that you're fundamentally not able to just *do*. Things where you go "...wait that's actually a really interesting problem" and dwell on for hours or days or weeks because, deep down, to your brain it's not a solved problem and instead a Very Good Question.
Folding back to leetcode, if you're terminally stuck, firstly you need to both identify where you're investing in what you're not capable of, and figure out what that means. While just the first half of this sentence on paper, this step may end up being a multi-month (-year?) project. It may benefit from therapy/assistance to help work through. With that done, you then need to figure out how to optimize for difficulty, possibly sourcing help to assist fighting stubbornness to solve problems the hardest possible way ("if I learn to solve this I'll be a better programmer!" - no, stop bashing your head against the wall and look at all the tomato sauce you've already gotten all over the floor; you are fallible). Finally, remember that the Zen mindset/simplicity of leetcode describes 0.01% of real work. Now have a hard think about what sorts of positions you really want.
If you're saying "I don't know, something cool," then judging your abilities off of the back of leetcode is an especially significant liability, both for you (leetcode cannot provide authoritative direction about how you want to grow) and your employer (who cannot really discern any sense of what to expect from you as a person given leetcode's incredibly narrow focus as a catalyst). Seriously narrow down what you want to do - not just in terms of what sorts of programming you want to do, but what kind of environment you want.
Welp, not really sure how to continue this from here so I'll stop now. I think there's a bit of projection and misinterpretation in places - I know I was envisioning a "just left school" stereotype at the end there - but hopefully parts of this are useful.

ud_0#
This is wrong on so many levels. I've been writing code commercially for more than 30 years.

> 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.
Not necessarily. If it feels like this, you may be in the wrong bubble. And that bubble is going away, too, because these tasks are the first that will be replaced by AI-assisted code generation. In the meantime, you can always Google an algorithm if you know what to look for.
There is almost zero usefulness in an ability to regurgitate boilerplate patterns, but there is tremendous usefulness in executing good judgement, creative problem solving, and a solid understanding of fundamentals.
Programming is about solving problems that are interesting to you personally, in a way that satisfies you (and ideally your customers). The hard part is finding that niche.
> 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.
You had it right the first time. If you enjoyed making these tools, that means there is still an internal drive in you to solve those kinds of problems. Even if those tools happen to be terrible, apply lessons learned and repeat! Spoiler alert, everyone else's tools also make trade-offs at the wrong points, even successful ones. Don't be fooled into thinking that the big things are already solved.
In the end it's about finding gainful employment doing something you enjoy. The good thing about programming is that you get to choose your environment and the nature of your work from a very broad spectrum.
> I wish I had practiced law for the past 7ish years instead, because at least all of my skills would still be relevant.
If you chased framework specifics and arcane patterns for the last few years, then yes, some of that work is not relevant anymore. Learn from that, stop chasing ephemera. You may be better served by doing deep work on a specific thing for a long time, as opposed to perpetually playing catch-up with JavaScript frameworks to impress the next fickle startup that thinks it'll change the world by selling ads.
I would advise anyone who doesn't absolutely need it for an interview to stop spending time on LeetCode and such sites. Instead, invest that time in a project that is relevant to you, and learn everything about a specific domain as deeply as you can. Pushing up a score counter on LeetCode doesn't compare to actually making something competently in the real world. ADHD can trick you into believing that solving artificially parceled-up and pre-defined problems for points in a few minutes at a time is progress, but it's not. Work on something meaningful that doesn't leave you with an empty feeling.

vanusa6 replies#
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.

Yup -- brain fog, paralysis and negative performance are the sure-fire signs of burnout (as least as pertains to your capacity for grinding LC). Excellent preparation for the daily grind of actually working for companies that rely on these tests.
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.
Exactly. And these are apparently precisely the "skills" these companies are "desperately" seeking to find among the engineers they invite for an on-site interview.
And don't forget the strong "culture fit" signal indicated by the sheer willingness to grind, grind, grind.
You memorize, regurgitate and participate in the agile masquerade. Creativity is shunned. Tried architectures/patterns are what is expected.
That's ticket. This is exactly the mindset these companies are after. That's why they swear up and down on the efficacy of these tests.
On the bright side: at least you've been freed of any illusions, by this point, about the intrinsic value of your advanced hard science degree.

Fattestmoron2 replies#
You are dead on. I am burnt out from my previous position and jumping through hoops for people who don't know what they are doing.

The science degree was useful for when I did advanced math, before the finance industry figured it would just abandon complex math in favor of statistical learning.

xscott#
There are definitely places that value non-formulaic advanced math. I spent most of the last 20 years (before retiring) doing signal processing, and some of it was very research oriented (no standard answers).

Don't get me wrong, I burned out for other reasons, but if you're looking for a job writing math oriented software, they are out there. Maybe consider finding a new area. Maybe take a break first though :-)

omginternets1 reply#
There are jobs that are not like this.

I’m very happy with my current employer. They’re hiring. Want an intro?

Fattestmoron1 reply#
Sure, thanks, I'd appreciate it, or at least it would be interesting to see what is being done in that area.

Continue this thread — 1 reply

drjasonharrison3 replies#
Where is this generation's "Moving Mount Fuji" that explains the history of leetcode puzzles and their ineffectiveness? https://m.slashdot.org/story/34239
selimthegrim1 reply#
The video is unavailable.

Continue this thread — 1 reply

actually_a_dog4 replies#
I wonder that as well. I don't see any significant connection between Leetcode or Leetcode-style questions and anything resembling what a company theoretically should be looking for in an engineer. The only thing I can come up with is that being able to memorize or otherwise internalize so many different problems is a proxy for intelligence (general mental ability). If so, I suspect it's a fairly weak proxy.

But, is that it? In the US, at least, not a lot of employers will give a straight up test of general mental ability (IQ test), likely because they see it as potentially attracting lawsuits. This is because IQ tests show a well-documented racial disparity in scores, which has not been shown to be correlated with anything genetic. Rather, the problem is either traced back to differences in family socioeconomic status growing up, or cultural bias issues with the tests.
Everything in the previous paragraph can be verified in a few minutes of Googling, so, I'm not going to litter this comment with citations when the obvious keywords will produce the information mentioned here. But, everything else, including what's to follow this, should be considered pure speculation on my part.
Given all this context, I can only think of 2 obvious reasons companies resort to using LC or LC-style interviews:
1. As a proxy for a test of general mental ability, as previously mentioned, or
2. Cargo culting, as with the whole "How would you move Mt. Fuji?" phenomenon.
I don't personally have a great deal of insight into which it is, or, if there's a third explanation that I'm completely missing. I also don't know whether there's any research supporting or refuting the idea that LC puzzles provide a valid interview signal for software engineers. All I really know is that these type of problems exercise skills that are not what one uses on the job as a SWE, so, it seems rather illogical to use them as a main component of your hiring process.

dnissley8 replies#
It's a weak proxy for general mental ability, but it's also a signal for high conscientiousness -- someone willing to spend a couple months studying to the test is showing that they have the ability to work hard on something over some length of time.

Continue this thread — 8 replies

josephg8 replies#
Due to a series of coincidences I've worked at 3 companies in the hiring space in my career, and I've personally performed over 400 tech interviews. I've also spent 2+ years teaching programming. I feel like I can answer that question - though I'm sure plenty of my colleagues would disagree with my answer.

Essentially I agree with you - most of the reason is cargo culting Google.
Assessing software engineers is hard. A couple decades ago, Google (which at the time was a tech darling, and the #1 place to work) had a saying of "A players hire A players. B players hire C players". Essentially they were terrified of hiring bad people, because they figured the company would inevitably go downhill if they did. Their hiring process was essentially an expression of this idea - it was based on the philosophy of "we're all A players, but are you as clever as us?". Interviewing at google at the time involved sitting about 6 back to back whiteboard interviews with programmers. Each person would spend ~20 minutes asking you their favorite puzzles and things, and seeing how you did. Nobody can say this because it would be illegal, but it was in many ways a programming themed IQ test. Good questions were the ones which filtered candidates out. And its easy to recommend against hiring someone if they couldn't reverse a binary tree on a whiteboard in 20 minutes. (I mean, thats easy for me! They must be a C player.)
Other companies followed suit. I mean, hiring is hard. Why not just copy Google's approach? Microsoft did something similar. Facebook was full of ex-googlers, etc etc.
The problem is that being able to reverse binary trees doesn't correlate with how well you can manage a database, style a form, fix a memory leak or talk to your team. And the people who only had those useful skills are unhireable. Oops!
In my opinion, the right way to interview programmers is to make a list of skills you want your programmers to have (coding, debugging, CS knowledge, communication skills, architecture, ...) and then find ways to assess each one. For example, to assess debugging you can give your candidate some pre-prepared code with failing test cases and see how many bugs they can fix within 30 minutes or so. But that requires preparation and test calibration. Most companies struggle to convince their engineers to interview someone for 20 minutes - let alone spend a few days putting together a problem like that.
Knowledge of data structures and algorithms is useful, and it is a positive signal about a candidate. But (depending on the role) I'd weight it below communication skills, raw coding skill and debugging. Those are all much more valuable. We need to start treating them as such.

Continue this thread — 8 replies

thaumasiotes#
> This is because IQ tests show a well-documented racial disparity in scores, which has not been shown to be correlated with anything genetic.

That isn't true; the correlation is visible when you look at the scores of people with mixed ancestry.

kazinator#
I would move Mount Fuji by having it situated on an island where like three continental plates meet, and then just kick back and watch. So to speak.
dpweb7 replies#
Who cares what companies want or trying to chase some huge payday. It’s all very boring.

What we do is a craft. Those things on lc are the foundations of our craft. I want to know everything about my craft, and a lifelong student of it, so I like sites like lc.
I’ll take it over trying read page after page of some big comp sci book.

omginternets#
Most of the interesting stuff is in papers and books, not on leetcode …
TaylorAlexander#
It sounds like that website is a shallow representation of this craft. A big part is working with stakeholders in a project, understanding needs and communicating what is possible. Only a portion of the craft is about writing algorithms.
baq2 replies#
In the industry computer science knowledge is useful on average once a month when you decide between a hash map or a vector. The hard part is figuring out what the customer actually wants.
josephg2 replies#
> once a month

This is incredibly dependant on your company, team and role. I’ve been knee deep in data structures and algorithms for the last year. When I was at (FAANG) years ago I worked with people who did this stuff full time. You’ll find roles which use these skills in AI, AAA game dev, finance, operating systems and so on.
But probably 95% of commercial work is styling and wiring buttons. Even at big tech companies most of the work is plumbing. The skills you learn on leetcode are completely irrelevant in those roles.

Continue this thread — 2 replies

llamajams#
Yeah I don't know where y'all work, but data structures, algorithms, and design patterns are for breakfast lunch and dinner practically every day at my work. It wasn't so when I just started but as soon as I got out of a jr role all the problems has huge data sizes, things had do get done fast and all that so there's no escaping the fundamentals =\.
YeGoblynQueenne#
Programming definitely is a craft, but coding exercises are not the basis of it. The basis is the theory in the big comp sci books you are wary of.

I recommend Introduction to Algorithms [1]. Books like that can be really dry and hard to read, and they usually are, but they contain fundamental knowledge about computation that is the only way to solve some hard problems (and there are many hard problems that remain open). Leetcode problems, if they're any good, will simply be exercises based on the concepts in such books. But you won't understand the concepts just by solving the exercises.
My experience is that I spent seven or eight years coding in Prolog (that's how I roll, OK? Don't judge!) and while I had become skilled at it, I didn't really understand how it worked until I started my PhD at which point I really had to sit my bum down and read a whole load of stuff I didn't even know existed.
You'll probably say "what do I care? I'm not in academia". Yes, but you think of programming as a craft, right? And a crafts-person is happy to constantly improve his or her craft. Well, a PhD is one way to do that, sticking with industry for many years, if you can find the right positions, is another. But one way or another you'll eventually find yourself at a point where just solving coding exercises doesn't give you anything new. That's when you turn to the books. If you don't, then you should be concerned: it means you're not really advancing, not getting better in your craft.
I'd have a lot more to say about programming as a craft. Instead, let me point to Peter Norvig's timeless essay:
Teach Yourself Programming in Ten Years
https://www.norvig.com/21-days.html
And to this book by George F. Luger who introduced me to the concept of the "Master programmer":
AI Algorithms, Data Structures, and Idioms in Prolog, Lisp, and Java
https://www.cs.fsu.edu/~cap5605/Luger_Supplementary_Text.pdf
I'm also linking those for anyone else interested in that kind of thing. Happy reading.
___________
[1] It's online here:
https://edutechlearners.com/download/Introduction_to_algorit...
No idea if that's a legit download or not.

deltaonefour4 replies#
I hate it when someone calls it a craft. First off programming is one of the easiest engineering disciplines out there. That's why it's so easy to learn without a degree. It's like calling plumbing, "the art of plumbing." Sure it's a "craft" but don't be so full of yourself.

Also lifelong student? Have you ever felt that everything you learn is just the industry moving in circles?

svantana21 replies#
If this was the case, then why are most applications full of bugs, including those written by trillion dollar corporations? To me, coding is a lot like physical construction - anyone who can swing a hammer can build a treehouse, but try to scale that to a skyscraper and it will go badly. At that point you need careful planning and lots of specialized knowledge to do it proper.

Continue this thread — 21 replies

gilbetron13 replies#
Been doing this for 30+ years. "Craft" is an ok way to put it. It definitely isn't the "easiest" engineering disciplines - all engineering is difficult otherwise we wouldn't call it engineering. If you think it is easy, you haven't done anything worthwhile, sorry.

To bad engineers, I can see how it looks easy and that it is "moving in circles". It is still a relatively new discipline, and as such, still finding a lot of the process, tools, and techniques that other disciplines have developed. Plus Moore's Law and its ilk change things constantly.

Continue this thread — 13 replies

dpweb1 reply#
I'd call plumbing a craft, same with auto mechanic. I admire someone who put in the years to not only fix the thing, but knows ridiculous details of certain kinds of bolts or whatever. That's having a hobbyists perspective, and the enjoyment of something just because you're fascinated by it.

Obviously, some would consider it a waste of time. 90% of their colleagues would say, "I don't get paid to know unnecessary stuff about the bolts. I get paid to screw this to that according to this diagram." Which is what commercial software work is. Different thing from being a hobbyist.

Continue this thread — 1 reply

Continue this thread — 1 more reply

Continue this thread — 2 more replies

Continue this thread — 3 more replies

throwJan222 replies#
I spent a year on LC to get a fang job, I actually felt it helped me improve my short-game programming skills. The problem was I then started applying for regular jobs who didn't care about LC so much and I was failing on system design, experience with frameworks etc. I spent so much time on LC I was neglecting to keep up on cool tech. So now I'm doing that. Its kinda weird being programmer for 20 years in a market where everyone is "desperate" to find programmers yet I'm struggling to get a 200k+ job. Yeah I haven't gone for regular corporate jobs yet but looks like I'll end up in that end of the pool.
froaway4job#
Ask for more money. Companies are throwing money at candidates these days. I’ve worked through 10 ish offers the past quarter and about half were 200-225k+ base comp. They all started at the 150-175k range. Non “corporate” jobs.
dnissley#
Wait, why are you applying for "regular" jobs if you are decent at lc? Those jobs simply don't pay 200k+. There is only a small percentage of companies that do (maybe a pool of less than 1000?), and they mostly don't care of you have experience with xyz framework.

Load more comments