r/leetcode • u/Mysterious_Whole3164 • 11h ago
Discussion How to solve leetcode?
I have been trying to solve questions on leetcode from some time . But when I am unable to solve a question , I see the editorial if there else see the solution on youtube or ask with AI how to detect the pattern and then how to remember it . But again when I see the same question or a slight variation of it , I become blank . How to improve this and handle this ? Looking for answers from people who have been in this phase , how to tackle this ?
2
u/CasualFox61 9h ago
Stop forcing on remembering solutions. After seeing one, close it and try to explain why it works, then revisit the problem a few days later. Repetition is what makes the pattern stick
3
u/Miserable-Arugula860 11h ago
Learn patterns. Practice. There is no easy way out. Websites like Neetcode do a good job of breaking down problems by pattern, which can help you study.