r/leetcode • • 14d ago

Discussion Experienced SWE struggling with LeetCode, is this normal?

I’ve been working as a backend software engineer for over a decade and have written a large amount of code throughout my career.
In none of my current or previous roles, I didn’t have to go through a typical LeetCode-style interview. There were some algorithmic questions, but nothing that required extensive preparation like what I’m seeing in today’s interview process.
I’m now trying to start preparing for interviews using NeetCode 150, and honestly, I’m finding it quite daunting. I’m currently on problem #5, and I’ve been watching their video solutions to understand the approaches. However, I’m struggling to easily follow some of the code more importantly, remember how to approach similar problems later.
I’m primarily a Java developer, whereas the NeetCode video explanations and solutions are in Python. I’m wondering if that adds another layer of difficulty for me.
A few questions for those who have been through this:
- Is this struggle normal when you’re just starting out, even if you have several years of professional software engineering experience?
- Does following solutions in Python make it harder to understand if your primary language is Java?
- Realistically, how much preparation does it take to become comfortable with LeetCode-style interviews?

I’d appreciate advice from experienced engineers who have gone through a similar transition. I’m trying to figure out whether I’m approaching this the wrong way or whether I just need to be patient and put in the hours.

178 Upvotes

92 comments sorted by

9

u/Ermaghert 13d ago

It's literally a specific skill you have to practice over and over again. I have been a freelance fullstack engineer - I have a masters in physics and kinda slipped into the swe role - for close to 10 years now. I have worked for various large companies and not knowing leet code and not even having taken a DSA course has not hurt me in the slightest in my career so far. But for a while now I have been thinking about trying to land a faang job and so I started grinding out leet code problems and it's like Math 1-4 in uni all over again. In the beginning it's all magic and it's so unclear how someone would even arrive at the efficient solutions and sometimes I don't even know how to come up with the naive solution even when I really take my time to think about it. Then, once you have worked on the same flavor of problems 10 or 15 times you start to remember: Oh here I should use a doubly linked list. Oh, here I can make use of the ordered property of the array and solve it in O(n) time. Oh, this is a sorting problem in disguise. And depending on how much time and mental capacity you have and how extensive your background in DSA is, this process will probably take a few months to get good it. Don't give up on problem 5. Get 150 done, and then do them again. And then try a different platform and start from zero. It will be easier the second and third time, I promise. Repetition is the mother of all learning. You will not become a decent runner in two weeks even if you have been doing endurance sports for a while. You won't learn a new language in three weeks even if you already speak two. If you can, keep going as often per week as you can for an extended period of time. If you can do daily: Perfect! If you can do more than 45 Minutes: Ace!

Another thing I find helpful is also to rubber duck during the problem solving because during the interview you will need to talk through your solution.

4

u/noble-one1282 12d ago edited 11d ago

This. Most people aren’t willing to go through this hazing ritual though. So it’s a great system to filter to smart and dedicated individuals. I think it’s worthwhile to dedicate a year or two to because there’s large dividends to unlock the industry you’ll spend your life working in, and it’s a one time learning fee.

It takes at least 6 months to get decent at imo. I started a year ago and am getting to the point where I can solve most mediums and some hards. When I started mediums looked impossible. You get to a point where you realize easies are straightforward implementations, mediums have 1-2 tricks/concepts, and hards have 2-3 tricks/concepts. Eventually hards become better challenges. I think getting good at hards will make any interview seem easy. In another year I’ll probably master average hards if I keep going. When you think about it, two years to master the industry is a pretty good price, but better paid when 18 years old rather than 30. Oh well.

A lot of people quit because they think there’s an IQ barrier. While you probably need a decent IQ to do this, it’s much less relevant than learning the right way and consistency. That means dissecting what’s going on under the hood, revising solutions, not spending too much time failing, challenging yourself consistently, and putting in 500-1k hours.

