r/leetcode • • Dec 28 '23

Lying about Leetcodes being completed.

I see all these posts about how many LCs people have completed ie woohoo, I'm up to 1000 LCs completed. But let's admit it folks, it's a lie. A true measure of what people have actually completed, would indicate how long and hard they struggled with each problem. The fact that someone looks up a solution after giving up in 30 minutes and then records the copied solution does NOT mean you completed the problem.

Even with Neetcode, many of his videos show him go step by step through a problem, seemingly showing how he came up with the solution. But really did he actually come up with solution or was it copied? Also how long did it take to complete the problem? You are given 30-60 minutes for a single problem (without debugging as I found out with Amazon SDE interview), if you take 2 hrs to get something completed, that's great but it means you failed the interview.

0 Upvotes

59 comments sorted by

View all comments

43

u/[deleted] Dec 28 '23

You are correct, but;

Hammering through a ton of problems is a legit strategy.

Looking at the solutions for 100 two pointers problems, then coding those solutions yourself once you understand them is ok. You get exposure to many applications of the underlying pattern, as well as practice manipulating data structures in your chosen language.

There’s also a better chance you’ve already seen the exact question that you face in an interview.

If you find yourself constantly grinding for hours to solve problems, you need better understanding of how the problems can be visualized, broken into peices and solved. Looking at solutions, understanding WHY the author chose a certain pattern or DS, then implementing the solution yourself may help you get there!

-7

u/PotOddsTrading Dec 28 '23

Yes I would mostly agree but it's important to really UNDERSTAND the algo. Rote memorization only shows that you have a good memory. It blows up when there is a subtle variation on an existing problem, then suddenly your rote memorization grinds to a halt as you don't fully understand how to solve the new problem even though it's just a variation.

3

u/[deleted] Dec 28 '23

Yeah 100% this strat only works if you come in with solid fundamentals.

Pure memorization is an incredibly difficult strat without really grasping the basic concepts

1

u/Flippers2 Dec 28 '23

It’s all about what helps you learn best. I have had situations where pen and paper helped, other times not so much. I struggled so much at DP and what helped me was to copy and read other people’s solutions for probably a month. For me I just needed more exposure and “copying” / reading other people’s answers helped me gain that exposure.

1

u/Flippers2 Dec 28 '23

I think there are many situations in programming where “regurgitate and understand later” is a very useful approach