But you don't know what is at the other end of the spectrum you are on. What if someone knows these algorithms and has very good recall. Perhaps it becomes easier to reason about and mutate these ideas in their heads. Come up with new things, or do algorithmic things faster.
I still think problem solving with newly gained knowledge is the way to go for retaining things longterm, but if you aided that process with something like Anki for meaningful connected information, you'd certainly be better off compared to someone who just does the former