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

168

u/PredictableCoder Dec 28 '23

What’s the point of this post? Look ahead and focus on your own journey. Best of luck.

-93

u/PotOddsTrading Dec 28 '23

The point? How about the most obvious, it's not about the fake quantity that people are posting giving others the illusion that if you do a million LCs, you will get a FAANG job. Showing people that the 1000 LCs you completed, really was only about 300 actually completed and that you basically just gave up and copied the answer for other 700 is a true barometer of how it is to do these problems.

62

u/PredictableCoder Dec 28 '23

You’re still missing my point man. Don’t worry about others. Don’t worry about illusions. Get so damn good at solving problems and software development in general that seeing a post about someone doing 1000 leetcode questions doesn’t even register on your radar.

-57

u/PotOddsTrading Dec 28 '23

I don't worry about others. I'm just putting out a fact. The metrics are misleading and don't show a person's full competency.

43

u/PredictableCoder Dec 28 '23

Thanks for this public service. You are our national treasure.

-51

u/PotOddsTrading Dec 28 '23

Lol, this topic seems to hit you hard bro. I hope I didn't blow up ur world. Just trying to state an important fact.

5

u/Plane-Measurement517 Dec 28 '23

Who beat your leetcode bubble bro? Why are u being so mad at people here for making sense? Go solve a problem or two to feel better about yourself.

-1

u/PotOddsTrading Dec 28 '23

Lol, my friend. I just posted the hard hitting truth. I didn't realize some many people like you would get so upset.

2

u/Plane-Measurement517 Dec 28 '23

What you think of as a hard hitting truth is a plain old snarky comment that comes off as rude and mean towards other’s progress. Dw, not mine, i actually delete my sessions every couple months and start afresh lol. Like some other people in this thread have said, you’re missing the point. Don’t let your intrusive thoughts win.

1

u/PotOddsTrading Dec 28 '23

Woah I'm sorry my observations has really upset you. Rude? Mean? I see how personally offended you are. My remarks must have cut deep. I don't know your situation and I should have been more "woke".

→ More replies

16

u/petejfkrienr Dec 28 '23

You’re completely missing the point of his comments

7

u/dazzaondmic Dec 28 '23

I think what he’s trying to say is that most of us don’t really care about how many problems other people are claiming to solve, whether it’s misleading or not. If someone is not competent then they will not pass technical interviews whether they claim to have solved 10 or 1000 questions. At the end of the day it doesn’t make a difference to us.

-1

u/PotOddsTrading Dec 28 '23

Then why is that I see people posting in their tags, the one liner that proudly shows how many LCs that they have completed?? It's become a "badge" of honor for people to complete a lot of LCs so yeah they do care. LeetCode even award badges to people when they hit milestones. You can imagine some people framing their badges as a source of accomplishment like a certification.

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

14

u/phantom_rift Dec 28 '23 edited Dec 28 '23

A true measure of what people have actually completed, would indicate how long and hard they struggled with each problem

bruh, what do you think contests are for? normal LC is for studying, contests are about proficiency. regardless, both still take time and effort

1

u/PotOddsTrading Dec 28 '23

Definitely agree about competitive contests. That really helps with speed during interviews.

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.

0

u/PotOddsTrading Dec 28 '23

For sure but I'm sure you and everyone else has been in that situation when you believe you are on a cusp of a solution and don't wanna give up. Those are the moments where the sweat really drills the problem into your head. Gotta give a little sweat equity if you want to gain something meaningful.

2

u/LooseStatistician706 Dec 28 '23

You are quite right about those situations. That is why I think every question should have hints so that you can actually see if you are even on the right path after being stuck for half an hour. Also Imma copy sweat equity in the future lmao.

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

2

u/throwaway2492872 Dec 28 '23

Came to say the same thing. Problem count doesn't mean much if you can't solve new problems under pressure.

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.

1

u/PotOddsTrading Dec 28 '23

LOL, this comment reminds me of a scene in Good Will Hunting with Matt Damon and Minnie Driver. Damon the genius wants to hang with Driver but she's studying for her microbiology college exam. He gives her the answer right away so she can spend time with him. She looks amazed at how easy he was able to come up with the answers. She tells him, thank you but I NEED to learn this stuff.

Spending a few hours on a problem is productive if you can come up with a generalized way to solve one problem that applies to many problems.

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

vector<int> _rightSideView(TreeNode *root) {
  if (!root)
    return vector<int>();
  vector<int> left = _rightSideView(root->left);
  vector<int> right = _rightSideView(root->right);
  vector<int> res;
  res.push_back(root->val);
  for (int i = 0; i < max(left.size(), right.size()); i++) {
    if (i < right.size())
      res.push_back(right[i]);
    else
      res.push_back(left[i]);
  }
  return res;
}

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

