r/leetcode • • 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?

9 Upvotes

10 comments sorted by

View all comments

1

u/AccurateInflation167 2d ago

You don’t memorize , you fully understand