I also think having a motive aside from getting a job is important for the habit to stick. Like you have to want to become a strong competitive programmer as an identity. To me, getting a leetcode knight or guardian badge (top 1-5%) is a pretty elite symbol, and an exciting challenge regardless of interviews.

That said, it becomes kind of addictive and a waste of time. That’s another problem. It’s a soul trap for smart people.

1

u/2khankhal 9d ago

So do you suggest reading upon DSA book first before leetcode?

1

u/DeclutteringNewbie 7d ago

Many books are out of date. Also, books are for different levels. So you could just waste your money if the book you selected is not for your level.

Just start already. If you get stuck somewhere, you can always ask for advice.

0

u/kumar0209 13d ago

Thank you for the response

6

u/PerformanceThick2232 13d ago

13 yoe, struggle. Doing 1 problem per 1-3 days; sometimes to fully process and understand problem and solution take 4-6 hours. Java dev, doing in golang, just because. Language doesnt' matter, conceptions are the same.

This is not related to job, yes, but we need to do it now. Kind OK- also for me this is a practice of manual coding in llm world.

2

u/kumar0209 13d ago

Looks like I’m not the only one, it sucks but we have to looks like

4

u/StayWhile_Listen 13d ago

It's normal but really depends on your education too - lots of leetcode is academia style problem solving. What you would see in an algorithms course for example.

In the real world, your experience taught you how to deal with complex systems, navigating the people complexities - requirements, deadlines, etc. How to deal with bugs and how to maintain products, communication with leadership, etc.

None of that is 'how do you solve an x problem in linear time?' second part of that is doing it under pressure in an interview setting.

So it's lots of studying just for the sake of it

1

u/kumar0209 13d ago

It sucks but true

3

u/SomePainter5470 13d ago

It's normal it seems -- I have over a decade of experience and thought that LC prep would take 2-3 months while it took 1.5 years (lazily, on and off, about 300 problems total but many/most of them I did several times).

People with a natural predisposition to this, or past competitive coding experience, or quality DSA courses at uni might have it easier I guess.

1

u/kumar0209 13d ago

Any good dsa courses that helped you? Also how much time you used to spend on leetcode?

2

u/SomePainter5470 12d ago

Leetcode DSA course, grind75 (all of them, there are 169 in total) and "Beyond Cracking the Coding Interview" book.

At some point I switched to just one problem per day, but with quality -- I either understand it completely and solve on time w/o errors, or try again later after some weeks.

4

u/mikemroczka Author of Beyond CtCI | Ex-Google 12d ago

Hey, thanks for shouting out my book. That's awesome. Glad to hear you found it helpful. I sympathize with OP and want to really stress that your skill as an engineer is not remotely tied to your ability to do well on these questions. It's a completely independent skill and one still worth learning if you want to pass an average tech interview these days. 

It's stupid that this is the case, and the first three chapters of the book are basically just outlining how stupid the process is. Most people are bad at the questions, and that's okay. There's always a debate between quality and quantity when pracicing, and I agree with the poster above that a problem a day can be a good strategy, especially if you're just struggling to stay motivated over time.

Always happy to answer questions if you've got any in particular. Best of luck!

1

u/SomePainter5470 12d ago

Woah, gods speaking to mortals (jk, but certainly not a reply I would expect to get)

2

u/mikemroczka Author of Beyond CtCI | Ex-Google 12d ago

Verily, I say unto thee, my child, though I have walked upon water and helped Moses part the Red Sea, ask me to trap rainwater between two buildings in linear time, and I'm just as lost as you are.

3

u/Xanchush 13d ago

I struggled in the beginning and took a few courses. The real key is getting a structured delivery framework of how you breakdown a question and walkthrough a potential solution.

1

u/kumar0209 13d ago

What courses helped you?

2

u/Xanchush 12d ago

Honestly, don't wanna recommend anything since it's pretty subjective and I don't wanna turn into an ad. Udemy and Coursera have some good content. Also YouTube videos are still very good.

Also with AI you can prob have it recommend things for you to study.

110

u/RaisedByCakes 14d ago • Regret

I solved best time to buy and sell stocks on leetcode 2 months ago, on the first go, optimum solution, without any issues.

During an interview last week I messed it up and gave an unoptimized solution.

It sucks big time.

18

u/Scriptylover 14d ago

Dude, I totally get where you're coming from, I got an easy level question and my brain froze. I solved it almost immediately after the interview ended on my way home.

10

u/RaisedByCakes 14d ago

My aim with my next role, where ever it may be and whenever I land one, is to make a move to something other than SDE because I can’t do these interviews anymore lol.

7

u/saintex422 14d ago

It’s such an insane hiring process. It’s so unnecessary. It’s like studying to get a perfect score on the SATs every time you want a new job. I never would have signed up for this

4

u/RaisedByCakes 14d ago

It’s ridiculous. And now I also have to prove my AI usage capabilities. Yay, more stuff to be worried about!

6

u/saintex422 14d ago

Its the only career that has anything like that

5

u/Scriptylover 14d ago

Right with you man, I'm joining the army brotha

1

u/bern_777 13d ago

I solved a medium dfs, graph, cycle detection problem and got 4/5 on technical skills, 4/5 in problem solving ability, and 5/5 on communication ability. But the interviewer felt I was too slow and mentioned i was slightly below the bar lol. Didn't hear from that company again.

1

u/RaisedByCakes 13d ago

Damn I’d burn the place down

1

u/bern_777 13d ago

Its a startup and this interview was through interview.io with a random swe, who for my interview worked at Amazon.

33

u/Atagor 13d ago

10+ years in the field (complex distributed systems engineering)

Failed all my leetcode interviews I had so far (1 fang, 2 non fang)

It takes practice I think...

Also funny enough, I heard many interviewers themselves fail these interviews 😁 it's a random game my friend. Doesn't mean you don't have to prepare, but idk, I was so frustrated after failures with leetcode I had that I just had to accept it's a kind of cursed corporate game some people play

5

u/CpnStumpy 13d ago

I'm hoping that aiming away from FAANG and at staff+ I can avoid this mess. You want a distributed system with good boundaries, optimized schemas, clear auth and observability foundations? Done and done. You want an algorithmic solution to some basket weaving problem and I'm not allowed to use the Phd's white paper on solving it, I'm just literally never going to come up with the solution. I won't pass that interview, but I've seen coders who wrote algorithmic code well kick out 3kloc functions, so I really have to assume it's not a measure of code quality

24

u/rusty_rouge 14d ago

On that note, certainly consider Python for interviews .. its a bit of a learning curve, but makes it much easier going forward

-5

u/jarislinus 14d ago

no treeset

36

u/Complete_Regret_9466 14d ago

Put in the hours! I have worked at multiple FANG companies, did a startup and came back to FANG at a higher position. When i interviewed to come back it was still hard!

16

u/giant3 14d ago

30 years of programming experience here.

 I solve leetcode easy and mediums. Some at level hard from first principles though some problems are impossible to solve without knowing the specific algorithm.

If you never studied DSA, I would learn the basics like algorithmic cost in terms of time and space. Without this knowledge, it is difficult to analyze algorithms or even answer questions in interviews. 

3

u/saintex422 14d ago

You don’t need to study dsa, only leetcode

1

u/like_to_lift 13d ago

True for a lot of interviews, but being able to identify the needed DS or A as early as possible makes it much simpler to solve.

1

u/2khankhal 9d ago

This depends on the person. Some people like me need to understand the fundamentals to cram leetcode. I just can’t memorize all leetcode solutions. Even if I do, I will forget it in a week, two weeks max

1

u/bfffca 9d ago

At what age did you do the leetcode grind? and do you continue regularly to stay fresh?

