3 ms·
I have never heard of leetcode. Mind expanding more on the process? Did you just do practice problems? Is there any reading around each question? Does it offer
by creek567 9y ago
I have never heard of leetcode. Mind expanding more on the process? Did you just do practice problems? Is there any reading around each question? Does it offer the optimal solution etc?
- praneshp 9y ago> Does it offer the optimal solution etc This is one of the drawbacks; No, it does not. The judge has a timer so you have to write code that is reasonable in runtime and space, but nothing telling you if the answer is the most optimal one possible. IMO, the ideal way to use it is to get a subscription, and then use the best feature: sort by company. At first glance, you'll notice that facebook asks very different problems than google. Once you select a problem, try solving it, and then make sure you click through to the forums and read the highly voted discussions. In many cases, I didn't find a more optimal solution, but picked up a lot of python tricks that made the solution elegant, etc.
- stevenwoo 9y agoleetcode is similar to the hackerrank website, it's a set of about 700 programming problems where one can enter a solution in almost any programming language applicable (there are some SQL queries). There is also a discussion forum for each question. Occasionally there is more writing by the problem creator with alternate solutions listed. I've found a few companies use the hackerrank for initial programming tests, I kind of dislike hackerrank because alot of the hackerrank tests rely on stdio input equivalent in each language which in some languages I never use in real life, i.e. I never use the Java command line prompt except for fooling around on hackerrank and some of the questions on hackerrank are ridiculously obtuse - I've skipped to the discussion and find that is the number one upvoted type of comment more than once.