I run a startup and never really focused on interview preparation or algorithm practice. I know basic Python and can build the things I need, but my understanding of data structures and algorithms is limited. I'm looking for a structured way to start solving LeetCode problems and make noticeable progress over the next couple of months. Should I study programming and DSA fundamentals first, or start solving problems immediately?
4 Answers
LeetCode probably shouldn’t be your very first programming resource. First get comfortable writing code without relying on AI, then learn the fundamentals of data structures, algorithms, and time complexity. Once you understand concepts like arrays, hash maps, stacks, queues, recursion, and sorting, LeetCode becomes much more useful.
A practical approach is to follow a curated list such as NeetCode 150. Spend around 15–30 minutes attempting each problem, then study the explanation if you’re stuck. Afterward, close the solution and recreate it from memory. Use AI or other references to clarify the pattern, explain time complexity, and compare your approach with the optimal one. Don’t feel bad about checking solutions—recognizing common patterns takes repetition.
You can start solving problems right away while studying the theory alongside them. Getting stuck is part of learning, and many patterns only make sense after seeing several examples. Just avoid spending hours on a single problem at the beginning. Try it for a reasonable amount of time, read a hint or solution, understand why it works, and then implement it yourself.
I’ll try that approach and jump into beginner problems first, then study the underlying concept whenever I’m missing the necessary background.
Begin with easy problems involving arrays and strings, then move through hash maps and sets, two-pointer techniques, sliding windows, stacks, binary search, linked lists, trees, graphs, and dynamic programming. Keep a small notebook of patterns and mistakes, and revisit problems you couldn’t solve after a few days. Consistency matters more than trying to finish a huge number of questions in two months.

That makes sense. I know a few DSA concepts from my studies, so I’ll review the theory whenever I run into something I don’t understand.