Struggling to Solve Data Structures Problems on Leetcode

0
8
Asked By CuriousCoder93 On

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

Answered By Coder_in_Training55 On

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.

Answered By TechieTurtle17 On

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.

Answered By ProblemSolver99 On

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.

Answered By ExerciseEnthusiast42 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.