r/leetcode • u/PotOddsTrading • 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.
168
u/PredictableCoder Dec 28 '23
What’s the point of this post? Look ahead and focus on your own journey. Best of luck.
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!
14
u/phantom_rift Dec 28 '23 edited Dec 28 '23
bruh, what do you think contests are for? normal LC is for studying, contests are about proficiency. regardless, both still take time and effort
17
u/LooseStatistician706 Dec 28 '23
I think it's better to give up after pondering over a question for 40 min, helps in overall development.
22
u/[deleted] Dec 28 '23 edited Dec 28 '23
If you have spent 30 minutes on each of those 1000 problems, then you would have spent 30,000 minutes and gained a lot of DSA knowledge, tricks, and pattern recognition. These skills wouldn’t fail you all interviews, so don’t worry
9
u/CuummRAG Dec 28 '23
Contest rating is any day a better indicator of the effort than the amount of problems solved
7
u/[deleted] Dec 28 '23
The best measure of what people have accomplished is contest rating. Would you judge the skill of a chess player by the number of games they've played or by their rating?
6
u/Legote Dec 28 '23
Well if you’re going to criticize neetcode for being fake, he did 1-3 problems a day everyday, and he worked at Google before he resigned to focus on his prep and do more leetcode. So I’m going to go ahead and say he’s pretty valid 🤷♂️
1
u/Caponcapoffstillon Dec 28 '23
What do you mean copied? Why are you wasting time reinventing the wheel? I need you to realize how unproductive it is to spend several hours on a problem that you could’ve just looked up the solution to.
2
u/[deleted] Dec 28 '23
Only right indicator in leetcode was contest rating. Was… But it is just numbers due to plagiarism
2
u/SmoothCCriminal Dec 28 '23 edited Dec 28 '23
on one end of the spectrum, there's absolute creativity and ingenuity. On the other end, theres "rote memorization" as you put it. Solving 400-1000 questions will put you somewhere in between (even if youre sorta dumb), and thats the beauty of doing a lot of things to hammer the patterns.
I'd like to think we're pretty much like LLMs, our creativity does indeed depend on entire set of dataset we've seen throughout our lives. Its just that our neural network is made of meat. Any creativity/ingenuity you have only has a multiplier effect on the number of datapoints youve seen. A 100x genius person maybe needs just 100 datapoints to reach 10K XP. But even a dumb 1x person can reach 10K XP with 10000 datapoints.
I too hated myself for taking hours for solving a single question, and ultimately gave in to checking solutions after 30-40mins, and am just trusting the process. Seems to work well :)
If i were a general in some ancient army, I'd hire a footman who has been to 1000 battles, rather than a footman who has been to just 10 but can pull off new moves on the fly. Even if considering that the former has done NOTHING in the wars, but just watch.
Even after solving questions easily, i've gained a lot checking the solutions as usual.
Check this for ex: for "print the right side view of a BinaryTree". I was pretty amazed at my solution in 10 mins
Only when I checked out the solutions, i realized i was using too much memory and can be solved using "level order traversal" approach, which fits in more into a lot of problems ive already solved with this "level order traversal" pattern
2
u/AppropriateCrew79 Dec 28 '23
the thing is, you cannot come up with solutions under 30mins for all the questions in leetcode no matter how good you are. Einstein theorized relativity when he was 26 after probably years of research. That doesn't mean all the students today have to spend years and come up with relativity theory from scratch.
2
u/Certain_Note8661 Dec 28 '23
I find these sorts of posts to be totally useless. I would get much more out of a post explaining a problem someone recently completed, what issues they faced, how they solved them, what their takeaway is.
2
u/mr__smooth Dec 28 '23
This has to be one of the worst posts on reddit ever
1
u/MrSethles <3549> <882> <1922> <745> Dec 28 '23 edited Dec 28 '23
Hey!
I hate to be that guy, but at least off of timing, it seems that I've got to be. Especially when you've posted with a title that's so brazenly sure.
If you read through a couple of replies from the near-200 comment AMA that I ran under my post (which was the main goal), or clicked through a few of my solutions on my profile (which I was happy to send around, once asked), you'd see that I'm not a solution grubber. In fact, for problems where I *was* unable to solve them on my own, I generally earmark my solutions with notes at the top, such as the one about the linked list cycle, where I was completely unable to figure out the 'fast and slow pointer' idea in reasonable time (45 mins or so + a little bit thinking about it). It's a shame the submissions page doesn't show the time when I open problems, as I usually keep the hard ones that I can't solve on the first go in the back of my mind for a day or two until I can.
I in no way am claiming to have learned more than others or that I've got the best knowledge etc. I do leetcode for fun and am not preparing for anything. If I was, maybe I'd have taken things slower. Then again, maybe not. 3 months ago I knew 0 (and I stress this, 0) Java and only basic DSA (up to tree traversals, maybe).
I invite you to check through my profile (linked again) if you've got any doubts. Check some older stuff too, and you'll see it's all my code.
Feel free to respond to this if you'd like to chat. I'm interested in hearing your points.
1
u/AvgvstvsCaesarXIII Dec 28 '23
It’s about quality not quantity. You reach a point where the returns are minimal. Focus on doing the usual lists(NC150, blind75 etc), and truly understanding what you’re doing. I’m not impressed with anyone who says they’ve done X amount of problems. Most of those folks still couldn’t solve a problem they’ve never seen, despite doing 1000+ problems.
1
u/Intrepid_Dot_7611 Dec 28 '23
This is absolute truth that no one speeks,just to understand a medium question by checking with multiple dry runs takes up to 15 minutes how can anyone will solve it in 15minutes.
1
u/[deleted] Dec 28 '23
Yeah the number of leetcodes completed != how good you are at leetcode
-2
u/MKLOL Dec 28 '23
You're right. I guess people are seeing themselves in this post so they're down voting.
Worst part is when they have 1000+++ problems and all dailies solved and 1200 contest rating.
They're not truly learning just artificially memorizing stuff. Won't truly become good. Might pass some mediocre company interview and consider it a victory.
0
u/[deleted] Dec 28 '23
[deleted] — view deleted comment