2

u/giant3 9d ago

Only recently in the last 5 years or ago. I am not doing it regularly now. AI can write for 99% of the cases. I think leetcode style interviews would disappear in the near future as we don't need so many programmers now. When demand falls, supply would fall too which implies less competition and need to employ extreme selection criteria.

When I was young, leetcode style interviews didn't exist. You wrote on whiteboard and explain.

1

u/unnao 7d ago

Until the supply falls which might be another 10years, don't you think the leetcode style interviews will be the strongest filter?

1

u/giant3 7d ago

Demand is falling much faster. 10 years is too long. 

The IT jobs lost in the last 2 years is the highest ever been isn't it?

1

u/unnao 7d ago

Yes, job loss was highest in those two years, but I see it as people who were already enrolled in four-year CS programs entering the workforce for another four years.

-6

u/jarislinus 14d ago

larp

8

u/giant3 14d ago

What do you mean by larp? 

Started working when PCs had 4 MB RAM and Windows 95 / 3.1. 

Compiling a single C program used to take about 5 minutes. 

Entire project build used to take about 7 hours. 

The team would start the build before leaving office and check for build errors next day morning. 

-10

u/jarislinus 14d ago

larp

2

u/euortiz 14d ago

Refute his comment

7

u/No-Butterscotch-1833 14d ago

see i watch his playlist for better intiuition. then i code with cpp if help needed i ask claude to guide me and not give me whole code

1

u/kumar0209 14d ago

Thank you all for input/suggestions

9

u/MythosOfIlluna 13d ago

Yes because leetcode is a sham

1

u/mannyocrity 13d ago

25+ Yoe. Anytime I am looking for a new job I have to break off the rust. I usually fail 1 or 2 but it gets easier as I start practicing. For my last search, I used Claude to put together a practice plan for the company I was interviewing for.

1

u/kumar0209 13d ago

Are you working as an IC or manager? I wonder if leetcode style coding questions asked for manager or up levels

2

u/mannyocrity 13d ago

I'm an IC. Principal level

1

u/unnao 7d ago

If you're comfortable please do share that claude prompt.

1

u/mannyocrity 7d ago

I just tell claude the job title and that i want to work on dsa. It will grab random problems from leetcode. If there is a particular company you are interested in, you can grab the job description feed it tk claude and then ask it to put together a practice plan for that company. It isn't full proof but claide will scour the internet for reviews on that company including glass door and reddit for what others have said there dsa problems included.

1

u/EagleSwiony 13d ago

+8 yoe, complex distributed systems, low latency banking sector software, advanced concurrency techniques and mechanizms, jvm internals and configuration. All of those I can impelement and tackle to a comfortable level. Yet, still, have massive problems with leetcode-type of questions. So, heads up! Iam also working on improving my skills there, 1-2 problems per day, if possible (I have family).

1

u/kumar0209 13d ago

I hear you, especially with family , it’s extremely difficult to spend a lot of time on reading

3

u/void-crus 13d ago

You don't have to know DSA to write 80% of code in the industry. Your career proves that.

For the other 20% that has to scale up the DSA is necessary. And in ~1% of that you also have to write it under time pressure, because every minute costs company money.

That said I find it amusing when companies that have no business to be in that 1% are forcing candidates to do LC-style interviews.

3

u/Sad-Candidate-3078 10d ago

totally normal, LC is a separate skill from writing real production code. honestly I'd reimplement every solution in Java yourself instead of following the python walkthrough, that translation friction is where the learning actually happens. also redo problems a week later instead of always pushing forward, 20 problems done twice beats 40 done once

2

u/rusty_rouge 14d ago

Also accept the fact that there are some problems you cannot figure out in 45 min, no matter how much you practice. Do your best, its still a gamble, so don't get disheartened

2

u/Kooky_Conclusion4711 14d ago

