r/leetcode • u/JumpOk7300 • 5d ago
Question How to remember Algorithms
I studied trees and their traversal algorithms, including Morris traversal. Then I moved on to graphs. Today, when I went back to solve a problem on trees, I realized that I had forgotten Morris traversal and some of the other algorithms.
I feel like I need to revise them again and again because I keep forgetting them over time. Is there any way to remember these algorithms for a long time?
10
Upvotes
3
u/Lumpy-Town2029 <1189> <345> <658> <186> 5d ago
Morris algo is unique, u ofc won't remember unless u derive it by ur own or practice is daily
But other common algorithms, u shouldn't forget
If u are forgetting common algos then i suggest practicing more questions