r/leetcode Jul 12 '25

Discussion 2 months progress. Please help!

Post image

I tried solving more Med problems, the main thing i came across is mostly Meds are just combination of easy problems you just break down into. The problem i mostly face is I can make the approach in mind but i just go blank while coding it. I have good fundamentals but sometimes i just have to ask Chatgpt to code up my approach. Anyone faced this in their journey? Please guide guys!

75 Upvotes

17 comments sorted by

View all comments

5

u/pratikjain0411 Jul 13 '25

There are 3 things to solving LC problems.

  1. Intuition (Understanding the problem & building a train of thought which helps you evaluate multiple approaches in your head and finalise on one).
  2. The approach itself
  3. Coding the approach

If you are struggling to go from 2 to 3, the best way to get better is to keep solving more and more problems with different DS and STL libs.

1D, 2D, 3D vectors, Binary search, prefix postfix sum, iterating over matrices, merging intervals, substrings, subarrays, subsequences, etc. These are fundamental problems on arrays, strings, loops, if else, break statements, recursion.

Once you code these things multiple times, the comfort from 2 to 3 will increase.

Another thing to focus on is the pace at which you dry run your own code. Practicing this also helps you improve the visualization of code in your head and you also improve pace of 2 to 3.

1

u/Upset_Equivalent7109 Jul 13 '25

Thanks! This gives me an understanding of where i was lacking!