Struggling with Medium-Hard Leetcode Problems?

0
17
Asked By CleverPineapple42 On

I'm finding it really challenging to tackle medium to hard problems on Leetcode. I've successfully worked through the Striver SDE sheet mostly by following tutorials, but now I'm focusing on solving problems by topic. Whenever I come across a new medium-hard level problem, I get stuck and often spend a lot of time trying to figure it out. What structured approach should I take to practice so I can confidently solve these problems on my own?

3 Answers

Answered By TechieExplorer77 On

To be honest, I work in software, and I often struggle with even the easier problems. I'm planning to revisit DSA as a whole and focus on finding problems that are specifically relevant to certain topics. I think it's better to take my time with them without looking at tutorials until I really work through the solution and explore optimization. The struggle helps your brain adapt to similar problems in the future.

Answered By DataNerd102 On

When it comes to Leetcode, half the battle is figuring out exactly what's being asked in the problem, and the other half is determining which structures or algorithms make sense. I recommend focusing heavily on understanding the problem first. This critical thinking is a valuable skill to have. Just remember that while doing Leetcode problems is challenging, being able to solve medium-level ones is enough for most jobs—don't stress too much about getting to high-end problems.

Answered By CuriousFox89 On

A good strategy is to concentrate on one topic at a time, like Dynamic Programming or Graphs. Spend some time revisiting the logic behind a few problems you've already solved. Then, try tackling new problems without checking for help for 30 to 45 minutes. This way, you'll start to recognize patterns on your own over time.

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.