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
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.
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.
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
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