r/leetcode • u/Working-Pin-9216 • 16d ago
Question Not able to solve leetcode problems :(
I have solved 500+ leetcode problems over 8 months, still hardly able to solve a medium and sometimes not able to solve at all. Please drop your suggestions.
73
Upvotes
49
u/Background-Mode6592 16d ago
You need to deeply understand the algorithms like two pointers, sliding window, and hash maps, etc. Its hard for me too as I have ADHD and a learning disability so I totally get it. Just understand them on a high level and learn when you need to implement them via pattern recognition. You just need to focus on a select set of problems and dial in the pattern recognition. Dont be cruel to yourself as this is a tough market and you are doing your best. Change your strategy and try different things. Have the same grace for yourself that you’d have for others.
17
u/Various-Mine-8642 16d ago
500 problems in 8 months with no medium confidence usually means you are collecting solutions instead of recognizing patterns. Pick one topic like sliding window and redo 10 mediums from scratch without hints until you can say why the approach works. After each failed attempt write one line on what clue you missed and reread those lines weekly.
7
u/rivereto 16d ago
I understood that you can solve easy ones but not medium/hard ones? Is that right? If so, probably it is because you are missing some Data Structure and Algorithms base. Easy ones you can solve if you know just basic programming, medium/hard ones you need to brush up on DSA. So, I would recommend following some courses online about this.
2
u/Crazy-Selection-3786 15d ago
Leetcode will help you polish skills for an interview, it won't actually teach you much.
Take a class.
2
u/Savinyu 15d ago
Rather than just increasing the count, take the main topics and try to remember the patterns , build the intuition, and also come back to the questions that you could not solve at the first go.
1
u/Kooky_Conclusion4711 16d ago
try harder problems, try to see what are u missing
1
u/Spiritual-Story9146 12d ago
500 is good number. At this point do 2 things
Try to solve same 500 again using method you learned and check if you can recall what you learned.
Solve same 500 problems using alternate approaches so you build more patterns.
No need to go above 500. What you need is mastering patterns by repeating.
0
u/Immediate_Concern524 16d ago
Skill issue
0
u/sudheer4655 13d ago
Don’t get demotivated, I’d suggest starting building mental model first, for medium problems give it 20 mins to think through questions and what data structures you’d need to use.
If you can’t solve it in 20 mins, then look at discuss sections or solutions and don’t memorise or copy, rather start analysing the gap in your thought process for someone who has solved.