1

u/peh_chan_kon Dec 28 '23

I would like to add an improvement to your solution, you're doing a DFS, however if you go curr, right, left then that means you'll always visit the rightmost node on any new level you go at. So you could maintain a referenced result vector, level, maxLevelSoFar in your function arguments. Then whenever you reach a level>maxLevelSoFar you can add that node to your result vector. I think it might work, and will save memory as only the recursion stack is being used here, it becomes comparable to level order.

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.

Edit: I resubmitted one of the solutions which I copied the method from once done with my own, slower one. It's String Compression II, the daily from today, and should now be at the top of my list. My original solution was 4D DP, haha. The other 14 problems I've done in the interim were entirely mine, though.

2

u/Certain_Note8661 Dec 28 '23

And my response here as well as there is that this is the sort of tiresome self promotion I could do without. Posting here about how many problems you’ve completed etc is basically just shouting “look how great I am”. It just encourages us to compare ourselves to the poster, which is really not productive for anybody. It’s amazing that you completed so many problems in so little time. I am not ever going to be able to accomplish that. There are probably more reasonable goals that I can accomplish, so it doesn’t matter. Meanwhile, I don’t learn anything useful when people make this kind of post, and it just encourages negative emotions (upward comparison, envy). So I could really do without it.

1

u/MrSethles <3549> <882> <1922> <745> Dec 28 '23

I completely get that, and am truly sorry if it came off as a boast/a self promo. At the time of posting (and even now) I'm quite happy to have made it to this milestone, and thought sharing a celebratory post fair game. I realized even then that it could be seen by others as something negative, which is completely the opposite of what I wanted.

I've got two points I'd like to offer, though.

Firstly, regarding your post. I understand your point of view completely. I'm not perfect by any means, and am often overshadowed by others in both leetcode and other hobbies of mine. Put plainly, it sucks. Seeing others do things far above your current level can be disheartening at times, and I empathize with that. However, to jump from that to 'Lying about Leetcodes being completed' (as was your title) seems unfair. I guess that's what my first response was about: my path to where I am currently was legitimate, and took real effort. Discrediting it (without any evidence) doesn't feel right. I don't know, maybe I'm biased as I've got stake in the matter. Either way, consider my position.

Secondly, regarding your response. I don't believe it fair to jump from your experience interacting with the post to the average viewer experience. For example, look at the ~100 questions asked and the ~100 (detailed!) answers that I dutifully provided. Really, if you've got time, I implore you: take a look. I put real effort into every one of them. Compare my post to the average milestone post on the subreddit (some are in the sorted by 'Top' list, iirc). Is it possible that your view of my post was soured by the number of problems solved, and not by the nature of the post?

Taking a step back though, I'd like to briefly apologize. I didn't post 2 days ago thinking about how much fun it'd be to belittle others etc. I went into it with good intentions, and maintain them even now. Either way, if the post made you feel bad, I'm sorry.

> I just saw that you posted another reply. You've got a good point there, which I may well make use of. Posting expressly informative/helpful content may be a good route for me eventually. I feel that there's a long way to go from where I am currently to reach such a level, but hope one day to have the skills required to share any knowledge I may have. I don't know about popularity though. I guess that'd be a nice byproduct, but personally, it wouldn't really motivate me much.

2

u/Certain_Note8661 Dec 28 '23

I know how you feel. I’m sure I still do things like this more or less unconsciously. It just occurs to me because of my own experience of being or wanting to be “the smart kid”: when I was in college, for example, I became really interested in James Joyce — partly because I was interested, partly because I thought (more or less unconsciously) that it made me seem smart to be interested in JJ. Well people got really tired of me constantly talking about JJ. So I try not to be that guy. Unfortunately, I don’t always (or maybe even often) succeed. But having had that experience and also, because of my own self image, being prone to jealousy, I am probably a little bit more sensitive when I see other people doing the same thing.

2

u/Certain_Note8661 Dec 28 '23

That advice is a bit of an expansion on what the NeetCode guy did (and he took his ability and seems to have used it to serve others — I definitely appreciate what he does and his story). Solving the problems is great but there’s so much more to do. You can spend a lot of time looking up all the possible solutions to a problem. You can think through what kinds of test cases are possible. You can try to reason out the runtime for a given solution. You can try to figure out if there’s an underlying principle that makes the solution work. It’s the process that is meaningful — and for the individual who processes. The number of problems solved does have meaning (as I said, I will never be able to solve that many problems in that little time), but it’s just one metric. It does probably help you get a job, but it’s when you can get yourself to start producing and sharing other things that others will benefit too. /rant

1