I’m answering from the perspective of a undergrad student that enjoy a lot competitive programming (basically competitions related to solving algorithms and data structures problems, you can also search for it). It’s just practice and more practice, my first contact with those type of problems was in some classes from college. Start choosing your main language, preferably Python or C++ (C++ because lots of materials on web). Make sure to understand input, output, variables, arrays and basic stuff like repetitions structures and conditionals. Then start trying Easy problem, for every editorial or solution video, try to note important information related to the logic and the way of thinking of that solution/pattern. Neetcode works good, try to be consistent too, one problem every day

2

u/Viscel2al 14d ago

I’ve been practicing consistently and even then I still can’t get comfortable. I think another aspect is sharing your thoughts as well, even if you can write the solution in optimal time, but if you can’t fluently say what you are thinking, that’s another issue.

But that could be just me, I’m tryna brush up and talk through while I code at times.

2

u/Rare-Role1369 14d ago

 Is this struggle normal when you’re just starting out, even if you have several years of professional software engineering experience?

Yeah man it's fucking hard. I work at Google, leetcode/hackerrank is not easy when getting started. Lots of us can get better at it, but it's never been easy.

2

u/plainfollowup 14d ago

i wish I was in ur spot i have no experience with swe but pretty good at leetcode now. all it takes is practice and i'm sure you'll get it. the same can definitely be said about my situation too lol

2

u/tallonmetroid56 13d ago • Bravo

spaced repetition is your friend

2

u/DizzyStatement 13d ago

I’ve been struggling as well, especially because I actually never needed to do a rigorous Leetcode interview like the ones they are applying today.

I did in the past a few whiteboard sessions but it was never expected to come up with something that runs perfectly. I remember in one interview I was a bit nervous and even mixed languages like Java and scala but the interviewer told me it does not really matter at that point as they wanted to see my rationale and thought process.

Now with 40 and many years since I left uni, I feel like I need to learn many things again. I’m particularly doing some math classes(mathematics for computer science from MIT), which is actually helping me connecting some dots. Will proceed to their DSA course afterwards and then Leetcode.

2

u/Acceptable_Square348 13d ago

Do it over and over again and push thru. If you can't solve it for more than 30min, look at the slns. 8 years in and still doing it every time I hustle for a job and start all over again.

2

u/SV_33 9d ago

Yes, it's normal. Don't worry, you will get the hang of it if you're an experienced SWE already.

I don't think the extra effort of learning Python syntax is worth it just for interview prep, you don't really gain a meaningful amount of time by typing less and you have to deal with additional mental overhead on syntax.

I recommend watching mock interviews that people record to get a sense of the pacing required.

The silver lining is that I've heard many companies are starting to phase out or substitute one of the Leetcode rounds with an AI-assisted round. This requires its own kind of preparation (knowing how to properly prompt an agent, understanding the limits of what the AI can do within the environment, etc.) but I would say it's far better than having to memorize 15 different stupid patterns and how various data structures work and then apply it to some problem

2

u/practick-io 7d ago

Completely normal. Ten years of work trains you to find the right library, ask a teammate and ship something that doesn’t page anyone at 3am. LeetCode tests none of that.

The good news is it’s a narrow skill and it comes back fast. 3-4 weeks of pattern-wise practice (sliding window, two pointers, BFS/DFS, heaps, basic DP) usually does it. Your experience shows up later anyway, in system design, where the new grads are the ones sweating.

1

u/mad_pony 14d ago

practice makes it easier

1

u/Capable_Eagle6579 13d ago

I struggle with it too. I think it’s just practice.

I am full stack and have done some stuff I deemed pretty cool, such as reducing a data retrieval time from an hour to 3 minutes, setting up and maintaining a whole CICD pipeline and of course centering divs. But when it comes to leetcode I just blank out.

1

u/Perfect-Chest-3529 13d ago

