
How to do leetcode questions?
Hey leetcoders,
I am a beginner in competitive programming. I am able to do some leetcode easy questions. And I get a headache when I start doing medium level questions. I am scared to think of hard level questions.
Now questions to people who are experts and are easily able to solve medium and hard level questions. What do you do when the solution does not click. Do you go and look for solutions online? Youtube videos? What will be a good approach to find the solution?
And most importantly how do you retain those tricky logics in your memory for a long time? I tend to forget things easily.
One interview, 1000+ job opportunities
Take a 10-min AI interview to qualify for numerous real jobs auto-matched to your profile 🔑
Something that helped me - Striver A-Z dsa sheet. The answer is you can't solve what you don't know. You need to first learn before being able to solve. What I like about striver is the systematic order of solving problems. No current problem needs a future concept to solve. They can be solved based on new knowledge or what you've already studied before.
Step 1 - watch the video to understand the algorithm.
Step 2 - now that you know the algorithm, try to code that algorithm into a solution.
Step 2.1 - if you still can't solve, keep watching to see the code magic or check the python solution.
Step 2.2 - mark for revision, try to solve again after a set amount of time.
Step 3 - move to the next problem, repeat.

Will try your way , First relax and take paper and pen . Try a way , stupid way to reach the solution. Then enhance it for half hour , don’t utilise much more time and see answers. Repeat and beat the best . May be this way is good , thanks

I have been watching videos to understand the logic and then solving the questions. I was wondering if others do the same. I felt guilty and under confident many times that I am watching solutions and then I am doing it. But Looks like this is the way to go forward.
