Can you give an example? I found only memorizing key ideas is the way to go, as opposed to trying to solve whole problem in your head, which gets tedious
For example, I was learning Manacher's algorithm and I directly put the link to the corresponding Leetcode problem into Anki. Set your minimum interval to 1 day and just follow whatever Anki tells you to study. You don't need many cards to memorize the problem solving techniques, my entire probability deck has under 150 cards and half of that is concepts. It turns out the human brain is pretty good at generalizing from a few problems.
Make sure you don't put every problem you encounter because the review workload will get very heavy very fast if you do that. Only put the challenging ones or the ones you get wrong.