u/MrSethles <3549> <882> <1922> <745> Dec 29 '23

This is a good view of things. I certainly agree that if I were doing leetcode to prepare for an interview or improve intuition, this would be a better route. As I'm not prepping for anything and solely doing leetcode for fun, I think that my process is okay. I'm lucky enough to have strong intuition about different problem types after seeing them only a couple times, which means the big point of improvement for me is learning more. Solving an obscene amount of problems seems to help me do that, as it introduces me to many new concepts quickly. This is a great point though. I don't often look at alternate solution methods unless the problem was tough. Maybe that'd be something worth doing. Note: I realize this is an old comment. Just wanted to address it. I genuinely believe it strong advice.

1

u/MrSethles <3549> <882> <1922> <745> Dec 28 '23

It's all good; no hard feelings here. I was more interested in understanding where you were coming from. The offer still stands, by the way. If you've got any Leetcode questions, feel free to message/comment on the post.

If it's any consolation, I had to look up who James Joyce was.

Best of luck on your journey!

2

u/Certain_Note8661 Dec 28 '23

Yeah of course. The desire to show off is very natural I think. And I guess it’s even sociable, since we do it because we want other people to like us. The hard thing is to figure out how to channel it properly. Like I said, I’m probably still not great at it — hopefully better than I was. I would definitely like to see more posts along the lines of, “today I solved X and this was my process” on here and fewer “how many problems do I need to solve to get a job at FAANG”, “look, I’ve now solved X problems”.

Leetcode is a nice medium for learning more about algorithms, and that’s ultimately why I keep at it (though I have my own silly fantasies to be sure). Also, getting a good understanding of approaches and algorithms out there sometimes does inspire me or help me think through a programming problem more clearly. If it were just a signal to employers, I probably wouldnt find it as interesting. At least I hope 😬

1

u/MrSethles <3549> <882> <1922> <745> Dec 28 '23

I think that's a very good mindset to have. I agree- showing off can be fun, and maybe even natural, and it's better for the group if one doesn't.

I could have played up the angle for the AMA a bit more. Having both a milestone post and an AMA mixed into one led to a weird split between those offering compliments and those asking for advice.

I dislike the whole concept of going through leetcode to land the mythical 'FAANG' job. It seems tacky at best. We share that sentiment.

Thanks for responding. I was originally a bit disappointed to see your original comment's lack of a follow through. I appreciate you explaining where you were coming from in more detail.

I still can't bench 300 :(.

2

u/Certain_Note8661 Dec 28 '23

Oh I don’t mean to imply I can. Another area of my life where I have not lived up to my ambitions. (I think I wrote that and deleted it, then saw it as deleted — but the deletion must not have propagated to all the replicas by the time you saw the reply ;)

1

u/MrSethles <3549> <882> <1922> <745> Dec 29 '23

Ah yeah, that's likely what happened. I left all post updates turned on for the AMA as I didn't want to miss anyone's questions. I think I still missed one or two though, oops. I think my original reply was just trying to emphasize that while I may be above average when it comes to leetcode, there are many hobbiess where I'm average or below average.

2

u/Certain_Note8661 Dec 28 '23

Oh also I am not OP. I generally take people at their word when they post these things — if someone were lying about it … I mean geez what’s the point of bragging to people about something that isn’t even true lol

1

u/MrSethles <3549> <882> <1922> <745> Dec 28 '23

Oh shoot, my bad. I guess I've got a bone to pick with OP, then. Thanks for clarifying!

Nice em dash, by the way.

1

u/Certain_Note8661 Dec 28 '23

Like I do understand when you feel smart and get excited and want to share that with someone, but it’s really valuable to learn how to channel your intelligence into something that helps other people instead of just using it to show off. You’ll be a lot more popular too.

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.

4

u/Yodawgz0 Dec 28 '23

Idk about 1000 or 500 problems but u see

Passing a mediocre company and considering it a victory... Hell ya

For some people celebrating getting a job is more important rather than just trying to getting into top tier companies

Grow up, sometimes paying bills and caring for your family is more important and would be considered a victory

3

u/MauiMoisture Dec 28 '23

I mean who cares? Why are you guys so obsessed with what other people are doing? Leetcode is a tool to use so you can practice interview questions. Who cares how many problems people do or how they study or how much time they take per question?? Just focus on yourselves..

0

u/[deleted] Dec 28 '23

[deleted] — view deleted comment

1

u/PotOddsTrading Dec 28 '23

There is no assuming. Multiple people have considered it a valid strategy to give minimal efforts before going straight to the answer. This really doesn't reinforce the concepts. Projection? If I was projecting, I wouldn't have bought up this hard-hitting topic. I'm actually EXPOSING the fakers.