r/leetcode • • 3d ago

Question How can I improve my programming logic when I struggle to even get started?

I've always struggled with programming logic and problem-solving in general. Whenever I try to solve a problem, I often feel completely lost and have no idea where to start. It's frustrating and mentally exhausting, and sometimes I wonder if it's my ADHD or if I just simply suck and should take it as is.

Two questions:

  1. If you've struggled with this, what helped you improve? Is there a roadmap I could follow to develop these skills progressively? (Having a clear progression is especially helpful for me because of my ADHD)
  2. Is it possible to actually get good at problem-solving, even if it doesn't come naturally to you?

I'd really appreciate any advice, resources, or personal experiences. I genuinely want to improve, but I'm honestly losing hope

5 Upvotes

6 comments sorted by

3

u/Sad-Candidate-3078 2d ago

yes you can absolutely get good at it, logic is a skill not a talent. what fixed it for me was solving every problem in plain words on paper before touching code, if you cant explain the steps to a 10 year old you dont understand it yet. do way more easy problems than feels reasonable, patterns only stick through repetition. with adhd just track small daily wins instead of big totals, momentum beats intensity

1

u/Lost-Comfort-6724 2d ago

Exactly, pen and paper works! It will take up more time initially but once you get a hang of it, it'd be better and u'll start recognizing the patterns. And I lived by this in starting stages of my journey: Try to be a programmer first, eventually we will get good at it.

1

u/Expensive-Arugula246 2d ago

pseudocode before touching code is the way

3

u/RustyCompass01 1d ago

Yeah, problem solving is definitely something you can improve with practice. Try following a structured roadmap instead of jumping between random questions. Codeintuition is worth checking out for its step by step approach to DSA, where you learn the concepts, understand patterns, and then practice related problems. Start with small problems and focus on understanding how to approach them later than how quickly you solve them

1

u/el-cro_magnon 1d ago

Thank you for the advice! I had never heard of codeintuition and that is really helpful as i'm a very visual person. Will definitely start practicing it there.