The hard thing about leetcode for me isn't the problems, its being out of practice and having to grind it all over again, in case i get laid off again. You gotta keep practicing over and over again go be competitive. Its kind of like weightlifting,if you stop you lose strength,if you stop you forget how to solve some of these or you're not fast enough.
@@JoeTheisid rather be asked a coding question than some random quiz question on a library or database I used intensively for like 4 months and then mostly forgot about.
The "1 year" practice period is really illuminating. Thanks for sharing that! I was always wondering how I can be good at it in 2-3 months, the job seeking window. Now I see. It is something that I need to persist over 1 year.
Yes…we need to fill our toolbox with techniques…and when we learn a large amount of techniques, we can apply them to questions problems…the techniques are in the solutions of our practice problems
We know so much but in that moment of pressure our brain literally turns into a potato. The only way is to solve your questions with a timer or some external pressure. It can really help with increasing the pressure and also help us waste less time. if you cannot solve within the time period defined then go to the solution and do what the video says. Best of luck for your journey
Awesome!!! All software engineers ultimately got to this conclusion after a long period of struggle with LeetCode. You made the process more systematic
This was actually helpful.When I first started,I thought I was just dumb enough and could not solve any questions. Nobody ever elaborated on the fact you stated that in the beginning, you need to learn the pattern and logic of the solution.That's why I just gave up in starting itself.But now I understood and started my journey to coding again . Thanks to you.
Leetcode is barely even coding. It's just using a programming language to solve riddles. If you want to learn coding, write some scripts and build applications.
Great video. These are actual good tips. I can tell you really went through this process. A lot of videos tell you they did 500+ questions but how you only need the top 120. Good job reflecting on your process and sharing what worked well for you
Studying solutions that are done well is actually good advice. I've spent actual days trying to figure out how to solve a problem that I didn't have the knowledge to do. Instead of looking things up I tried to solve it on my own which got me no where and was a waste of time in hind sight. Studying a good solution for the problem taught me so much more than pulling my hair out for hours.
- Focus on learning solutions to develop intuition quickly. (0:42) - Create two lists of easy and medium tree questions to learn common solutions first. (0:53) - Learn new patterns by studying solutions to questions you cannot solve. (1:23) - Practice solving questions with split attention on platforms like Pramp. (2:49) - Follow a roadmap to expose yourself to the most common questions and topics. (3:12) - Practice on lower-level building blocks extensively, as they form the interview question foundation. (3:33) - Solve questions not for speed but to pass interviews consistently. (4:46) - Research and practice questions posted by others, especially for specific companies. (5:17) - Prepare for hiring manager rounds by researching the company and their engineering challenges. (5:44) - Allow ample time for consistent practice to improve interview skills. (6:08)
The first part really answered a question I had. I'd been sitting in front of a problem that I knew was dynamic programming, I had absolutely no idea where to start and didn't know if I should just learn the solution to that and move on. Thanks.
Got my first job out of college with a small company (25 employees or less) and have been there ever since (6 years this May), and I've gotta say, I absolutely dread the day I need to move on to another job with how ridiculous the space has become with often very long and drawn out interviews asking you to do leetcode questions on a whiteboard when you'll likely never use it on the job itself. Especially now that it's not JUST the FANNG companies employing these types of interviews - it's bleeding into the smaller lesser known companies as well and it's just insane to think you need to do some shit like this for a year (while currently being employed working full time) to pass some weird gatekeeper-like interview. I've been a successful software dev for just about 6 years now and can only imagine the amount of people who would be fully qualified for the job they're interviewing for just to be passed over due to a lack of leetcode grinding to the point where it's not really even about skill as a programmer and more about memorization. Memorization does not make someone a good programmer. /endrant
There it is. Someone finally said this and I want to say that it did really work for me. It is something i decided to do on my own while back ago and it helped a lot to get better at solving leetcode problems. Thank you for this video.
Wow I was shocked how few subs you have when i first saw. Love you energy! No typical youtuber bs saying pls comment and like etc but i did because of how authentic. It always seems like youtubers are having hidden incentives to sell a course etc (which is fine!) but there is always like a needy vibe behind a lot of things they say and it really just feels like you are just telling people really helpful advice for the sake of helping others! thanks!
Amazing video. Not only is the content great but the presentation also Learning PATTERNS is what I have realized is SUPER IMPORTANT because a lot of times for someone on the front end like my self it will be a strong array or map question and learning 2 pointers and sliding window is very important there as well as sub sections like static sliding window and dynamic sliding window What sucks about this though for a react dev Ike me is you also have to know react and a bunch of other front end related questions that have nothing to do with algorithms because some companies actually interview you for the work they do and if they don’t need high performance logic much then all that time spent on leetcode can be a negative if you didn’t also focus on the tech you program in daily
In the 15 years I have been using UA-cam this might actually be the one useful video when it comes to learning algorithms and data structures. When I was a junior I also fell in the pitfall of thinking I should be the one coming up with the brilliant solutions to every problem. It took me years to realize I just need to learn thought patterns from other people before I start solving complex issues. This video is exactly how I learned DSA. Don't be too hard on yourself.
tbh hearing it took a year of practising for leetcode to get good is incredibly disheartening to hear as an experienced software engineer. not because it should take you less but rather because that is a HUGE waste of a person's free time that should be spent gaining real experience in a real job. it's a sad state of affairs that newcomers (and often seniors) must be subjected to such arbitrary tests just to land jobs doing fairly standard cookie cutter software development work on the other end.
Congratulations, you passed 3 hard leetcode questions, beat thousands of other candidates for the job. Your tasks you will be doing you may ask? You will be writing standard CRUD apis to serve a basic web application.
These are foundational concepts in computer science and it’s never a bad time to be thinking about the time complexity and scalability of a process. I’d love to hear your idea for a fair test that can quickly determine a programmer’s abilities.
When I started leetcode a decade ago. I was trying to solve every problem in scratch without even knowing about data structures or algorithms. Then I realized there are people who spent their lives solving their problems and got phds and became famous. You cannot expect yourself to solve these kinds of problems in 30 minutes.
Everyone has their preferred way to prepare. If you are very short on time - this is indeed the best way. It’s the same approach you’d use to pass an exam. Study answers and should you encounter a similar enough question - you’ll be able to solve it based on your memory. The biggest downside here is that with each question, you are discarding an opportunity to improve general technical problem solving. My recommendation would be to try to solve the question yourself first, but time box it to 20-40 minutes. If you were not able to solve the question within time limit. Then look at solution, study it and find out what are the things that stood in the way of you getting the right answer - this is the important part. Did you get tunnel visioned on specific data structure? Did you not consider a multi pass approach? Did you make wrong assumption about optimal time complexity? Figure out a way to make sure this doesn’t derail you again. Then move on to the next question. With each new question your “weaknesses” shouldn’t be repeating themselves - if they do - it’s likely that you are not improving your general problem solving. You can still pass a lot of interviews based on good memory and pattern recognition. But ideally you want to train for more general problem solving too.
make sure you take enough and think enough tries to solve problem. If you cant still solve it, then move on to solution. If you just move on to solution, the thing is not every solution is same even the pattern is similar. The concept of approaching in each problem is different and thats the idea where you had to gain in hard way no matter what. Think enough and shake your brain enough to make your brain smarter
The advice was prob one of the best so far. After a year and a half in the industry i still cant solve a lot of them off the top of my head but its mostly the syntax and not the thought process of how I'm gonna get to the answer. My solurions are no where near elegant but i always have some idea how to start solving a problem. it just worries me whether or not id have to look up the exact syntax or how a particular class works.
I spent the first day totally sucking wondering if I'll ever be smart enought to solve complex problems (even though I took an easy one, I was rusty and tired). This has given me hope, I actually enjoy learning existing solutions, and we shouldn't try to re-build the wheel. Thank you!
Thank you for giving me permission to look at solutions first as a beginner. I will say, it works. There are definitely concepts that stick after i see the problem a few times and it becomes more intuitive. I also will use chatgpt and go through the code line by line and ask, what does this code mean and why is it important. Understanding the why helps me a lot.
I’m really happy I live in Europe and here in general companies don’t do this leetcode bullshit when hiring. The most important skill is understanding the requirements and raising concerns if they are problematic. Solving Leetcode problems will not help you with that.
I am a beginner and i just started learning DSA. Even though i am just at Big O, this video is going to help me a lot since this is how i originally planned my study schedule, so thank you for making it more clear for me! I know i have a long way to go but am all for it ✨🎄If you have any tips or motivation, kindly send me some ✨
The dev job market have gotten absolutely ridiculous when you have to practice leetcode for a year just to pass an interview, on top of the years you have spent to learn the skills you need to do the actual job!
I got my software engineer job and didn’t need to learn a single leetcode question. Now I don’t need leetcode at all because I have real world complex projects to showcase
One of things I don't see a lot but I feel is kinda important: to tinker with the solutions. This is how I approach: -> Try all approaches until I no longer can think of any way. If for the last 5-10 mins I can't think of a solution, I goto the solutions/discussions tab. The method name is mentioned in the heading of most solutions. Then, I tried to implement the same method on that question on my own. If I still can't figure it out, I view the code in the solutions tab. Copy-Paste, understand the code, dry-run and then tinker with the code. Tinkering is kinda important because it forces u to understand the code before changing anything. Even for questions I am not able to solve in contests, I do the same. It helped me no idea if it works for anybody else.
My problem is that I have a pattern where I grind leetcode for a few months, then I get busy with job/life or I lose interest as I am not actively interviewing. Again after a few months, I feel a bit guilty and I start again, back to square one. I have to solve easy questions and start the grind again. It's an infinite loop !
It was really nice , but one thing he missed was giving weekly and biweekly contest regularly . Belive me !! That's really really important. If you are able to solve 3 to 4 questions regularly in each contest then you are ready to crack any interview.
Thanku so much the best ever video about competitive programming Tips:- -first of all learning question approach -recognising the patterns ........ THANKU FOR UPLOADING THIS TYPE OF CONTENT .
To each their own but I prefer honing problem solving skills by always going in blind and staying blind. I don't even look at what other people did after I solved it. It's just about what you want to get out of it. Neither is right or wrong. Great video explaining what he prefers and how to be effective doing it. Also I don't think looking at solutions is a controversial take. I assumed that's what 99% of people did when they "grind leetcode". Try projecteuler instead!
This is actually how we learn most things in school. It took millennia for simple mathematical concepts to form our basic elementary curriculum. It would be infeasible to expect kids to come up with these concepts by themselves.
As a student just coming out of college I dont think its fair to be thrown leetcode problems for an entry level position. Its about what you can learn not memorizing problems under a timed clock. That being said I gotta play the game so after bombing an assessment for USAA I need to learn how to do the OA just to get in the door.
almost 30 questions in and I am tired, frustrated and at a all time low energy level. Just doing this day after day alone by myself with no one to talk to in hopes that I will get a job in this market, sigh. I dont know. Feel so tired. That and sleep is so bad sometimes.
As a beginner I took things differently, signed up and did contests on codeforces. I wasn't focussed on solving for rating but solving for developing skills. Somedays I don't even care submitting but trying to find ways to come up with solutions. As days went by the intuition came easier and these days I submit 3-4 solutions on div2. So, i guess things work different for each of us.
I've also started to crack interviews at this point and what you said is relatable. It took me also about a year to get good enough to crack DSA interviews with confidence but then there's LLD and HLD also to consider. That's more or less just dependent on learning some questions.
I guess when we start working on large projects our debugging and problem solving skills make our life easier so big companies are always going to rely on DSA and LLD , HLD solutions are completely depend on observation skills , experience and weather interviewer liked it or not 😏😏.
@@LetszGoo Also, note that sometimes, when a team is looking for a replacement, they might have additional requirements like Web, Android etc along with DSA and the other stuff. This is not the norm though. When companies start to hire in bulk again (hopefully next year), they'll hire in a more generic way. Nowadays, the replacement thing is most common.
@@aadityakiran_s how do you get interviews? ☠️ Due to recession not many companies are even hiring and I have done only 2 interviews so far... Also, I am more focused towards backend dev, so can you suggest how I can land interviews on this :(
I understand your recommendation of learning the solution first is an effective and faster way to level up.. however, trying to solve the problems on your own in the beginning and spending more time thinking about the problem and ways to solve.. will improve ones fundamental understanding and lay a solid foundation for the long term.. but your strategy I think can be followed for some one with a short deadline
I started leetcode just now and managed to solve half of blind 75 and around total of 100 problem and I feel like complete begineer still but I definitely can see myself improving
I've done a lot of interviews from the hiring side, I hate leetcode style questions because for the vast majority of jobs, you are not doing anything like leetcode questions. It's actually quite boring in comparison. And the leetcoders tend to be good at interviews, but when it comes to the actual job, that is all that matters at the end of the day, so focus on that.
Thanks a lot this was very motivating for me who is a beginner at leetcoding and competitive programming, this is exactly how i learn when i have less time but needed someone to back me up
A lot of people are grinding leetcode for months, but are stuck between 1400-1500 contest ratings. Some tips work and we should be flexible and adaptable to trying out new ways if the traditional ain't producing results. I hope you understood what i said bro.
Absolutely agree, and I'd add that I saw a much better progress curve when I practiced the way I mentioned, compared to investing hours into solving new questions. Consistency is a must, but once you are consistent, make sure you're also consistently practicing in the best way possible.
@dave How to overcome the part you mentioned where in the first 5 minutes we know whether I will be able to solve or not. It happens a lot. It's very tough to think of a new solution/new approach after 5 minutes as the pressure to speak correct things keep on building up.
After getting a job it is hard to remain in touch with practicing, i lost touch with that and when i open i get scared to even see my own solutions ,it feels how in the world did i even think of that 😂
honestly companies having leetcode as a reason you get in or not is just so dumb lol everyone knows solving a problem can take some time and it requires some searching and learning to be done I was lucky enough to land in a company that just cared about my skillset and tested it through in my opinion easier and more verifiable means had software engineer write some code and my job was to correct it as well as explain keywords behind it. Then we both sat on the solution later discussed my private projects. Then I had an app to do and send them it back and bam just like that got a job.
I really like programming. Building and learning new stuff. But I really hate when it's more about resolving useless things just to show I know something and trying new tactics to get hired, hacking the system of jobs, thinking about Linkedin, selling myself, networking, interviews, memorizing sintaxe. This makes me feel really miserable. I don't feel like a person anymore, but I feel like nothing more than a product.
Great video. A little fast-paced for me, but I suppose it's especially appreciated by those that play youtube at 1.5x. And thanks for not trying to teach us how to use youtube.
Personal opinion, leetcode is like brute force solution to passing interviews....a better way will be understanding the patterns.....once you do you wont really tell btwn easy , medium or hard questions....they will all be the same/easy. Bonus it will be easy to remember and also easy for you to explain your solution which most of the times the interviews are looking for.
Learning solutions is not necessarily the best nor the funnest way to get good. If you have to land a job in a month, sure, you can reach average in just that time. But if you want to excell you have to constantly practice finding new patterns by yourself. So that when there is no answer on stack exchange for your very specific problem, you are confident that you will come up with it and post it yourself. This is what sepparates a genius mathematician from a phd, the phd will solve almost any problem because he is familiar with the patterns, but the genius even if not quick at solving known problems will come up with solutions for new ones.
take it a bit of a step further and write unit tests for the coding challenge solutions. Ask chatGPT if you need help doing it but that helps get a better understanding of the logic. You can even set a breakpoint on the unit test and run the debugger and step thru the method under test and watch it all unfold
I also started leetcoding and it's fun. I always try to solve questions on my own before looking at answer, but it is really frustrating when you get TLE and have to look for optimal solution
Dave's point about not worrying about optimal solution is true, but if you are hitting TLE it means your solution is probably a bit too "brute force" (with rare exceptions). I understand the frustration, but I would suggest you reframe the TLE. What it means is you have a good grasp of the basics of the problem, as you (presumably) have a solution that could be used. Now you are very well prepared to understand other ways of attacking the same problem. Look at the other people's solutions or the Editorial solutions, and enjoy learning from them. And, as Dave said, do not obsess about the absolute most efficient solution. Find a good solution that seems like a useful pattern, that would not be difficult to apply to other similar problems. Study that one well.
How should a beginner, new to learning programming, begin to start attempting Leetcode problems? By this, I mean at what stage of learning should you start? I am still learning fundamentals. Thanks!
If you are a complete beginner, then starting out with Leetcode problems might be bad. Even the easy ones are not that easy. Do tutorials, write simple programs, see some examples. Understand them, re-write them yourself. It could be 1 to 3 months until you are ready for the next level.
“I wasnt bad, I was just getting started” needed that! Thank you!
The hard thing about leetcode for me isn't the problems, its being out of practice and having to grind it all over again, in case i get laid off again. You gotta keep practicing over and over again go be competitive. Its kind of like weightlifting,if you stop you lose strength,if you stop you forget how to solve some of these or you're not fast enough.
True, though you will ramp up more quickly after the first time you went through the prep
It's almost like this shit has nothing to do with the actual job 🙄
just do 1 problem every or so day that's should be enough and shouldn't take a lot of time
@@JoeTheisid rather be asked a coding question than some random quiz question on a library or database I used intensively for like 4 months and then mostly forgot about.
@@JoeTheisjust a basis for coding basically, like a benchmark. the only issue is it’s ALL boring math and science questions
The "1 year" practice period is really illuminating. Thanks for sharing that!
I was always wondering how I can be good at it in 2-3 months, the job seeking window. Now I see. It is something that I need to persist over 1 year.
Yup, if you want to consistently reach that bar in interviews, you just got to increase the time horizon for practice
Learn Solutions is the Best Advice as an Beginner
Yes, and then try to solve a few too!
This seems the right approach For beginners. 🙂
@@Blackoutfor10days yes really, there is a reason why we are preparing
We don't need to invent the wheel from scratch
Yes…we need to fill our toolbox with techniques…and when we learn a large amount of techniques, we can apply them to questions problems…the techniques are in the solutions of our practice problems
Worst advice. Solve until you solved it, and then compare to the solution.
i just did a interview today, got smashed by an easy question of hash map... Nervousism is your worst enemy for sure
We know so much but in that moment of pressure our brain literally turns into a potato. The only way is to solve your questions with a timer or some external pressure. It can really help with increasing the pressure and also help us waste less time. if you cannot solve within the time period defined then go to the solution and do what the video says. Best of luck for your journey
Awesome!!!
All software engineers ultimately got to this conclusion after a long period of struggle with LeetCode. You made the process more systematic
Indeed! I used to be caught up on investing hours into a question until I solve it and seeing much slower progress.
This was actually helpful.When I first started,I thought I was just dumb enough and could not solve any questions. Nobody ever elaborated on the fact you stated that in the beginning, you need to learn the pattern and logic of the solution.That's why I just gave up in starting itself.But now I understood and started my journey to coding again . Thanks to you.
You got this!
Leetcode is barely even coding. It's just using a programming language to solve riddles. If you want to learn coding, write some scripts and build applications.
@@brandongregori995 true but if you want a career as a software engineer , leetcode is a necessary step in the interview process
@brandongregori995 true but it's much easier to learn technologies and stuff in work than problem solving skills
Great video. These are actual good tips. I can tell you really went through this process. A lot of videos tell you they did 500+ questions but how you only need the top 120. Good job reflecting on your process and sharing what worked well for you
Thank you so much!
Studying solutions that are done well is actually good advice. I've spent actual days trying to figure out how to solve a problem that I didn't have the knowledge to do. Instead of looking things up I tried to solve it on my own which got me no where and was a waste of time in hind sight. Studying a good solution for the problem taught me so much more than pulling my hair out for hours.
- Focus on learning solutions to develop intuition quickly. (0:42)
- Create two lists of easy and medium tree questions to learn common solutions first. (0:53)
- Learn new patterns by studying solutions to questions you cannot solve. (1:23)
- Practice solving questions with split attention on platforms like Pramp. (2:49)
- Follow a roadmap to expose yourself to the most common questions and topics. (3:12)
- Practice on lower-level building blocks extensively, as they form the interview question foundation. (3:33)
- Solve questions not for speed but to pass interviews consistently. (4:46)
- Research and practice questions posted by others, especially for specific companies. (5:17)
- Prepare for hiring manager rounds by researching the company and their engineering challenges. (5:44)
- Allow ample time for consistent practice to improve interview skills. (6:08)
The first part really answered a question I had. I'd been sitting in front of a problem that I knew was dynamic programming, I had absolutely no idea where to start and didn't know if I should just learn the solution to that and move on. Thanks.
Got my first job out of college with a small company (25 employees or less) and have been there ever since (6 years this May), and I've gotta say, I absolutely dread the day I need to move on to another job with how ridiculous the space has become with often very long and drawn out interviews asking you to do leetcode questions on a whiteboard when you'll likely never use it on the job itself. Especially now that it's not JUST the FANNG companies employing these types of interviews - it's bleeding into the smaller lesser known companies as well and it's just insane to think you need to do some shit like this for a year (while currently being employed working full time) to pass some weird gatekeeper-like interview. I've been a successful software dev for just about 6 years now and can only imagine the amount of people who would be fully qualified for the job they're interviewing for just to be passed over due to a lack of leetcode grinding to the point where it's not really even about skill as a programmer and more about memorization. Memorization does not make someone a good programmer. /endrant
This was much needed,I was feeling guilty in checking out solutions without knowing anything
Been there!
Same here 😔
There it is. Someone finally said this and I want to say that it did really work for me. It is something i decided to do on my own while back ago and it helped a lot to get better at solving leetcode problems. Thank you for this video.
Amazing, thank you!
Wow I was shocked how few subs you have when i first saw. Love you energy! No typical youtuber bs saying pls comment and like etc but i did because of how authentic. It always seems like youtubers are having hidden incentives to sell a course etc (which is fine!) but there is always like a needy vibe behind a lot of things they say and it really just feels like you are just telling people really helpful advice for the sake of helping others! thanks!
Amazing video. Not only is the content great but the presentation also
Learning PATTERNS is what I have realized is SUPER IMPORTANT because a lot of times for someone on the front end like my self it will be a strong array or map question and learning 2 pointers and sliding window is very important there as well as sub sections like static sliding window and dynamic sliding window
What sucks about this though for a react dev Ike me is you also have to know react and a bunch of other front end related questions that have nothing to do with algorithms because some companies actually interview you for the work they do and if they don’t need high performance logic much then all that time spent on leetcode can be a negative if you didn’t also focus on the tech you program in daily
Thank you!
This video is one of the best videos I have ever seen on how to properly prep for leetcode style interviews (I passed Google interviews)
In the 15 years I have been using UA-cam this might actually be the one useful video when it comes to learning algorithms and data structures. When I was a junior I also fell in the pitfall of thinking I should be the one coming up with the brilliant solutions to every problem. It took me years to realize I just need to learn thought patterns from other people before I start solving complex issues. This video is exactly how I learned DSA. Don't be too hard on yourself.
Thank you for sharing!
tbh hearing it took a year of practising for leetcode to get good is incredibly disheartening to hear as an experienced software engineer. not because it should take you less but rather because that is a HUGE waste of a person's free time that should be spent gaining real experience in a real job. it's a sad state of affairs that newcomers (and often seniors) must be subjected to such arbitrary tests just to land jobs doing fairly standard cookie cutter software development work on the other end.
It’s like practicing for SAT over actually learning something in a meaningful way.
Standardized testing just be like that
Very well put.
Congratulations, you passed 3 hard leetcode questions, beat thousands of other candidates for the job.
Your tasks you will be doing you may ask?
You will be writing standard CRUD apis to serve a basic web application.
These are foundational concepts in computer science and it’s never a bad time to be thinking about the time complexity and scalability of a process.
I’d love to hear your idea for a fair test that can quickly determine a programmer’s abilities.
The best leetcode guidance I have ever seen. Thanks!
💻 Free 12-Week Leetcode Preparation Guide notion template with more in depth tips: techtribe.beehiiv.com/subscribe
👨🏻💻 Join the free discord server: discord.gg/n66UKukj
When I started leetcode a decade ago. I was trying to solve every problem in scratch without even knowing about data structures or algorithms. Then I realized there are people who spent their lives solving their problems and got phds and became famous. You cannot expect yourself to solve these kinds of problems in 30 minutes.
But the companies do expect 😂
This is very helpful. I'm in the quantity phase of learning. I've "solved" 45 leetcodes and about 3 of them by myself (easys).
Everyone has their preferred way to prepare. If you are very short on time - this is indeed the best way. It’s the same approach you’d use to pass an exam. Study answers and should you encounter a similar enough question - you’ll be able to solve it based on your memory.
The biggest downside here is that with each question, you are discarding an opportunity to improve general technical problem solving. My recommendation would be to try to solve the question yourself first, but time box it to 20-40 minutes. If you were not able to solve the question within time limit. Then look at solution, study it and find out what are the things that stood in the way of you getting the right answer - this is the important part. Did you get tunnel visioned on specific data structure? Did you not consider a multi pass approach? Did you make wrong assumption about optimal time complexity? Figure out a way to make sure this doesn’t derail you again. Then move on to the next question.
With each new question your “weaknesses” shouldn’t be repeating themselves - if they do - it’s likely that you are not improving your general problem solving. You can still pass a lot of interviews based on good memory and pattern recognition. But ideally you want to train for more general problem solving too.
Great video man. Very well-organised and useful tips. It was evident that these tips came from a genuine experience!
This is such a smart approach!
make sure you take enough and think enough tries to solve problem.
If you cant still solve it, then move on to solution.
If you just move on to solution, the thing is not every solution is same even the pattern is similar. The concept of approaching in each problem is different and thats the idea where you had to gain in hard way no matter what.
Think enough and shake your brain enough to make your brain smarter
Where to start? I'm a complete beginner
The advice was prob one of the best so far. After a year and a half in the industry i still cant solve a lot of them off the top of my head but its mostly the syntax and not the thought process of how I'm gonna get to the answer. My solurions are no where near elegant but i always have some idea how to start solving a problem. it just worries me whether or not id have to look up the exact syntax or how a particular class works.
I spent the first day totally sucking wondering if I'll ever be smart enought to solve complex problems (even though I took an easy one, I was rusty and tired). This has given me hope, I actually enjoy learning existing solutions, and we shouldn't try to re-build the wheel. Thank you!
Thank you for giving me permission to look at solutions first as a beginner. I will say, it works. There are definitely concepts that stick after i see the problem a few times and it becomes more intuitive.
I also will use chatgpt and go through the code line by line and ask, what does this code mean and why is it important. Understanding the why helps me a lot.
WOW just WOW love it The quality of the video is so good tysm god bless you brother!!!!
Thank you so much!
What a brilliant way to look at the situation. Love it, I am doing this brother.
Starting the leetcode grind tomorrow with advice based from this video! Might update this thread weekly cuz why not.
You got this, and looking forward for the update!
Been 10 months dude drop an update
bro gave up 💀
I’m really happy I live in Europe and here in general companies don’t do this leetcode bullshit when hiring. The most important skill is understanding the requirements and raising concerns if they are problematic. Solving Leetcode problems will not help you with that.
Thank you for your content. I see bunch of videos from time to time. not so many of them feel like informative and well thought. wish you best!
I am a beginner and i just started learning DSA. Even though i am just at Big O, this video is going to help me a lot since this is how i originally planned my study schedule, so thank you for making it more clear for me! I know i have a long way to go but am all for it ✨🎄If you have any tips or motivation, kindly send me some ✨
You got this!
Now This ! is Genuine Authentic Content ❤❤
The dev job market have gotten absolutely ridiculous when you have to practice leetcode for a year just to pass an interview, on top of the years you have spent to learn the skills you need to do the actual job!
A very realistic and persuasive explanation
I got my software engineer job and didn’t need to learn a single leetcode question. Now I don’t need leetcode at all because I have real world complex projects to showcase
One of things I don't see a lot but I feel is kinda important: to tinker with the solutions.
This is how I approach:
-> Try all approaches until I no longer can think of any way. If for the last 5-10 mins I can't think of a solution, I goto the solutions/discussions tab. The method name is mentioned in the heading of most solutions. Then, I tried to implement the same method on that question on my own.
If I still can't figure it out, I view the code in the solutions tab. Copy-Paste, understand the code, dry-run and then tinker with the code. Tinkering is kinda important because it forces u to understand the code before changing anything.
Even for questions I am not able to solve in contests, I do the same. It helped me no idea if it works for anybody else.
Thanks for sharing!
My problem is that I have a pattern where I grind leetcode for a few months, then I get busy with job/life or I lose interest as I am not actively interviewing. Again after a few months, I feel a bit guilty and I start again, back to square one. I have to solve easy questions and start the grind again. It's an infinite loop !
So don't stop.
This is actually such a good video. Thank you!
bro genuinely thank you !!
This video really helped thank you so much. I feel confident again 🦍
You got this!
Best advice. Straight and to the point. Thanks!
Great content and great editing skills!
Thank you so much! Polina is the creative powerhouse!
It was really nice , but one thing he missed was giving weekly and biweekly contest regularly . Belive me !! That's really really important. If you are able to solve 3 to 4 questions regularly in each contest then you are ready to crack any interview.
Thanku so much the best ever video about competitive programming
Tips:-
-first of all learning question approach
-recognising the patterns ........
THANKU FOR UPLOADING THIS TYPE OF CONTENT .
Keep making quality content :) I have subscribed to your channel today.
Thank you :)
To each their own but I prefer honing problem solving skills by always going in blind and staying blind. I don't even look at what other people did after I solved it.
It's just about what you want to get out of it. Neither is right or wrong. Great video explaining what he prefers and how to be effective doing it.
Also I don't think looking at solutions is a controversial take. I assumed that's what 99% of people did when they "grind leetcode".
Try projecteuler instead!
The editing is preventing me from finishing this. The key press sound effect, the captions, the memes…I’m feeling my brain implode.
Sound advice, been getting alot more dynamic programming question in the last 6 months
This is actually how we learn most things in school. It took millennia for simple mathematical concepts to form our basic elementary curriculum. It would be infeasible to expect kids to come up with these concepts by themselves.
As a student just coming out of college I dont think its fair to be thrown leetcode problems for an entry level position. Its about what you can learn not memorizing problems under a timed clock. That being said I gotta play the game so after bombing an assessment for USAA I need to learn how to do the OA just to get in the door.
Most honest video ,I have seen till now
almost 30 questions in and I am tired, frustrated and at a all time low energy level. Just doing this day after day alone by myself with no one to talk to in hopes that I will get a job in this market, sigh. I dont know. Feel so tired. That and sleep is so bad sometimes.
As a beginner I took things differently, signed up and did contests on codeforces. I wasn't focussed on solving for rating but solving for developing skills. Somedays I don't even care submitting but trying to find ways to come up with solutions. As days went by the intuition came easier and these days I submit 3-4 solutions on div2. So, i guess things work different for each of us.
Sound like something i wanna hear to satisfy myself so liking the vid
Useful advice! Thank you for sharing :))
bro using machine learning on himself
I've also started to crack interviews at this point and what you said is relatable. It took me also about a year to get good enough to crack DSA interviews with confidence but then there's LLD and HLD also to consider. That's more or less just dependent on learning some questions.
hi, what is LLD and HLD stands for?
@@beng2620 low level and high level design
I guess when we start working on large projects our debugging and problem solving skills make our life easier so big companies are always going to rely on DSA and LLD , HLD solutions are completely depend on observation skills , experience and weather interviewer liked it or not 😏😏.
@@LetszGoo
Also, note that sometimes, when a team is looking for a replacement, they might have additional requirements like Web, Android etc along with DSA and the other stuff.
This is not the norm though. When companies start to hire in bulk again (hopefully next year), they'll hire in a more generic way. Nowadays, the replacement thing is most common.
@@aadityakiran_s how do you get interviews? ☠️ Due to recession not many companies are even hiring and I have done only 2 interviews so far...
Also, I am more focused towards backend dev, so can you suggest how I can land interviews on this :(
I understand your recommendation of learning the solution first is an effective and faster way to level up..
however, trying to solve the problems on your own in the beginning and spending more time thinking about the problem and ways to solve..
will improve ones fundamental understanding and lay a solid foundation for the long term..
but your strategy I think can be followed for some one with a short deadline
I started leetcode just now and managed to solve half of blind 75 and around total of 100 problem and I feel like complete begineer still but I definitely can see myself improving
Thanks a lot to give some of the best resources and advice .
Your idea is what I was following.😊
i needed this, thank you!
I've done a lot of interviews from the hiring side, I hate leetcode style questions because for the vast majority of jobs, you are not doing anything like leetcode questions. It's actually quite boring in comparison. And the leetcoders tend to be good at interviews, but when it comes to the actual job, that is all that matters at the end of the day, so focus on that.
Thanks a lot this was very motivating for me who is a beginner at leetcoding and competitive programming, this is exactly how i learn when i have less time but needed someone to back me up
You got this!
There are no shortcut guys, stop your search for shortcuts instead do practise and be consistent❤
A lot of people are grinding leetcode for months, but are stuck between 1400-1500 contest ratings. Some tips work and we should be flexible and adaptable to trying out new ways if the traditional ain't producing results. I hope you understood what i said bro.
Everyone stucks , it dosent matter whose youtube videos they watched , but the thing that matter most is there self belief
months are nothing you need years. @@geekcurry5936
Absolutely agree, and I'd add that I saw a much better progress curve when I practiced the way I mentioned, compared to investing hours into solving new questions. Consistency is a must, but once you are consistent, make sure you're also consistently practicing in the best way possible.
@daveburji right! Practice smart, not hard.
@dave How to overcome the part you mentioned where in the first 5 minutes we know whether I will be able to solve or not. It happens a lot. It's very tough to think of a new solution/new approach after 5 minutes as the pressure to speak correct things keep on building up.
Really good video with great advice.
Bruh here in India, even a low paying company asks DP as warm up questions.
After getting a job it is hard to remain in touch with practicing, i lost touch with that and when i open i get scared to even see my own solutions ,it feels how in the world did i even think of that 😂
honestly companies having leetcode as a reason you get in or not is just so dumb lol
everyone knows solving a problem can take some time and it requires some searching and learning to be done
I was lucky enough to land in a company that just cared about my skillset and tested it through in my opinion easier and more verifiable means
had software engineer write some code and my job was to correct it as well as explain keywords behind it.
Then we both sat on the solution later discussed my private projects.
Then I had an app to do and send them it back and bam
just like that got a job.
I'm following the same strategy and it's very helpful 😄
Great to hear!
Yea agreed, in the beginning just go straight to the solutions
I really like programming. Building and learning new stuff. But I really hate when it's more about resolving useless things just to show I know something and trying new tactics to get hired, hacking the system of jobs, thinking about Linkedin, selling myself, networking, interviews, memorizing sintaxe. This makes me feel really miserable. I don't feel like a person anymore, but I feel like nothing more than a product.
I feel you, but that's unfortunately what we are asked to do during interviews (but not all companies ask Leetcode!).
me and my friend spends 2 hours to solve a medium question , but we don't even take any hint and we spend more than a day to solve a hard question.
Great video. A little fast-paced for me, but I suppose it's especially appreciated by those that play youtube at 1.5x. And thanks for not trying to teach us how to use youtube.
Thank you!
actually good advice. great video.
Personal opinion, leetcode is like brute force solution to passing interviews....a better way will be understanding the patterns.....once you do you wont really tell btwn easy , medium or hard questions....they will all be the same/easy. Bonus it will be easy to remember and also easy for you to explain your solution which most of the times the interviews are looking for.
It's just like Math. First you learn how to solve the problems then you get questions to practice
Learning solutions is not necessarily the best nor the funnest way to get good. If you have to land a job in a month, sure, you can reach average in just that time. But if you want to excell you have to constantly practice finding new patterns by yourself. So that when there is no answer on stack exchange for your very specific problem, you are confident that you will come up with it and post it yourself. This is what sepparates a genius mathematician from a phd, the phd will solve almost any problem because he is familiar with the patterns, but the genius even if not quick at solving known problems will come up with solutions for new ones.
This is very good advice. ❤
vibe technician🔥
thanks Dave. it was really helpful
I had ever interviewed in only 4 big companies and was always asked dp coding questions and once it was 2d dp. I know my luck is extremely hard.
solid advice. wish i saw this 2 years ago
thank you for inspiration, great content!
Thank you!
Can we get your list of questions you used for each topic and the sub list of ones you learn the pattern to and others you tried to solve ?
www.techinterviewhandbook.org/algorithms/study-cheatsheet/
Highly recommend the lists in that link.
Just do the work and stop looking for a shortcut. There’s no shortcut.
And with AI, we never have to solve such problems in life ever again…
Edit: …outside interviews if course
Awesome bro! No I will never think experience programmer born with programming skills
take it a bit of a step further and write unit tests for the coding challenge solutions. Ask chatGPT if you need help doing it but that helps get a better understanding of the logic. You can even set a breakpoint on the unit test and run the debugger and step thru the method under test and watch it all unfold
damn this is eye opener
I also started leetcoding and it's fun.
I always try to solve questions on my own before looking at answer, but it is really frustrating when you get TLE and have to look for optimal solution
What’s TLE ?
Time Limit Exceeded, solution is potentially correct but not time optimized@@mattc9409
@@mattc9409time limit exceeded = TLE
Dave's point about not worrying about optimal solution is true, but if you are hitting TLE it means your solution is probably a bit too "brute force" (with rare exceptions).
I understand the frustration, but I would suggest you reframe the TLE. What it means is you have a good grasp of the basics of the problem, as you (presumably) have a solution that could be used. Now you are very well prepared to understand other ways of attacking the same problem. Look at the other people's solutions or the Editorial solutions, and enjoy learning from them.
And, as Dave said, do not obsess about the absolute most efficient solution. Find a good solution that seems like a useful pattern, that would not be difficult to apply to other similar problems. Study that one well.
Interesting video. I didn't feel when 6 minute 46 seconds Video is playing. it was so Smooth. To watch it
Thank you!
I liked the piramid tip! It's kind of good news
How should a beginner, new to learning programming, begin to start attempting Leetcode problems? By this, I mean at what stage of learning should you start? I am still learning fundamentals. Thanks!
If you are a complete beginner, then starting out with Leetcode problems might be bad. Even the easy ones are not that easy. Do tutorials, write simple programs, see some examples. Understand them, re-write them yourself. It could be 1 to 3 months until you are ready for the next level.
I have saved this video. To always know what the process is. Algorithms have demoralized me a thousand times. But, I am up again.
You got this!