The LeetCode Fallacy

  Переглядів 339,568

NeetCode

NeetCode

Місяць тому

🚀 neetcode.io/ - A better way to prepare for coding interviews
Checkout my second Channel: / @neetcodeio
🧑‍💼 LinkedIn: / navdeep-singh-3aaa14161
📷 Instagram: / neetcodeio
🥷 Discord: / discord
🐦 Twitter: / neetcode1
🎵 TikTok: / neetcode.io
"Sappheiros - Fading" is under a Creative Commons license (CC BY 3.0) / / sappheiros
Music promoted by BreakingCopyright: • 'Fading' by @Sappheiro...
#coding #neetcode #python

КОМЕНТАРІ: 504
@NeetCode
@NeetCode Місяць тому
Damn I almost forgot I even had this channel. 🌍 The Roadmap: neetcode.io/roadmap ✏ The practice page: neetcode.io/practice 🚀 My second YT channel: youtube.com/@NeetCodeIO 🔥 Pro neetcode.io/pro
@a55tech
@a55tech Місяць тому
what tool he using to draw like that? wacom?
@Kitsune_Dev
@Kitsune_Dev Місяць тому
does neetcode have Lua?
@NeetCode
@NeetCode Місяць тому
@@a55tech Paint 3D with a mouse
@Ahmed.Shaikh
@Ahmed.Shaikh Місяць тому
@@NeetCodeA mouse?! How is your drawing motion so fluid with a mouse? Or is it a trackpad :0
@HemanthKumar-bl1yt
@HemanthKumar-bl1yt Місяць тому
bringup more
@codewithAyii
@codewithAyii Місяць тому
You had me at the Naruto Chunin Exams reference
@rawallon
@rawallon Місяць тому
He had me "don't forget to like and subscribe"
@Himanshh_29
@Himanshh_29 Місяць тому
He had me "Just improve your problem solving skills and you'll be able to pass every coding interviews."
@agamersdiary1622
@agamersdiary1622 Місяць тому
Which episode is that? Would like to watch it
@bubeast
@bubeast Місяць тому
It is right in the beginning. According to google, episode 24. Since it's not that much, I'd recommend watch from the 1st episode. It is really fun!@@agamersdiary1622
@bluetorpido5929
@bluetorpido5929 Місяць тому
I always think back at that when Im thinking of making ethical decisions contrary to my motto.... man our parents where right it does influence us😂 🥷 ✌️✌️💨💨
@jamesisaacson6414
@jamesisaacson6414 Місяць тому
I am a farmer and will try memoizing instead of memorizing from now on 😅
@ryzikx
@ryzikx Місяць тому
farmers are smart
@Mglunafh
@Mglunafh Місяць тому
Mathematicians are in shambles
@msl9927
@msl9927 Місяць тому
​@@Mglunafh Can confirm. Mathematician here, in complete shambles
@plaintext7288
@plaintext7288 Місяць тому
​@@Mglunafhas a student of applied maths and informatics I too am in complete shambles
@mayankb9
@mayankb9 16 днів тому
Bro just get his point
@houz8507
@houz8507 Місяць тому
I just learned how multiplication works from this video😂😂
@juanmacias5922
@juanmacias5922 Місяць тому
"things they don't teach you in school" :D
@muhammadfarhaan6951
@muhammadfarhaan6951 Місяць тому
​@@juanmacias5922just community school things
@asagiai4965
@asagiai4965 Місяць тому
Wait you just did? I feel bad for you and your school system.
@baetz2
@baetz2 Місяць тому
Check out the Karatsuba Algorithm as well, it' even funnier
@achyuthraosathvick45
@achyuthraosathvick45 Місяць тому
I was too shy to put this up😂
@lys1805
@lys1805 Місяць тому
Thanks a lot for your effort. I looked at your blind75 solutions and coded them along the way, I even used the debugger sometimes. After 2 weeks (left time to ensure I dont write off of memory), I tried to solve the problem on my own. If I could figure out the patterns, it was a matter of 10 mins to code. Sure I had some edge case issues but now I am in much better shape. Your videos explain the logic very well. I used to feel very bad when I was doing this for the first time and couldnt see the solution right away. But as you said, this is the learning phase. After finishing the 75 problems for the 2nd time I was able to solve others by applying the patterns. And got confidence along the way. I am not interested in joining faangs, I study for my own knowledge and to become a better interviewer. A tip for folks: the best time to prepare is when you are not looking for a job.
@belphegor32
@belphegor32 Місяць тому
Blind75* . Well done, bro!
@lys1805
@lys1805 Місяць тому
@@belphegor32 thx, I fixed it
@a55tech
@a55tech Місяць тому
TC?
@vikaspathak2411
@vikaspathak2411 Місяць тому
Wow that's amazing man. How much time did it take for you complete the blind 75 twice. How many hours you spent per day.
@evanilsonp.8183
@evanilsonp.8183 Місяць тому
I'd like to know if we only do leetcode if we are aiming at FAANGs.
@DavidM_603
@DavidM_603 Місяць тому
Thanks for putting some light on this. I'm working on turning my coding hobby into a career change, and I love trying to solve difficult problems (LC or otherwise) on my own. Sometimes I need a little reminder that my goal is learning, not just rediscovering the wheel. Gotta stay balanced.
@benjamindavis2475
@benjamindavis2475 Місяць тому
Lots of companies just need help with basic shit. Good luck!
@sapientum08
@sapientum08 Місяць тому
there are some wheels you will never be able to reinvent on your own.
@ismailahmad9597
@ismailahmad9597 Місяць тому
@@sapientum08 inventing wheels is a great way to get a publication, but using wheels is a great way to get a job
@rafehuynh7482
@rafehuynh7482 Місяць тому
5 months ago, I couldn't solve any easy problems, but after 5 months of Neetcode, I can finally solve easy and medium problems by myself
@compton8301
@compton8301 Місяць тому
Well done. Wow. What was your daily schedule like?
@krox477
@krox477 Місяць тому
How do you not get bored?? How do you stay motivated
@jewelsonmyjeans
@jewelsonmyjeans Місяць тому
Discipline@@krox477
@product_of_august
@product_of_august Місяць тому
I still can't solve easy solutions without looking at solutions. But with anything if you do not enjoy or at least show up to it almost everyday try to find something where you can When I was training BJJ it was 4-5 times a week (some days were rough) but you still show up@@krox477
@ujjawaltyagi8540
@ujjawaltyagi8540 Місяць тому
After 5 months bro declared me a farmer :)
@Isagi__000
@Isagi__000 Місяць тому
Would appreciate if you do more of videos like this. They really help.
@nesogra
@nesogra Місяць тому
FYI, if a farmer didn’t have great problem solving skills they would be bankrupt very quickly. They are not a group you should underestimate.
@ljes16
@ljes16 Місяць тому
Not to mention calculating risks through various variables that are present like the weather and possible diseases. A farmer is a little bit of "know-it-all" kind of profession.
@txorimorea3869
@txorimorea3869 Місяць тому
Survivor bias. The "developed" world hates farmers. Simple as.
@Ebani
@Ebani Місяць тому
​@@grapesurgeon Wait, you think farming used to the easier in the past? Lmao! 🤣
@brentchance1589
@brentchance1589 Місяць тому
@@Ebani Farming was easier in terms of expectations. You were just expected to diligently work your field and not be lazy about it. Modern day, you're expected to use modern techniques and approach the problem of farming with some degree of scientific and engineering discipline. You can still make a miscalculation in either environment and turn out a poor harvest. The difference is that in the past nearly every other farmer wasn't doing any better so you were still generally competitive, while today, you'd go bankrupt.
@blablabla7796
@blablabla7796 Місяць тому
2 points you might be missing: while it is true that farming isn't easy(it actually is pretty hard), the barrier to entry to farming is a lot lower than it is for mathematics. How long do you think it will take for someone and what percentage of the population do you think will be somewhat productive as a farmer? I would say the vast majority of people will probably be somewhat competent in farming in a couple of years. Contrast that with mathematics, to be able to actually do anything useful with it, you need to study it from elementary school to high school (and that's being generous). Even then, the vast majority of people just end up "not getting it". Secondly, I think you're underestimating how hard it is to do something so abstract like math. Have you ever seen the meme of some dude having difficulty doing fractions, but as soon as it's related to something like pizza and beer, it suddenly gets a lot easier? That's the same thing with farming and math. Farming is a very concrete task. You know what you want to do, you can see what you want to do, you can see it as you're doing it. Math is way more abstract. There isn't a way to check what you're doing is right unless you have a teacher or a calculator with you. And that's only arithmetic. I'm an engineer and the amount of engineers that get by without using math is astonishing to me. I'm one of the lucky few in my workplace that actually "gets it" and actually do end up using math for tasks. It's a surprisingly rare skill even amongst the "intelligent".
@purdysanchez
@purdysanchez Місяць тому
Ironically, the majority of programmers can't solve those problems off the top of their head in the 15 - 45 minute time window under extreme pressure. Coding questions are fundamentally broken. You end up with people who memorize the top questions but have no idea about calculating time complexity or system architecture. They end up turning an API into 10 microservices even though their system only has to support 1000 users per hour.
@antdok9573
@antdok9573 29 днів тому
ouch. i can feel that past experience of yours. i saw the same crazy microservices get-bankrupt-fast scheme
@JTBanks
@JTBanks Місяць тому
This is 100% true, at least in my life. My final exam for Data Structures and Algorithms I failed 2 coding problems, professor asked to hand write pseudo code, I tried, but it was a mess whether this was due to nervousness, or just not believing in myself, I honestly can't say. We were taking the exam 1 on 1 via Zoom call (this is 2020, covid). He took a long look at my solutions and plainly asked me how would I solve it, in plain english, so I told him, and he walked me through writing that out in a pseudo way. I knew how to solve it, I just needed him to ask me questions. So, TLDR, never doubt yourself, and IMO always learn how to solve a problem, intimately, no matter what. Even if it's simple, it's all building blocks and it continues for the rest of your life. Super long comment, but Thank you Neet, you've made a big difference in my life!
@benxu9272
@benxu9272 Місяць тому
Damn i have my data structures and algo final exam this afternoon and i've just been studying for it by practicing enough problems so that i will have technically "seen" any type of problem that appear on the exam (this is how i've done well in every single exam my life).
@sravankumarb
@sravankumarb Місяць тому
That sounds like an awesome teacher, btw.
@siopao3671
@siopao3671 Місяць тому
w professor
@krox477
@krox477 Місяць тому
You had good professor
@maxwellscott-bz8bf
@maxwellscott-bz8bf Місяць тому
Example of why compsci CAN be flawed, and how good teaching bridges it.
@Sulerhy
@Sulerhy Місяць тому
How to learn efficiently is more important than how much you learned
@zorzem3290
@zorzem3290 Місяць тому
How do you learn efficiently
@muhammadfarhaan6951
@muhammadfarhaan6951 Місяць тому
Answer the question now?
@asagiai4965
@asagiai4965 Місяць тому
Wrong. It should be both. Learn a lot and learn efficiently.
@aakashs1806
@aakashs1806 Місяць тому
​@@asagiai4965 but each person has a capacity.
@goshochernii
@goshochernii Місяць тому
@@zorzem3290im curious also
@RandomNoob1124
@RandomNoob1124 Місяць тому
It’s insane how you really made something out of what you love doing the most. 🙏🏾💯
@jessicakoch2331
@jessicakoch2331 Місяць тому
seriously love your videos, you are so good at explaining everything! I love your pro membership btw…you’ve saved me in coding interviews during this layoff period
@itsjustramblings
@itsjustramblings Місяць тому
Interviewing in tech has become a job in itself. And for live coding interviews you need to have memorized syntax and problem patterns so well that you have to make it look like you are seeing the problem for first time and act as if you are coming up with a solution on the spot. If you answer quickly then too bad 😆. Tech is mainstream now so whatever rules few prominent companies set the rest blindly follow. 10 years back, one would have attended different formats at diff companies a whiteboard interview at 1 company, a phone coding interview at another and in-person coding at some others.
@rishirajasekaran6055
@rishirajasekaran6055 Місяць тому
I don't think it's necessarily true that you have to act like you're seeing it for the first time. Even in interviews I've conducted or I've seen other people conduct, nobody is taken by surprise if you are familiar with an optimal solution. The important bit is to be able to write correct and clearly understandable code. If you prematurely write an optimized algorithm whose solution you're not comfortable with, you're likely going to bomb the interview.
@robertlemiesz7143
@robertlemiesz7143 Місяць тому
I don't think this is the correct way to think about this. You don't need to memorize the syntax and pretend you are seeing it on the stop. I'm and interviwer and have completed something like 200 interviews in my career. The biggest thing we are looking for is your thought process. Do you understand the problem deeply? Can you have a conversation about it? Are you stumbling around basic coding skills like writing a for loop... or does it come naturally to you? Does this person overcomplicate things to try to impress me?
@ruideli8684
@ruideli8684 Місяць тому
life is so fucked when you need another job to find a job
@luisoncpp
@luisoncpp Місяць тому
If you solve the question too fast, the interviewer will come with another one. The goal is to keep you talking (pretty much as a hostage negotiation 🤔), not check if you solve the problem or not
@itsjustramblings
@itsjustramblings Місяць тому
reg the 101's of interviews and its purpose that few comments brought up - I get the basics and expectations of interviews since i have been a interviewer too. Some further thoughts 1. In a live interview, anyone who hasn't heavily practiced leetcoding will go though a process of assumptions and errors to come to a correct solution. without knowing the pattern, i'm not sure if a leetcode medium-hard can be written with a minimum complexity nlogn solution in 30-45 mins. 2. Most interviewers are too rigid and some even go on to infer negatively if you refer syntax ( ** syntax here doesn't necessarily mean how to write a for loop or looking up basic ds functions) - language specific details like default behaviour of an in-built methods or methods/arguments. If you have to remember such details on top of your head then it means as a developer you are not allocating enough space for higher complicated problems. Interviews are all about testing your understanding of cs concepts and not about how fast you can recollect some details that you can easily look up or learn with some effort.
@ancientgearsynchro
@ancientgearsynchro Місяць тому
Generally when I can't get a problem and I have to look up a solution, I type up a pseudo-code of what I think I need to do and compare it to an actual result. If I atleast got the theory down and I am just missing a method or something, that is good, cause I was on the right track. If I was completely off then that is when I have to actively remind myself of what this stuff does cause I fundamentally messed up.
@ankansur1878
@ankansur1878 Місяць тому
@@WORK-qw7vsp and c?
@kebab4640
@kebab4640 Місяць тому
Funny how this came when I needed it. Thanks NeetCode. People like you make this world easier for newcomers like me.
@dibyajyoti_ghosal
@dibyajyoti_ghosal Місяць тому
What an amazing start! I'm sure 99% didn't know why that multiplication worked, including me until today. :D Thanks for it.
@zzzzzzzzzzzzzzzzzzzzzzzzzzzz__
@zzzzzzzzzzzzzzzzzzzzzzzzzzzz__ Місяць тому
Yeah damn, amazing video. It’s one of those videos where the moment it’s said it’s like knowledge you’ve had all along, but you were the one to come along and help us rediscover it 😁 Thank you!
@krat9707
@krat9707 Місяць тому
After solving enough problem, a person would automatically skip that logical thinking part as the brain wouldve automatically memorised it due frequent usage of those concepts... That's why people say to grind daily
@Luxalpa
@Luxalpa Місяць тому
While this is true, the main reason you should grind daily is because because it normalizes the process which reduces (and mostly eliminates) anxiety.
@thalisonamaral1642
@thalisonamaral1642 Місяць тому
That's not only memorization, it's building intution by familiarizing yourself with patterns
@imsleepy620
@imsleepy620 Місяць тому
I always thought people invented the algorithms to solve these problems on the fly before I learned that they were just applying what they had memorized and practiced many times before. The same is applicable for things like math olympiads, too.
@NihongoWakannai
@NihongoWakannai Місяць тому
Some of these algorithms took very smart people a very long time to prove and formalize. No one can come up with that in 30 mins
@imsleepy620
@imsleepy620 Місяць тому
@@NihongoWakannai Definitely. Took me way too long to learn this, though.
@sukapow
@sukapow Місяць тому
​@@NihongoWakannaiNo, it's intelligent people not "smart people" who made those algorithms. Smart people used intelligent people algorithms to make money like Jeff Bezos who made Amazon. He studied computer science and he used his knowledge from school to make a book e-commerce website from using intelligent people program languages like html css js and ruby. Naruto is a good example describing smart people. If you take Naruto vs Neji. It was about Intelligent vs smart. Neji was the a spoil intelligent kid who parents brainwashed him to think he was superior and smarter than anyone else because his parents was feeding him lessons and knowledge. Naruto grow up thriving into a world with no parents. But Naruto showed him his place where intelligent people aren't like smart people. Smart people find shortcuts to beat intelligent people.
@NihongoWakannai
@NihongoWakannai Місяць тому
@@sukapow bro I did not expect the business bro jeff bezos talk to switch into the weeb naruto talk, you really hit me with that mixup
@kujaa1831
@kujaa1831 Місяць тому
​@@sukapow Gotta give credit to the inventors though. Most of us don't wanna be the ones figuring out how algorithms are designed and proven to work, we just wanna use the tools to create whatever software that we want. It took these geniuses hundreds and thousands of hours of heavy thinking so that we can learn it within an hour or 2. So no one's "beating" each other, and I don't like how its gotta be a competition when the fact is, we wouldn't know about these things if it weren't for the intelligent.
@atrus3823
@atrus3823 Місяць тому
This is shockingly grounded and reasonable advice for UKposts 😂
@DeathSugar
@DeathSugar Місяць тому
Some problems doesn't have direct solution considering it's background. I met some some tasks (under String category) that had some insane solutions using prefix intersection counting which is no way deductible without proper background. So, yeah, strongly agree.
@MrSzybciutki
@MrSzybciutki Місяць тому
You are damn right with the thing you described as an intersection of memorization and problem solving and not falling into extremes. This is exactly how they prepare kids for math olympiads or algorithmic contests. If you didn't attend one of those places, you can read interviews with people who scored top in those contests (look those up, they are extremely insightful) and sure, they will always tackle problems, usually giving them more time than an average person, but they won't go to the extreme to hang on it until they solve it. Which is the biggest mistake of people who try to prepare for those things on their own. You could tackle way more problems in the meantime and be more productive instead of headbanging a wall. And if you want to win those contests, you need to be first and foremost productive and on schedule. You can't do that effectively on your own. You need tutors, mentors to help you prod you just enough in the right direction. The tutor won't usually give you the answer straight away. But they know personally their pupils so they will just give you just enough hints for you to narrow down the discovery stage of the problem solving for you to go into the right direction saving you hours of low-productive work.
@pixelforg
@pixelforg Місяць тому
Took me too long to realise this, I used to think that all those top coders at codeforces were so great because they could come up with the solution of problems outta nowhere, until when I realised that a lot of it was just identifying the common patterns they've seen across multiple problems. Ofcourse there's problem solving as well but I thought only problem solving was required, I had no idea about identifying the common patterns, maybe if I did I'd atleast reach Candidate master level there
@addone9871
@addone9871 Місяць тому
As a person who competed in high school olympiads and prepared purrely on their own. I can without a doubt say that your claim is not correct. With the evolution of online resources it's quite easy to find interesting and challenging problems for yourself to efficiently improve and perform better in competitions. Giving hints is often counterproductive and gives young students a false sense of knowledge. I've seen a lot of students performing "well" in lectures only because of being given hints and then "underperforming" at the actual competitions because of a lack of effort. What people call "memorization" is simply the fact that once you have solved a large amout of problems, what becomes "easy" to you is probably "hard" for others. Coming back to the faang interviews, problems asked at them are mostly straightforward, if it happens to not be a trully hard problem, the interviewer will probably guide you in the right direction. It's important to follow hints and communicate well.
@kapfereq
@kapfereq Місяць тому
polska😮
@_dreamymc
@_dreamymc Місяць тому
OMFG YOU JUST GAVE ME PURPOSE TO LIVE MY LIFE AGAIN
@adib4361
@adib4361 Місяць тому
Frrrr, i was about to give up, not just coding but give up on life in general 🥲🥲
@theillusionist3795
@theillusionist3795 Місяць тому
@@adib4361 Dude, are u ok? Please tc
@PoojaDutt
@PoojaDutt 17 днів тому
Fantastic video! Loved how you broke down the actual concept of problem solving in an easy-to-understand way :)
@adrianvazquez4633
@adrianvazquez4633 Місяць тому
Yo, I really appreciate your content. What software do you use to draw out your intuition to each leetcode problem you go over?
@milseq
@milseq Місяць тому
Finally someone! Thank you!
@g.4279
@g.4279 Місяць тому
It really is good to probably to read a textbook or algos course before going hard on leetcode. I tried to learn straight by programming, and I did end up reinventing a few famous algos, which I guess was a learning experience but it consumed a lot of time. Some problems are borderline impossible if you don't know a lot of the fundamental CS algos.
@slinkybaton
@slinkybaton Місяць тому
This is a good video. You teaching us how to turn a multiplication problem into an addition problem really breaks down how math isn't complicated unless you make it so.
@byduhlusional
@byduhlusional Місяць тому
Yes, patterns are much more important than solutions themselves. I've gotten to the point where I can solve almost any easy problem I encounter and about half of the medium problems I encounter thanks to you.
@archardor3392
@archardor3392 26 днів тому
But can you solve them in O(N) instead of O(N**2) or O(log N) instead of O(N)? The initial solution is easy, its the optimized algorithm that gets me every time...
@byduhlusional
@byduhlusional 26 днів тому
@@archardor3392 for easys, yes. I feel like they're more a test of your DS knowledge than techniques. mediums and up are more technique focused
@joelwillis2043
@joelwillis2043 Місяць тому
The idea of memorizing core things and identify use cases obviously extends to many other fields, constructing a math proof is the obvious one. Another is modern experimental techniques in sciences. Many ground breaking new techniques are usually extensions of a classic experiment that exists in your intro textbooks that most students ignore.
@daffy1981
@daffy1981 Місяць тому
yeah, very good point, for too long I was on that green buble, and just tried to solve a problem with having no idea how to approach it. Even when knowing how to approach it - there's plenty of work in an interesting problem (and most of the real-world ones)
@yashvarshney8651
@yashvarshney8651 Місяць тому
brilliant analogy
@UserSo4reUsu75ry
@UserSo4reUsu75ry Місяць тому
Unfortunately, when I solve the next 10 problems, I forget the details of how I solved the previous 10. Yes, I remember what there was a pattern, but the problem is that each pattern often has several modifications, those very details that I forget and cannot reproduce again two weeks later. I also noticed that if a solution is unintuitive for me, then even having analyzed and understood the solution, for my thinking it still remains unintuitive due to which neural links do not appear and my internal garbage collector removes it from memory ))
@benjamindavis2475
@benjamindavis2475 Місяць тому
Repetition is the key
@ohhellnooooo8233
@ohhellnooooo8233 Місяць тому
Keep going. It takes 6+ months or years
@angeldude101
@angeldude101 Місяць тому
This is why I prefer to be able to rederive anything I'd need, because my memory is too unreliable to trust with memorization. Repetition leads to boredom, which leads to loss of focus, which leads to forgetting.
@Lojdika
@Lojdika Місяць тому
Same. Memory is waaay to fickle. Repetition makes me feel like a cripple. But is ok, people with better hardware attention stack and neural DRAM can have the jobs. I'll be doing maintenance on their work for years.
@yurimiva
@yurimiva 23 дні тому
Maybe you could try to write some sort of documentation exploring the theoretic part of it and if there would be more efficient solutions.
@uncletrashero
@uncletrashero 8 днів тому
I tried for a job once, they gave me a single test to complete in a couple days it was supposed to be to get a thing to move to another thing and then back, and the instructions were to not give it discrete instructions on how to do a given thing, so you couldnt just say "turn left, then walk 4 spaces, then right, then walk 2" etc etc. I figured out a way to do it algorithmically where it figured out if it was capable of moving in any direction from its current position at each step and explored the area until it found the thing it wanted, and then explored until it found its way home (marked by a specific set of circumstances) It worked beautifully, the pawn moved around pretty weird but it would do as tasked (get the object, return to home) The company takes a week to get back to me and they say "we arent exactly sure what you did here." and im like, well what did you expect from the test then? and they basically explained that everyone just turns in a program that gives discrete instructions. so i say well thats the basic rule of the test is to NOT do that.. and they were like "well but everyone does." and im like "and you still hire them?" and they say "well yeah we just want to see how hard they try." and i refused to work for that company.
@ahxMad
@ahxMad Місяць тому
Hi Navdeep! I discovered your UKposts channel months ago and LOVE it. I started my coding tutorial channel last month and curious about the gadget you use for on-screen writing if you don't mind sharing!
@SaaSLTDDeals
@SaaSLTDDeals 22 дні тому
This video is a game-changer! Problem-solving skills are key to acing coding interviews. Focus on core algorithms and pattern recognition. Great tips!
@kantorobo7718
@kantorobo7718 Місяць тому
This is the year where I will finally master DSA I have been on and off with leet code for the past 2 years. But never a consistant effort I just fall off after 1 or 2 months. Only to start again at the beginning. I no longer want to be disappointed in myself. This will not be for interviews, this will not be for getting a better job. I genuinly want to become better at programming and understand the craft.
@johnpaul4301
@johnpaul4301 Місяць тому
Getting good at leetcode, i.e DSA questions will NOT make you a better programmer lol. You will almost never use anything you learnt from doing leetcode questions in your job. It's just a convenient way for companies to quickly test you. Being good at leetcode != Being a good programmer
@Bromon655
@Bromon655 Місяць тому
You're just gonna give up again like the last 2 years.
@angeldude101
@angeldude101 Місяць тому
If you want to get good at programming, then pick a project, and start working on it. If you get stumped anywhere, look up what stumped you and read until you understand what the results were trying to tell you. Do not copy and paste the snippets they give; read the text around the snippets so that you can translate the snippets from whatever language or framework they were originally written for into the language or framework that you initially chose to write in.
@stxnw
@stxnw Місяць тому
if you’re in top colleges, most people say this and they can actually pull it off. it’s hell.
@ChaitanyaBhardwaj89
@ChaitanyaBhardwaj89 Місяць тому
Uploaded 1 day ago! Bro we needed you before openAI. It's still a helpful perspective I must say.
@moeinhasani8718
@moeinhasani8718 26 днів тому
i feel like we are becoming like LLMs ourselves. just retrieving the answer from the knowledge base without actually having logics.
@marcoaraujo9446
@marcoaraujo9446 Місяць тому
Nice video ❤ It burst my motivation for keep going
@amir78989
@amir78989 Місяць тому
that multiplication explenation was awesome.
@leoliao666
@leoliao666 Місяць тому
Thanks! I now understand more about the trick to tackle leetcode😮
@gerydony6531
@gerydony6531 Місяць тому
what software are you using for this presentation? (where you are writing stuff)
@swarnimvarshneya6944
@swarnimvarshneya6944 Місяць тому
Your vids are really amazing man. Im just a beginner but your vids help me alot
@akashanand917
@akashanand917 Місяць тому
During my college i have always been the guy who felt guilty on seeing the solution. I got good at problem solving, but couldn't solve many medium-hard interview problems because they surely required some memorisation of a pattern, which i couldn't invent at the moment.
@vedantmahajan4185
@vedantmahajan4185 Місяць тому
Thanks bro for such beautiful piece of content... From last to years I am banging my head against wall(you know what I mean) but can't solve questions on my own... Now some questions can be solved... Your intersection approach (in this video) is what I was desperately searching for. Thanks a lot a lot alot brother 😅😅
@TwoTeaTee
@TwoTeaTee Місяць тому
I've been saying this since CP wasn't even main stream!
@PoolMedia
@PoolMedia Місяць тому
Amazing content, thanks!
@adityashekharsingh2669
@adityashekharsingh2669 21 день тому
Best reference to target problem solving
@lucasmoratoaraujo8433
@lucasmoratoaraujo8433 Місяць тому
Spot on! The myth of learning by thinking and then solving seems deeply rooted within our culture. Learning is doing. Mastering is keeping at it. Thinking is, for the most part, done involuntarily by the brain, once it has the ingredients needed for the connections to slowly take place. It makes achievements sound a little less exciting, and our ideas of freedom and rationality somewhat less colorful, but it is how it is, and it works. Nice video! ❤
@AbhinavGupta-eb2pl
@AbhinavGupta-eb2pl Місяць тому
Thanks, really helpful for someone who thinks that I am not good at problem solving.
@Francisco-zi2qg
@Francisco-zi2qg 24 дні тому
Man this is it, thank you.
@NguyenTran-eq2wg
@NguyenTran-eq2wg Місяць тому
Thank you for the awesome video!
@chrischika7026
@chrischika7026 Місяць тому
Mom wake up new Neetcode vid just dropped
@WaliKhan-lr3sv
@WaliKhan-lr3sv Місяць тому
Thank you so much love your videos
@saaah707
@saaah707 Місяць тому
100% correct. what i hate is, the people who need to hear this are the ones who basically just won't believe you when you say it. when students are trained from birth to fixate on "natural talent", they either give up altogether or they develop pathological methods for "learning" things like trying to memorize code line-for-line
@EMdragonKnight
@EMdragonKnight Місяць тому
It was very comforting to see the math example compared to algorithm
@AntThinker
@AntThinker Місяць тому
What manipulator do you use for handwriting?
@raghav9000
@raghav9000 Місяць тому
True bro
@rafik1968
@rafik1968 Місяць тому
8 month ago, I was afraid of taking the step to begin solving problem on leetcode. I was losing hope. Until i found your video that present your roadmap and neetcode. I started to follow the roadmap... Now i solved around 300 problems. Thanks not enough.
@lesterdelacruz5088
@lesterdelacruz5088 Місяць тому
Love your content, you bring to light ideas some knew but couldn’t articulate and others just completely miss. Sent a donation for support I encourage others to do the same, this is valueble content
@NeetCode
@NeetCode Місяць тому
Thank you so much 🙏
@drxp699
@drxp699 Місяць тому
my favorite video of all time, you saved me life
@viktoreidrien7110
@viktoreidrien7110 28 днів тому
Thank you bro, really really thank you
@groundcrewz
@groundcrewz Місяць тому
Alright, I am entering the game, it’s over for you guys!
@ripsky7586
@ripsky7586 Місяць тому
What are your thoughts on Devin ai?
@em_the_bee
@em_the_bee Місяць тому
I love how nobody even pretends to say "in programming" or "in your career", it's all "on Leetcode", "in coding interviews" :D
@whyareyoulookingatthislol
@whyareyoulookingatthislol Місяць тому
reminds me of how much of a racket standardized test prep is and how bad they are at determining competency
@opop2916
@opop2916 Місяць тому
best comment
@Crytoma
@Crytoma Місяць тому
Well said.
@paulojose7568
@paulojose7568 16 днів тому
Given the set of all problems in existence, there will be many subsets that share a pattern of solution. Memorizing them will help tremendously your problem solving skills, because your head will be full of different ways things could get solved. It is important to practice your problem solving before memorizing, but don't neglect the latter
@rasecbadguy5600
@rasecbadguy5600 28 днів тому
Do you think this approach also work with more dificult problems such ones codeforces or ICPC?
@dirtydan6960
@dirtydan6960 Місяць тому
Well that was the most aggressive explanation of multiplication i've heard
@ichigo9688
@ichigo9688 Місяць тому
Very well put.
@evancourtney7746
@evancourtney7746 Місяць тому
Re 3:05 transforming multiplication to an addition problem is called logarithms. From the tables 55 = e^4.007 and 32 = e^3.466. So, e^4.007*e^3.466 = e^7.473 an looking back at our tables e^7.433 = 1760 rounded to our 4 digit accuracy.
@hypnoticlizard9693
@hypnoticlizard9693 Місяць тому
Background music is a nice touch
@rmt3589
@rmt3589 Місяць тому
Me, only plan to code for fun, am gifted in pattern recognition(all eggs one basket), am too disabled to work. OP: It's just pattern recognition. Me: I...wanna do a coding interview. Maybe I could get a job in the field once I get better at it. Reason brain: No. Me: B-but! He said the magic words! He said pattern recognition. That's my thing! That's my ONLY thing! Reason brain: You have severe panic attacks and can barely English in interviews. This does you no good when you can't use it. Me: ...😭
@SoledadDelSol
@SoledadDelSol Місяць тому
Neetcode with another life lesson :)
@vinayk7
@vinayk7 Місяць тому
2:00 Seriously I didn't know the mechanics of why the method works, thanks for explaining
@guitarsNswords
@guitarsNswords 4 дні тому
WHere did you buy that shirt
@mecoboyable
@mecoboyable 15 днів тому
Hey Neetcode, I'm very interested on buying neetcode pro for life, is any discount coming? hope it is thank you
@ipizza9941
@ipizza9941 Місяць тому
First time I've seen someone reference the chunin exams in a leetcode video
@zomgoose
@zomgoose Місяць тому
Mesmerizing
@porixify2251
@porixify2251 Місяць тому
What software is the flowchart from?
@a7mdbest15
@a7mdbest15 Місяць тому
you are great dude
@kuldeepsaini460
@kuldeepsaini460 Місяць тому
can you please tell me about your mic stand please
@Takatou__Yogiri
@Takatou__Yogiri Місяць тому
i study in cse. but i don't learn anything from my college. our college has at most 30 students. but no one goes to college for class. so we don't even have a proper teacher in our college. so I learn everything myself. but when I started doing leetcode a month ago. i realized I need to learn math properly. so now I'm doing some youtube free course and reading some free pdf books. thank you for the tips.
@nammi895
@nammi895 Місяць тому
Me who memorized all solution & got into amazon 😅
@CaliburPANDAs
@CaliburPANDAs Місяць тому
actually tho? how long did that take you?
@nammi895
@nammi895 Місяць тому
@@CaliburPANDAs 8-10 months appx
@suriyakumar2376
@suriyakumar2376 Місяць тому
Bro just used bruteforce algorithm on himself
@anirudhbhat2978
@anirudhbhat2978 Місяць тому
Can u give the question list which u memorised please. Its gonna be real helpful for me
@nammi895
@nammi895 Місяць тому
​@@anirudhbhat2978 basically every LC question on this channel 😅 Plus all questions on LC discuss section for interview exp
@vladimirBarbarosh
@vladimirBarbarosh 13 днів тому
I realized this after completed a few dozens of problems. All them already had efficient solutions, and"my" solutions will not bet them (at least in efficiency). It's not because I'm not smart enough, but because all of them required different mindset, and different experience. I also notice that all efficient solutions of different problems was in invented by different people, doesn't it looks interesting? To summarize, don't reinvent the wheel. Your goal is to learn how to ride it.
@notintheobservableuniverse2594
@notintheobservableuniverse2594 4 дні тому
My strat was to try CF-1200 to 1400 without looking at the tags, and see the solution if I think my progress on the problem is negligible and I am stuck, then try to build why it was used. Initially some problems seemed magical, but randomly encountering similar patterns kind of reduces this feeling. I am stuck at 1700 CF, idk about Div-1. But to reach 1600+ I think this works fine. (required about 300 problems to reach there).
@TenzDelek
@TenzDelek Місяць тому
well explained
@reecej0nes
@reecej0nes Місяць тому
Just most likely failed a the second tech interview in the companies process because they mad you go full screen with camera on and if you tabbed out the test was auto submitted, using your phone was also not allowed. I failed because I couldn't remember the proper syntax for using subsets, so I've failed because of something I could easily look up the documentation on. Very disheartening
@BrooksMoses
@BrooksMoses Місяць тому
Sorry to hear that! As someone who's on a hiring committee that reviews interview results, I hate when that happens. I really miss proper in-person whiteboard interviews, where if something like that came up, you could just ask the interviewer, "what's the syntax for subsets again?" and they would answer you and you could keep going without even having to take the time of looking it up. They'd then maybe make a note of "candidate had to ask about subset syntax" in the report, but then on the review side we'd look at that and say, "Okay, they had to ask about a couple of common bits of syntax across four interviews, but that's a minor thing and they're clearly good at problem solving and they know when to ask questions rather than getting stuck, so on balance they did fine."
@SnowCompanion
@SnowCompanion 21 день тому
When i was interviewing, i always felt that giving hard coding questions was more about seeing how they felt actually working through problems with you rather than the actual answer. Cause the reality is that you're probably gonna be on the same if not similar team. I'm curious how it is today if that mindstate shifted for interviewers.
@Cawnnak
@Cawnnak Місяць тому
Make sure you understand the problem. memorize the fundamentals only. the rest is connecting the dots.
@Agent56000
@Agent56000 Місяць тому
THIS IS THE WAY
@ankansur1878
@ankansur1878 Місяць тому
can you make a video about the core algorithms like dfs, binary search, memoization and so on?
@IsaacC20
@IsaacC20 Місяць тому
@0:06 "Just solve some [basic] linked list questions over here and some tree questions over there, and then you'll be able to derive the Edit Distance algorithm yourself just like this Soviet mathematician did in the 1960s". Agreed this is absolutely ridiculous - because chances are high that this knowledge won't be useful where you're working; direct experience (i.e., domain knowledge or knowledge of the tools used on the job) is more valuable. BUT, you have to admit, knowing that this arcane compsci sh*t algorithm exists will allow you apply it when the occasion presents itself. And at least knowing about it and how it applies to a LC problem is better than not knowing it at all. BUT, this knowledge is only useful for solving a technical that masquerades as a business problem. It has no value in assessing a candidate's potential.
@IsaacC20
@IsaacC20 Місяць тому
@3:13-4:46 Yup. Spot on.
@user-lh1pk4fr7y
@user-lh1pk4fr7y 11 днів тому
Basically try not to make the model underfit by expecting to learn by thinking. Take the training data and learn. You'll feel dumb but remember you're getting better eventually. Eventually this will become a habit and you'll see patterns in problems you had no idea about at first.
@SimEon-jt3sr
@SimEon-jt3sr Місяць тому
But all multiplication is just addition of a number to itself to the number being multiple.... Just like how division is just subtraction
@HenockTesfaye
@HenockTesfaye Місяць тому
Bro! Yes!
@javgroman
@javgroman Місяць тому
Great vid...and great shirt!
I Did 500 Leetcode Problems. But You Only Need THESE 75.
7:21
Internet Made Coder
Переглядів 11 тис.
My Brain after 569 Leetcode Problems
7:50
NeetCode
Переглядів 2,3 млн
Повістки у Києві: «Яке право вони мають забирати всіх мужиків?» #війна #мобілізація #військові
00:41
Слідство.Інфо | Розслідування, репортажі, викриття
Переглядів 1,7 млн
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 6 млн
ЧТО ДЕЛАТЬ, ЕСЛИ НЕ ХВАТАЕТ ДЕНЕГ НА ВОССТАНОВЛЕНИЕ ТАЧКИ?
47:52
I quit Amazon after two months
10:09
NeetCode
Переглядів 550 тис.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Переглядів 469 тис.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Переглядів 380 тис.
Coding Interviews in 2024 Be Like
1:43
Mohin
Переглядів 33 тис.
Why Most Programmers DON'T Last
18:56
Healthy Software Developer
Переглядів 217 тис.
8 Design Patterns EVERY Developer Should Know
9:47
NeetCode
Переглядів 968 тис.
How Senior Programmers ACTUALLY Write Code
13:37
Healthy Software Developer
Переглядів 1,2 млн
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Переглядів 418 тис.
Never install locally
5:45
Coderized
Переглядів 1,6 млн
Повістки у Києві: «Яке право вони мають забирати всіх мужиків?» #війна #мобілізація #військові
00:41
Слідство.Інфо | Розслідування, репортажі, викриття
Переглядів 1,7 млн