Hacker News new | ask | show | jobs
by hal9000xp 2927 days ago
Here are my advices on how to train yourself for algorithm/data structures interviews:

1. Others already recommended to practice solving problems on LeetCode;

2. While solving these problems don't spend too much time if you got stuck, look for answer or discussion after hour or two;

3. If you feel weak on some topic (e.g. dynamic programming), try to read up related material, lecture notes, familiarize yourself with classical problems on this topic;

4. Even if you solved problem, look for other answers. You often be surprised how much shorter and concise solution can be;

5. Read some books on algorithms like Skiena or Papadimitriou. I don't recommend you to read Knuth or CLRS unless you have strong math background. Skiena or Papadimitriou are much easier to read for beginner. Also, separately, I do recommend the book - Programming Pearls by Bentley;

6. Once you practised for two months or more, start taking mock interviews on Gainlo;

7. Enjoy algorithms and solving programming puzzles. Enjoying algorithms is a must because if you really want to master it to the Google interview level, it may take years;