3 ms·
Leetcode is ok. My issue with it is some of the prompts are kind of confusing. Some of the solutions are often crowd sourced. Someone will probably post a so
by wombat-man 5y ago
Leetcode is ok. My issue with it is some of the prompts are kind of confusing. Some of the solutions are often crowd sourced. Someone will probably post a solution in your language of choice, but there's not always a good explanation.
I much prefer the book Elements of Programming Interviews. It has an accompanying git repo with tests that you can debug in if you really need to. The solutions usually discuss a couple possible approaches. Following their study guide, I learned about Java data structures that I don't normally use and saw a good variety of problems. Ended up getting a job I was shooting for.
Ultimately though, it's not so different from leet code, although I think it is a more effective use of time. I think it is a good idea to do some practice just so you are ready for this type of question.