Hey everyone, I'm currently a college undergrad and I've been trying to tackle some data structures problems on Leetcode. However, I'm finding it really tough to solve many of them on my own and often have to resort to watching the solutions. I've barely done much practice so far and it's really starting to frustrate me. What strategies can I use to get better and overcome this hurdle?
4 Answers
Just keep grinding it out! When I started, I was in the same boat. I watched solutions too, but over time I learned that the more you push through without looking, the stronger you'll get. Maybe try jotting down ideas and creating flowcharts before jumping into coding; that helps clear up your thinking.
Before jumping to code, take it to paper first! Write down what you understand, sketch a flowchart, or outline pseudocode. The actual coding part is usually the easiest once you have a solid plan. It’s frustrating at first, but keep at it, and you'll start seeing improvement.
How much programming have you done before tackling these problems? If you haven’t mastered the basics, consider reviewing those first. Stuff like variables, loops, and functions are crucial. Once you're solid on that, dive into the basics of data structures and algorithms. If you're still stumped, jot down your thoughts on paper and look back at your textbook for guidance.
It's totally normal to find this tough at first! Think of it like starting a new sport; you won't run a marathon right away. Be patient and give yourself enough time with each problem—sometimes it takes hours or even days. Take a break if you're stuck, and only check the solution after you've really tried your best. You'll get better with practice!
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically