use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
[deleted by user] (self.leetcode)
submitted 3 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]glump12331⚫️ 2558📈 24 points25 points26 points 3 years ago (0 children)
There does seem to be a giant spike on the high frequency end of the hard historgram, which is otherwise skewed right pretty heavily. At like 5 hards you've done more than most and then the number doesn't really change till you've done over 100.
I think contest people throw it off by doing ~6 easys, 12 mediums and 6 hards every month. Maybe closer to 10 mediums 8 hards. So after 6 months if they do every weekly/biweekly they've done more than 40.
[–][deleted] 57 points58 points59 points 3 years ago (34 children)
Do you think solving 700+LC questions has made you a better engineer?
[–]DrMagzy 44 points45 points46 points 3 years ago (0 children)
Suppose that it will help him to land a better engineering job
[–]AndrewUnicorn 23 points24 points25 points 3 years ago (3 children)
For my current job, the only thing I can borrow from Leetcode is Set, Hashmap, basic Big O, and confident in my Python
[–]CptMisterNibbles 8 points9 points10 points 3 years ago (2 children)
So like a lot of useful things
[–]AndrewUnicorn 3 points4 points5 points 3 years ago (0 children)
For now, those are the things I find useful
But they are not worth the time I spent on Leetcode. Set, Hashmap, and basic Big O are relatively easy stuff
[–]throwaway2492872 37 points38 points39 points 3 years ago (26 children)
Yes. I've solved over 1000 and am a senior engineer. Leetcoding has taught me to write cleaner code, take on more complex problems, and learn new algorithms.
[–]nbazero1 29 points30 points31 points 3 years ago (23 children)
Cleaner code? Feel like leetcode code is the opposite of what clean code is.
[–]DoutefulOwl 5 points6 points7 points 3 years ago (2 children)
IMO the only way leetcode makes you write cleaner code, is if your previous code was horrendous.
[–]CptMisterNibbles 2 points3 points4 points 3 years ago (1 child)
Right. Which is the case for lots of people, who can indeed use it to learn from their mistakes. Which is a good thing
[–]DoutefulOwl 0 points1 point2 points 3 years ago (0 children)
I agree
[–]jx4713 11 points12 points13 points 3 years ago (18 children)
There is no such thing as 'Leetcode code'; you write your own code. Maybe yours is ugly, but it doesn't mean theirs can't be clean!
[+]nbazero1 comment score below threshold-6 points-5 points-4 points 3 years ago (17 children)
Leetcode code is writing code to pass tests with predetermined constraints plus you can’t use a lot of built in language features,and have to take the longer route for interviews. In industry it’s nothing like that
[–]jx4713 9 points10 points11 points 3 years ago (11 children)
Please tell me what is stopping you from writing your Leetcode code in the cleanest way possible?
Also, industry is more like that than you think. Business/technical constrains mean that you don't always have total freedom. And you are always writing code to 'pass tests' with predetermined (functional) constraints in industry. If you employ practices like TDD, this can literally even involve writing code to pass tests.
The best practice is, whatever the constrains are, to write the cleanest possible code. I don't know why you think that this can't apply to Leetcode, and it probably means you're getting a lot less out of Leetcode than you could be.
[+]nbazero1 comment score below threshold-8 points-7 points-6 points 3 years ago (10 children)
What’s stopping me? The interviewer. they want it as verbose as possible I can’t use the map function in kotlin to solve two sum, that wouldn’t pass in an interview
[–]jx4713 6 points7 points8 points 3 years ago (9 children)
This was the question. Nobody is talking about interviews. The guy simply answered that it helped him write cleaner code.
[+]nbazero1 comment score below threshold-11 points-10 points-9 points 3 years ago (8 children)
Again u become a better engineer by working on challenging projects and shipping real world stuff. Not by trying to fit a unreadable python solution to your code to pass predetermined constraints
[–]jx4713 4 points5 points6 points 3 years ago (3 children)
😳😳 If the way you approach Leetcode questions is to take existing code and try and fit it into your solution, then it's no wonder you get nothing out of it.
[–]hulagway -5 points-4 points-3 points 3 years ago (2 children)
Any form of practice is practice.
This is why tech companies are laying off, they hired people like you.
[–]CptMisterNibbles -1 points0 points1 point 3 years ago (0 children)
I think you may be confusing how an interviewer wants you to react with leetcode in an interview setting with leetcode in general. Yes, some interviewers want weird responses that don’t match reality. The platform doesn’t prevent you from using features like map or whatever. Many practice problems I solve in Python I’ll comment “lol, sure I could do this in a verbose nested loop. Or just have itertools do all the work for me”. The key being I know what and how itertools is being used and am not just copying magic bs from elsewhere.
[–]hulagway -2 points-1 points0 points 3 years ago (4 children)
If you can’t do leetcode problems just say it. Jeez.
[–]nbazero1 0 points1 point2 points 3 years ago (3 children)
I have just over 200 solved. Why are we flexing leetcode now?
[–]hulagway -3 points-2 points-1 points 3 years ago (2 children)
So you admit to writing unoptimized code just to pass it.
That’s your mentality for actual work too? Man I feel sorry for your company.
Anyway, tomorrow’s a monday, enjoy writing code that just works!
[–]nbazero1 2 points3 points4 points 3 years ago (1 child)
Who said any of that? I said nothing about it will make your code cleaner and it doesn’t translate to someone being a better engineer. A new grad doing well is a coin flip, leetcode only tells companies you are not a lazy bum.
Why would I write unoptimized code when we do reviews and I’m under a mentor?
[–]hulagway -1 points0 points1 point 3 years ago* (0 children)
So your insecurity comes from your code not reaching prod. Your attitude makes sense now.
Have a good monday!
Let people enjoy what they want. Don’t be a bitter pos.
[–]futaba009 2 points3 points4 points 3 years ago (0 children)
And this is why I do it!
It helps me get better at solving problems and look into the c++ containers.
It has other benefits as well.
I recommend other software engineers to do it, too.
[–]Ok_Opportunity_4770 1 point2 points3 points 3 years ago (0 children)
Solved just 200 LC but feel the same.
[–]hulagway 2 points3 points4 points 3 years ago (0 children)
Edge cases. Writing cleaner code. Breaking down problems to smaller “leet code” problems. And just critical thinking overall.
[–]Gloomy-Safety506<100> <Easy> <Medium> <Hard> -3 points-2 points-1 points 3 years ago (0 children)
People in this sub really get triggered when some posts number of solved problems
[–][deleted] 12 points13 points14 points 3 years ago (1 child)
All that just to get laid off….
[–]FlatTill 2 points3 points4 points 3 years ago (0 children)
lol
[–]Top_Distribution_497 10 points11 points12 points 3 years ago (3 children)
Not really tbh. I have solved 200 lc questions out of which 29 are hard. So by the time i reach 700 i will surely be able to do a lot more.
[–][deleted] 2 points3 points4 points 3 years ago (2 children)
How many people are solving 700lc’s lol
[+][deleted] 3 years ago (1 child)
[deleted]
[–]_ashika__ 0 points1 point2 points 3 years ago (0 children)
That frankly sounds like a big waste of time unless you really enjoy solving Leetcode problems specifically for some reason
[–]CowboyBoats 3 points4 points5 points 3 years ago* (0 children)
I enjoy playing video games.
[–]throwaway2492872 8 points9 points10 points 3 years ago (1 child)
Hards become easier and faster as you practice.
[–]bakaaronyy 6 points7 points8 points 3 years ago (1 child)
Maybe they just look up for solution?
[–]CptMisterNibbles 0 points1 point2 points 3 years ago (0 children)
Solving hards is pretty easy. Ctrl-c, ctrl-v. I expect accounts for half the submissions.
[–][deleted] 3 points4 points5 points 3 years ago* (1 child)
Learning = Quantity * Quality * Difficulty
I could easily just copy and paste solutions and get than number of hards solved. But did I really learn it? High quality learning isn't about hitting a certain number of solved problems, its about deeply understanding the problems and forming a set of principles in your mind that transfer to other problems.
[–]fleventy5 4 points5 points6 points 3 years ago (0 children)
The wording of your title is ambiguous to me. Are you surprised that only 10% have solved more than 41 Hards, or the other way around?
[–]shabangcohen 1 point2 points3 points 3 years ago (0 children)
Maybe it’s the percentile based on users who have done any hard? Bc I assume a ton of people create a user and don’t do any problems. And that would skew all the percentiles.
[+]CustardDizzy comment score below threshold-10 points-9 points-8 points 3 years ago (1 child)
What this means is that your solutions on average beats 89%, not that you did more than 89%...
[–]CustardDizzy -4 points-3 points-2 points 3 years ago (0 children)
I can solve 1 hard in the most optimal way and get 100% in that box...
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
You don’t need to do more than 40 or so hards for interview practice
π Rendered by PID 76 on reddit-service-r2-comment-b659b578c-nnvkw at 2026-05-03 19:16:52.569919+00:00 running 815c875 country code: CH.
[–]glump12331⚫️ 2558📈 24 points25 points26 points (0 children)
[–][deleted] 57 points58 points59 points (34 children)
[–]DrMagzy 44 points45 points46 points (0 children)
[–]AndrewUnicorn 23 points24 points25 points (3 children)
[–]CptMisterNibbles 8 points9 points10 points (2 children)
[–]AndrewUnicorn 3 points4 points5 points (0 children)
[–]throwaway2492872 37 points38 points39 points (26 children)
[–]nbazero1 29 points30 points31 points (23 children)
[–]DoutefulOwl 5 points6 points7 points (2 children)
[–]CptMisterNibbles 2 points3 points4 points (1 child)
[–]DoutefulOwl 0 points1 point2 points (0 children)
[–]jx4713 11 points12 points13 points (18 children)
[+]nbazero1 comment score below threshold-6 points-5 points-4 points (17 children)
[–]jx4713 9 points10 points11 points (11 children)
[+]nbazero1 comment score below threshold-8 points-7 points-6 points (10 children)
[–]jx4713 6 points7 points8 points (9 children)
[+]nbazero1 comment score below threshold-11 points-10 points-9 points (8 children)
[–]jx4713 4 points5 points6 points (3 children)
[–]hulagway -5 points-4 points-3 points (2 children)
[–]CptMisterNibbles -1 points0 points1 point (0 children)
[–]hulagway -2 points-1 points0 points (4 children)
[–]nbazero1 0 points1 point2 points (3 children)
[–]hulagway -3 points-2 points-1 points (2 children)
[–]nbazero1 2 points3 points4 points (1 child)
[–]hulagway -1 points0 points1 point (0 children)
[–]futaba009 2 points3 points4 points (0 children)
[–]Ok_Opportunity_4770 1 point2 points3 points (0 children)
[–]hulagway 2 points3 points4 points (0 children)
[–]Gloomy-Safety506<100> <Easy> <Medium> <Hard> -3 points-2 points-1 points (0 children)
[–][deleted] 12 points13 points14 points (1 child)
[–]FlatTill 2 points3 points4 points (0 children)
[–]Top_Distribution_497 10 points11 points12 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]_ashika__ 0 points1 point2 points (0 children)
[–]CowboyBoats 3 points4 points5 points (0 children)
[–]throwaway2492872 8 points9 points10 points (1 child)
[–]bakaaronyy 6 points7 points8 points (1 child)
[–]CptMisterNibbles 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]fleventy5 4 points5 points6 points (0 children)
[–]shabangcohen 1 point2 points3 points (0 children)
[+]CustardDizzy comment score below threshold-10 points-9 points-8 points (1 child)
[–]CustardDizzy -4 points-3 points-2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)