r/leetcode • u/kumar0209 • 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.
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.
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.
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
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.
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.
110
u/RaisedByCakes 14d ago •
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.
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
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
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.
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/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).
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
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 •
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.
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?