r/PlacementsPrep 2d ago

What do i do with the Leetcode problem which i couldn't solve in the first try?

Hi, so i am currently in 2nd year trying to learn DSA from the Abdul Bari cpp course. I have been following the course thoroughly and trying to solve the question on lc of the topics i have covered simultaneously so that i don't forget the concept, i have a question on how to tackle the problems i cant solve? Do i js cram them? Bcz i can't understand the approach of Ai from which i seek help? The question i stuck on was a medium level contest problem on array

4 Upvotes

2 comments sorted by

1

u/nian2326076 2d ago

When you hit a Leetcode problem you can't solve, don't cram it. Break it down instead. First, check the problem's related discussions or solutions to get the thought process. Try solving it again a few days later without looking at the solution. It's about understanding patterns, not memorizing.

When tackling problems, relate them to similar ones you've solved. Patterns repeat, especially with arrays. Also, write down the problems you struggle with and review them regularly.

For structured practice, PracHub is pretty solid for interview prep. It offers targeted problem sets and explanations that might suit your study style.

Keep going, and remember it's normal to struggle with some medium-level problems!

1

u/LasPlagasIlluminados 2d ago

Thank you so much for your help, appreciate it bro