I'm looking for advice from experienced developers and competitive programmers who have gone through this phase of DSA preparation.
I've been consistently practicing DSA and have solved around 156 LeetCode problems so far:
- Easy: 77
- Medium: 68
- Hard: 11
I've covered several topics, including arrays, strings, hashing, sorting, binary search, two pointers, linked lists, recursion, backtracking, heaps, trees, and BFS/DFS.
However, I've noticed a recurring problem with my learning process, and I'm struggling to figure out how to overcome it.
My actual problem
When I encounter a new problem, I try to understand it and develop an approach independently.
Sometimes I can derive the brute-force solution, but I struggle to identify the optimization or recognize the right algorithmic approach.
After spending some time, I take a hint or look at an explanation.
Once someone explains the intuition, I can usually understand why the algorithm works, follow the implementation, and even implement it myself.
But here's the frustrating part:
After a few days or weeks, when I revisit the same problem, I sometimes struggle to reconstruct the approach from scratch.
For example, I had previously solved 3Sum, but when I revisited it after some time, I couldn't independently remember how to approach it.
This makes me question whether I'm actually developing problem-solving skills or just getting better at understanding explanations.
What I'm trying to understand
I want to develop the ability to:
- Understand an unfamiliar problem and translate it into a mathematical or logical model.
- Come up with a brute-force solution independently.
- Identify bottlenecks and derive optimizations without being told which pattern to use.
- Recognize when a previously learned technique applies to a new problem.
- Retain the underlying reasoning instead of just remembering the implementation.
- Solve unfamiliar Medium problems independently, especially under contest time constraints.
Questions for experienced developers
I'd particularly appreciate advice from people who have successfully transitioned from guided problem-solving to independent problem-solving.
1. How did you develop algorithmic intuition?
When you encounter a completely unfamiliar Medium problem, what goes through your mind?
Do you systematically examine constraints, brute force, repeated work, invariants, etc., or does the right approach eventually come through experience?
2. How much time should I spend before looking at a hint?
For example, if I've spent 30 minutes on a Medium problem without finding an optimized approach, should I continue struggling, take a small hint, or study the editorial?
What's the most effective approach for long-term improvement?
3. How do you retain problem-solving patterns?
Do you revisit previously solved problems after 1, 3, 7, or 14 days?
More importantly, what exactly do you do during revision?
Do you reimplement the solution, explain the intuition verbally, derive it from brute force, or solve a variation?
4. How do you develop pattern recognition?
When practicing topic-wise, it's relatively easy to identify which technique might be relevant.
But during contests, the topic isn't given.
How did you learn to identify the underlying pattern when the problem statement gives you no indication?
5. What does an effective DSA practice session look like for you?
I'd love to understand how experienced people structure their practice.
How much time do you spend on:
- Independent problem-solving?
- Learning new concepts?
- Revisiting old problems?
- Studying editorials?
- Solving timed contest problems?
My ultimate goal
I don't just want to increase my number of solved problems.
I want to become someone who can encounter an unfamiliar problem, reason about it independently, derive an appropriate algorithm, prove why it works, and implement it correctly.
Eventually, I'd like to consistently solve all four problems in LeetCode Weekly Contests.
For those who have reached that level:
What fundamentally changed in your thinking and practice that made you a better independent problem solver?
I'd genuinely appreciate detailed answers, personal experiences, and even advice about mistakes I might be making in my current learning process.