3 ms·
Is Project Euler better than LeetCode for "gut checking"? I've probably done 300 or so LC, and do some every week, mostly as an insurance policy for technical
by tempsy 7y ago
Is Project Euler better than LeetCode for "gut checking"?
I've probably done 300 or so LC, and do some every week, mostly as an insurance policy for technical interviews if I ever opportunistically interviewed in a short time frame.
- n4r9 7y agoThey're geared towards different goals. LC is for interviews: solving small scale problems of the scale you might get asked in an interview or come up against every day in a software job. PE is more of about curiosity and personal intellectual development. It asks something that you might never have heard about and might never see again but is often very interesting, and will stretch your ability to develop your own algorithms or to apply learnt methods to unfamiliar scenarios. I'd recommend LC to someone who has an interview in a month, PE to someone who has one in a year.
- steev 7y agoI would say for technical interviews you should stick with LeetCode. Project Euler is more mathematics oriented.
- tzs 7y agoSpeaking of LeetCode, don't overlook the discussions for each problem. I think a lot of people just solve the problem, and then move on to another problem. In the discussions many people post their solutions, and those often have bugs in obscure cases that the LeetCode grader doesn't hit. Another common thing is for the posted solutions to always give the correct answer, but miss the time or space constraints that the problem statement asked for. I've found that reviewing those other solutions to find those issues to be quite instructive. Also, there will sometimes be a solution in there that is better than mine, which is also instructive.