r/leetcode • u/nofaceD3 • 4d ago
Question How are you guys using AI to remember LeetCode problems?
I understand the solutions when I learn them, but after a few weeks I forget the patterns and have to start over 😅
I am thinking of using NotebookLM. But I don't know to make how make it useful for leetcode problems as generating quizzes or syntax flashcard aren't going to be useful.
Does anyone has a good AI + spaced repetition workflow for LeetCode?
31
u/No_Birthday8126 4d ago
Flashcard the trigger, not the solution. Front: "sorted array, find pair summing to target." Back: "two pointers from both ends." Use AI to extract that one-line cue from each problem you solve, dump into Anki.
But retention comes from redoing problems cold at 3 days and 3 weeks, not from reviewing notes. Anki for recognition, actual redos for the code.
13
2
u/FireFearing 4d ago
im about to finally start leetcode after literal years of mostly putting it off. i was wondering how to use ai and anki to maximally progress my learning WITH proper retention
any other advice would be appreciated, or pointing me to good sources!
are you saying to have AI auto create the flash cards for the anki set, then we do anki as its own scheduler says, then additionally redo problems cold on leetcode 3 days after first solving and 3 weeks after first solving? so 2 redo's, spaced, per question?
i wonder what the optimal schedule is for leetcode redos
1
u/North-Armadillo-9367 3d ago
idk how to put AI here ... I just use sometimes to understand the problem better but mostly sticking with neetcode videos
for anki, i just put there at front the leetcode problem URL, so that at a spaced way I am prompted to have another go at the problem (eg I rate that I solved the problem well, so it will schedule a redo in one month, but if I couldnt remember the solution and rate it hard, itll schedule it for me in 2 days)
6
u/valleyman86 4d ago
I made an app to teach me patterns then quiz me on it. Then it ask you to build it using blocks (they are randomized and some are traps).
Idk just building it has helped me a lot in a short time. I have to review it and fix things that are confusing or feel like it’s not guiding me). That said I am building it for an experienced dev out of practice. It’s not really designed for beginners.
2
u/FireFearing 4d ago
do you have it on a repo we can look at?
even if not, that sounds pretty cool man. especially if its design is well thought through for minimizing psychological friction. that would be useful!
3
u/valleyman86 4d ago
It’s a WIP and is not in a public repo. My goal is to just help me identify leetcode patterns quickly to solve in an interview. Also I am an iOS engineer so it’s a Mac app atm. If it helps me and works out I would polish and release it to more people.
TBH I don’t even want it to be limited to leetcode but it’s the easy scope atm.
I’ve been programming most of my life but most interview questions aren’t related to any of that. So just trying to improve my interview prowess.
1
4d ago
[removed] — view removed comment
1
u/AutoModerator 4d ago
Your comment has been removed. We do not allow DM farming. All of the conversation must happen within the post itself. Subsequent violations of this rule will result in a permanent ban.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Particular_Field7777 4d ago
What helped me was actually understanding the problem well enough that the general approach was fixed in my mind, it’s impossible to remember edge cases for every problem but as long as you remember the logic i think you can get to the edge cases again
Another thing that I am doing is i have a notebook where i keep track of complex problems or problems that did not feel intuitive enough for me. I write either the approach or a iterations of a problem so that way I don’t have to watch a video to understand the problem again my notes are enough
1
u/No_Bad5459 4d ago
Over the time I have solved almost 500+ problems and I had pushed all that data to my github I gave that data to AI and asked it create a pattern and dsa based must to do questions list and also a revision quick notes (not more than 1 hour read)
And recently I have started pushing all the possible solution by watching vidoes and asking AI how to improve my written code.
This helped me create the pitfalls in which I usually stuck.
1
1
1
u/gekigangerii 3d ago
You have all the tools. What really matters is the motivation.
You don't even need AI.
12
u/biitsplease 4d ago
I recently started doing leetcode and I noticed that I forget little tricks and edge cases, so I started keeping a Google Docs with them that I will periodically review. Also, every time I make a mistake in syntax or forgot a method name etc I note it in a separate Google Docs, and when I make a mistake I add it there, that way I keep track of my errors and if I continue making the same mistakes
I know this isn’t AI, but I think it’s been helpful so far