4 ms·
You just have to practice. I used to be quite bad at it, but I've improved greatly. Here's what I recommend: start with a specific topic -- maybe HashMaps, Gra
by salmonfamine 4y ago
You just have to practice. I used to be quite bad at it, but I've improved greatly.
Here's what I recommend: start with a specific topic -- maybe HashMaps, Graph Problems, Dynamic Programming, Greedy Algorithms, whatever. Start with the easiest problem on Leetcode for that category and work your way up to a "Hard" problem in the same category. It helps build a mental "muscle" for that type of problem, and it will be easier to activate that "muscle memory" whenever you have to brush up on Leetcode again for your next round of interviews in the future.