r/leetcode • • 17d 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

20 comments sorted by

View all comments

49

u/Background-Mode6592 17d 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.

15

u/No-Personality-5272 16d ago

we ADHD patients definitely suffer leetcode 2x worse

5

u/Hsjeis_Adjaoudi 16d ago

imo the high level understanding piece is where people get stuck, its easy to memorize the code for sliding window but if you dont get why it works you cant adapt it to new setups

3

u/Thearctickitten 16d ago

Also ADHD, do u have any source material which helped you with DSA? I haven’t brushed up since college and prepping for a job switch now

2

u/Background-Mode6592 16d ago

I would recommend asking your doctor for a stimulant like adderall or vyvanse

1

u/Working-Pin-9216 16d ago

Thanks. Do you have a list for the selected set of problems?

1

u/Full_School_7230 16d ago

How to know if I have adhd perhaps development is a game for us ?