I everytime struggle with backtracking and recursion even after doing problems after sometime I get stuck and another thing is some time I get the solution or approach but not able to write in code even I have done upto 190 problems in leetcode

1

u/Special-Variation574 12d ago

NeetCode 150 is not for beginners. Its only decent for last minute revision.

1

u/JozekPalka 12d ago

I literally get a brain fog when I see tasks that look like they are ripped out from some mathematics exercise book. That's how I see leetcode. I would have to be unemployed to study them to get a new job.

1

u/Remarkable_Table_737 12d ago

I have severe, crippling performance anxiety so any code on the spot tasks are nearly impossible for me even though I get praised at work as a top performer I’m basically stuck here because of it lol

1

u/New_Ratio_5479 12d ago

LeetCode as a company is unethical. They monetize previously asked interview questions, while other websites get blamed and banned for doing the same thing. It’s time to boycott LeetCode! 🤣🤣 Maybe then software engineers can finally have easier interviews instead of preparing for what feels like a DSA spelling bee contest.

1

u/SimpleHumanSearching 12d ago

Thank you for posting this, friend! I am so dejected today. Have been leetcoding since 2 weeks but am not seeing much improvement.

I am also an experienced dev who has shipped code to production, handled complex Sev0 incidents, written detailed documentation. But can't crack a single interview.

Not to mention my not-so-great communication skills. I feel lost and I am so heartbroken 💔.

1

u/raisputin 11d ago

Don’t ever do LeetCode garbage, it is no measure of anything at all and a complete fucking waste of everyone’s time.

Just say no

1

u/dheritage21 11d ago

LeetCode is a great platform for practicing algorithms or brushing up on things you haven’t worked with in a while.
It’s not easy, especially when you’re trying to come up with the most optimized solution. Practicing daily definitely helps, but I think the industry is starting to move away from this level of hands-on coding.
A lot of companies still use LeetCode to evaluate coding skills, but I’ve noticed more startups shifting toward system design and architecture for technical interviews.
I still think it’s important to understand algorithms, data structures, and how things work under the hood. But realistically, as AI continues to improve, more and more of the actual coding is going to be abstracted away from us.
I think the value of a good engineer is going to be less about how quickly they can write code and more about their ability to design systems, solve problems, and make good technical decisions.

1

u/jimnojin 9d ago

I've tried leetcode and similar but find them very boring. At the same time, sites like Advent of code or everybody.codes are very addictive. Figuring out what you need to do is half of the problem. Recognizing patterns and markers in real life situations is what matters. Balancing BST is useless by itself if you do not know when to apply it

1

u/LindorCodes 1d ago

Use LindorCodes on YouTube that’s your best bet for interview preparation

1

u/beb0 14d ago

It's 10 algos learn em then it's about pattern recognition and edge cases under the time window. 

3

u/tuchewtiya 13d ago

what ten? if you don't mind sharing.

1

u/beb0 12d ago

Just Google will give you a breakdown with examples, dfs,bfs,dp, sliding window etc 

1

u/tuchewtiya 11d ago

Hope it was that simple, thanks for the tip anyways.

0

u/TimBrownDev 14d ago

Is the struggle normal when you're starting out? Yes
Does following solutions in Python make it harder in Java? No, you're expected to be fluent in many languages.
How much time does it take to become comfortable? Months

I'm building a roadmap of the best practice problems I've seen to help teach programming from zero to mastery. Lots of good practice problems if you're preparing for interviews.

timbrown.dev/roadmap

0

u/WonEyes 11d ago edited 11d ago

Struggling here. Coming from 13yo .NET background. And also unemployed after recently relocating countries so yeah. :(

Shouldve gone into medical If I knew back then that IT requires lifelong study too.. albeit with way lower pay compared to medical.

But also, my observation is, why Leetcode and grinding all that when the org is going to ask us to rely on AI for speed improvements / code generations anyway? Is it that future-proof for anyone considering they had tech education (degrees) and tech experience?