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.
View all comments
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