Learning DSA with Claude Routines

Recently I had been using claude quite a lot, and came across their one of the feature that caught my eye, which is Claude routines — Claude routines are basically scheduled tasks that you can hand over to claude and it will run on behalf of you at scheduled time, or through even.
I already explained how you could use basic cloud routine that you can check in this article: https://medium.com/p/2775ceba5315
But today we are going to do somehting exciting, we will be solving an issue and try to build flow to inculcate habit in my life.
Problem Statement:
I am developer for long time but my DSA/Algo skills aren’t that great, means in terms of leetcode style. I never even had time to practice those and whenever I used to try — I would lose track or get lazy.
So what I though how nice it would be if I could automate this entire thing using claude routine. which means: how nice it would be if daily I get an update in morning where I get to learn new topic in this specific subject.
But wait a minute, how claude would know that this specific subject I already covered?
Solution
so for that I thought I should use a database like supabase where I could simply keep the log of question that was generated by claude, so it doesn’t pickup same question and think something new. So the flow would look like this:
Cluade runs my routine daily at 5 AM
It goes and checks my supabase database to see questions I have covered.
Press enter or click to view image in full size
Then it would take all that as context and make sure it doesn’t generate same question.
And after generating new question, it will simply update me on discord using discord webhook.
Press enter or click to view image in full size
And then update this new entry back to supabase
—
That’s all you need to do, if you wanna look at step by step tutorial — I went trough that mess in this video you can checkout this one as well.