Why You Can't Solve Leetcode Problems

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 69

  • @mastermax7777
    @mastermax7777 Год назад +175

    video summary: you dont know the material (algorithms, data structures, strategy, programming language). saved you 10 minutes

    • @DRDR3ADSA
      @DRDR3ADSA Год назад +29

      I wasted time reading your comment. The video was actually helpful

    • @ManjuSaiVenkat
      @ManjuSaiVenkat 5 месяцев назад +2

      @@DRDR3ADSA I agree

    • @yon1623
      @yon1623 18 дней назад

      this comment was lame,

  • @richardharris202
    @richardharris202 Год назад +28

    DS
    1.Array(Two pointer , Binary search)
    2.HashMap
    3.Linkedlist(Tortoise and Hare)
    4.Set
    5.Queues
    6.Stack
    7.Graphs (Dijstra)
    8.Trees
    9.BST

    • @birdlawyer5404
      @birdlawyer5404 Год назад +1

      I've done over 250 leetocde problems and never needed Dijkstra's. Definitely needed the rest of these though

  • @minhnguyen-q1z7w
    @minhnguyen-q1z7w 4 месяца назад +1

    thanks for the advice !! i also could not solve two sums brute force when i started 😆

  • @dr1lltrckz147
    @dr1lltrckz147 8 месяцев назад +1

    thanks for the vid brah, i just started grinding leetcode fr now, but I'm having a loooot of problems solving medium questions and even some easy's I've never seen before i struggle with, gonna take my time to learn the data structures in depth first. I graduate with my cs degree in 9 weeks, still looking for new grad/entry level roles, and I'm trynna be always interview-ready so that i won't bomb a potential interview.

    • @BradleyDAllen
      @BradleyDAllen  8 месяцев назад

      Good luck! Stay focused and remember why you even do this 🫡

  • @szeynepsivri
    @szeynepsivri 4 месяца назад +2

    I took some online courses about data science with Python, but they didn't cover data structures and algorithms. Even though I did some data science projects, I realized that knowing Pandas and Numpy isn't enough. To get a job, I need to pass programming tests. I started doing exercises on Leetcode, but I couldn't understand the questions or solutions because of my lack of knowledge in data structures and algorithms. Now I understand the main reason for my problem, thank you.

    • @BradleyDAllen
      @BradleyDAllen  4 месяца назад +1

      Keep going! A lot of computer science is just knowing how something works behind the scenes. Then manipulating it to solve the problem. At some point you will be payed $ for this.
      Thanks for watching ❤️

  • @astridfrench4188
    @astridfrench4188 Год назад +4

    Omggg u save my life . U r my hero, i will remember u!!!. I have just hit my junior year at college, i did lota of coding outside my school. And today i try the leedcode, even the easy one i dont understand. And now i know why. Thank you. Subscribed

  • @tim5749
    @tim5749 Год назад +19

    Hey man I appreciate this video. I just got my first job as a developer, and I can do a lot of the easy problems on leetcode brute force and some with the correct data structure, like hash maps and stacks. I will definitely follow this advice and try to get into it! Appreciate it!

    • @tim5749
      @tim5749 Год назад +1

      I also want to add that my interview had 0 leetcode style questions. They asked me about programming concepts like OOP, but they also asked me a lot of 'technical' questions like what is scrum and have you read undocumented code.

    • @PDSREACTION
      @PDSREACTION Год назад +2

      @@tim5749 I just finished 10 easy arrays problems and its already overwhelming. I couldnt come up with even decent solutions like find the missing number from 1 to N. All these factors are pissing me off and make me wanna quit. What should be my approach to this?

    • @cx777o
      @cx777o Год назад +2

      @@PDSREACTION stop beating yourself up, the fact that you are able to solve those problems means a lot! It doesnt matter how long it takes, just solve one problem at a time at your designated tempo. The only thing matters is, that you create parts of the solution one step at a time. It also definitely helps to break down the problem into as many smaller problems/questions, so that you can then research for these questions with for example chat gpt or stackoverflow. Additionally think of the computer as a retarded piece of metal, which you have to provide small bits and pieces of the whole problem, so that it can even understand your solution which you might think of in a more highlevel/surface level way. Also what helps is, if you try to solve the problem first by writing down each step on a piece of paper in pseudocode, instead of jumping right on to the console/IDE.

    • @tim5749
      @tim5749 Год назад

      @@cx777o I am about to follow this exact advice awesome comment!

    • @iseeflowers
      @iseeflowers 9 месяцев назад

      @@tim5749 How did you find your developer job?

  • @aot-soldier3603
    @aot-soldier3603 3 месяца назад +2

    Sophomore year of uni, I learned my first programming language Java. Over the summer of 2024, I decided to do leatcode and was completely lost. Thankfully this fall semester I start my data structure and algorithms course, during winter break ima grind leatcode and hopefully get better after my DSA course 😅

    • @okage_
      @okage_ 3 месяца назад +1

      my best advice to you as a graduate is get a lot of internships/experience and it will help you secure a full time job faster

    • @chaos9790
      @chaos9790 2 месяца назад

      @@okage_ yeah dude, just get internships. so easy

    • @okage_
      @okage_ 2 месяца назад

      @@chaos9790 never said it was easy lol

  • @joemama7388
    @joemama7388 Год назад +6

    Interesting take, I've heard from others that the best approach is to learn the data structure/algo as you start solving problems.

    • @denburg
      @denburg Год назад

      probably it's like learning Frameworks first before the fundamental of the programming language, it can be done but harder to understand the concept and yeah i one of the many person who does that in the past and actually regret it ( u eventually going to learn the basic first after all so it does not time efficient), but when we talk about the era of AI right now , learning while solving the problem is pretty much doable and pretty much efficient because instead learning the topic manually from the books, video or article like in the past and trying to understand sometimes difficult to understand concept , u just give i.e AI like ChatGPT the step to resolve the problems and even then u can request the AI to give response like giving explanation to a children to have a more easier explanation about the question

  • @bruceliebewilma
    @bruceliebewilma Год назад +1

    Yes we can. Leetcode problems are only algorithm problems

  • @blahajikea2491
    @blahajikea2491 Год назад +10

    Solid advice. I definitely agree that going through the problems without any foundations tends to be inefficient.
    For people starting out: "A Common-Sense Guide to Data Strucures and Algorithms" is a nice textbook that I used to get familiar with the material. Sacrifices some depth, but it's a very comprehensible read and gives you a decent foundation for tackling other books like The Algorithm Design Manual. Just make sure to try implementing the algorithms yourself in your language of choice.

    • @thanirmalai
      @thanirmalai Год назад

      Thanks for the book. Really helpful.

  • @javidhuseynzade2422
    @javidhuseynzade2422 Год назад +1

    Thanks for the video, you have enlightened me about this topic!

  • @TabuHana
    @TabuHana Год назад +4

    I enjoyed the way u explained this, felt more like my bro sitting me down and just explaining it simply ❤

  • @vivek2319
    @vivek2319 Год назад +4

    Not bragging but I'll be honest. Not all companies look for leetcode level skills, you just have to showcase that you're capableof learning, have req educational background and some background on how you overcome some challenges in your project. Apart from that companies are looking for some experience in AWS or Azure. Having said that, if you are particularly looking for high paying product based company jobs then yes, you should know leetcode + AWS / Azure.

    • @ZoyaKhan-mq1qo
      @ZoyaKhan-mq1qo 10 месяцев назад +1

      Hello Vivek I wanted to ask for some guidance from you as I am a btech undergrad (CSE) and I am pretty distressed about jobs and things. I will be honest that I cant even solve the easiest question on leetcode as of now and I don't have anyone else to ask for guidance, can you help me to know about what I need to do to land a decent job . I am interested in Kotlin app development and I do make projects (still learning though) ,I also like web development . Please help me out I would be very grateful to you.

    • @ZoyaKhan-mq1qo
      @ZoyaKhan-mq1qo 10 месяцев назад +1

      please please please reply

  • @PDSREACTION
    @PDSREACTION Год назад +5

    I just finished 10 easy arrays problems and its already overwhelming. I couldnt come up with even decent solutions like find the missing number from 1 to N. All these factors are pissing me off and make me wanna quit. What should be my approach to this?

  • @fancyAlex1993
    @fancyAlex1993 6 месяцев назад

    I would suggest doing the Top 100 liked in Leetcode. They separated the questions by topics. For an example, linked list questions, learn the data structure then start doing the question . If u cant solve it in 15 minutes then look up the solution

  • @krishnatagore5750
    @krishnatagore5750 Год назад

    Finally a useful advise regarding leetcode and not some do the top 75 sums blah blah. Doing leetcode recently after dropping from it a lot times. Yesterday I also came to the same conclusion as u. Now your video just reassures my belief. Now i feel like everyone hides this fact on purpose and act like they are helping me. Thanks a lot!! BTW can u please share what to search in internet for array 2 pointers, linked list tortoise and hare etc. (I think u got what i meant.)

  • @jamessullenriot
    @jamessullenriot Год назад +7

    Leetcode is great if you want to be a professional interviewer but if you want to be productive just build out some apps. You will end up being more valuable to the company that does hire you. This heavy algo type interviews don't happen at many companies outside of the big tech hubs anyway. Most places just need to bring in someone decently competent and don't care if you do a binary tree search that you will never ever ever have to do in your day to day.

    • @jonathancohen2351
      @jonathancohen2351 Год назад

      Many software companies use difficult problems as a screening tool, but other kinds of companies won't even let you use clever code on the job, because code like that is so tricky to get right and maintain. But I would say that leetcode is very helpful for getting jobs in the tech hubs, because it's easy for an interviewer to ask hard coding questions.

    • @anishdey1189
      @anishdey1189 Год назад

      true

    • @gandalfthegrey2777
      @gandalfthegrey2777 Год назад

      you do need them in bigger companies that pay exorbitent salaries, because they don't hire devs who know how to build stuff, they go by the philosophy of if he is intelligent enough he can be taught to build stuff so rather they use leetcode as a iq filter to test who is the most competent and intelligent at solving difficult questions like entrance exams.
      for practicality advanced DSA isn't used 99% of the times but sometimes it is used to optimize already written code.

  • @y.8901
    @y.8901 Год назад +1

    Hi, nice video ! I just discovered your videos by chance and you share good piece of advice ! I have a question : Do you recommend to succeed the problems a first time, even by brut forcing and them try to do them correctly another time or is it better to submit an optimized solution the first time ? Thanks !

    • @BradleyDAllen
      @BradleyDAllen  Год назад

      I would just try and solve it with Bruce force. Then try and get the optimized solution. When you are in a interview the stress will be high but just focus on solving it brute force. The interviewer will tell you hints and if you need to improve your solution.

    • @jonathancohen2351
      @jonathancohen2351 Год назад

      Unless you are confident that you can slam out an optimized approach on the first try, avoid it. The interviewer is really looking for whether they want to work with you everyday, and for that they want someone who can listen to feedback and improve their solution.

  • @6.squash.936
    @6.squash.936 Год назад +1

    Changed my Life ❤

  • @akashverma5756
    @akashverma5756 Год назад +10

    For me, Leetcode is as fun as gaming. Sometimes, you get frustrated and sometimes you get feeling of accomplishment.

  • @prodwulfe
    @prodwulfe Год назад +1

    Great video

  • @OwenWu-f9t
    @OwenWu-f9t 3 месяца назад

    the biggest mistake is probably trying to solve questions in the wrong order and then not understanding why the solutions work for me at least

  • @MrAwesomeaditya
    @MrAwesomeaditya 10 месяцев назад +2

    Bro.... He listed so many data structures, I know some parts of arrays and a lil bit (just) of hashmaps and linkedlists, and I have only heard about trees and binarysearch trees.
    I have been grinding through the internet for the past 2 hours its fucking 3 am and havent been able to solve 1 problem, thinking why is everybody better at this logic than I am.... Fuckit, tomorrow morning the pen and pad come out for them notes

    • @luiggymacias5735
      @luiggymacias5735 3 месяца назад +1

      Is necessary to sleep, dont feel bad if you cant solve a problem, try a easier one, and before you try to solve a, for example, bynary search problem, try to understand the fundamental concept of binary search, the same logic for hashmaps, stacks, etc, if you know the patterns your brain will start to understand what is going on, try to solve the problems the way neetcode does, use pen a paper and start to solve it without code first

  • @tajayeb
    @tajayeb Год назад +2

    Lets be honest you just need to review these things to get a job, because most of us wont use half of these concepts in our day job.

  • @erik9817
    @erik9817 Год назад

    Ha, painful practice, I love it. Double meaning intended. Oh god, and I have to pass a lot of math exams this year. :( Oh and as far as language, C# here I come.

  • @SiddheshKukade
    @SiddheshKukade Год назад

    thanks

  • @Thunderzap77
    @Thunderzap77 Год назад +1

    gym bro style of explaining leet code

    • @guitaripod
      @guitaripod Год назад +1

      Do you have something better? Drink less haterade.

    • @kingdrift1136
      @kingdrift1136 Год назад

      @@guitaripodso no tech lead vids

    • @Thunderzap77
      @Thunderzap77 Год назад

      @@guitaripod I’m not hating, I like it

  • @thanirmalai
    @thanirmalai Год назад +1

    Anyone have a system of recording solved problems ?

    • @BradleyDAllen
      @BradleyDAllen  Год назад

      Excel? Maybe just a document with time, date, and solved or not.

  • @OnWeek
    @OnWeek Год назад

    this video appear right now when i lost a job cause this fucking problems

  • @BradleyDAllen
    @BradleyDAllen  Год назад +8

    Share your most difficult and easiest problem that you faced on Leetcode!

    • @lucashunter6441
      @lucashunter6441 Год назад

      Hardest: Burst balloons
      Easiest: Rotting oranges

    • @richardharris202
      @richardharris202 Год назад +1

      Easiest - Finding duplicate
      Hardest - Median of two sorted array

    • @muditkhanna8164
      @muditkhanna8164 Год назад +1

      L.F.U Cache - Hardest(took me whole day)
      valid parenthesis -easiest one (done in 15 minutes)

  • @mmashabanemogoboya7686
    @mmashabanemogoboya7686 5 месяцев назад

    My issues is understanding the question

  • @JL-qb3rc
    @JL-qb3rc Год назад

    return{};
    //ha 0/57 sadge.....

  • @قاسمالشيخعلي-ك5ح

    thanks, realy inspiring .

  • @contraband.software
    @contraband.software Год назад

    Very nice video :)