Doing LeetCode Be Like (Coding Interviews Be Like Pt. 2)

Sdílet
Vložit
  • čas přidán 17. 07. 2021
  • how to do leetcode problems in 8 steps:
    1. think the problem is easy
    2. get stuck
    3. read discussion section
    4. get confused
    5. watch a video about the problem
    6. get even more confused
    7. give up
    let's chat on discord: / discord
    If you haven't already, be sure to check out part 1 of this video: Coding Interviews Be Like • Coding Interviews Be Like
    If you're reading this, comment: did he really fail leetcode problem 662?
    Instagram: / itsnicholas.t
    #leetcode #codinginterview
    Sub Count: 31 387
    ---------------------Check out these videos---------------------
    Computer Science Majors Be Like- • Computer Science Major...
    Coding Interviews Be Like- • My First Hackathon
    Software Engineering Interns Be Like- • Software Engineering I...
  • Komedie

Komentáře • 674

  • @navyanshpants7955
    @navyanshpants7955 Před 2 lety +4278

    Aah yes, the Indian guy. Every programmers second solution after stack.

    • @hybridgamer4105
      @hybridgamer4105 Před 2 lety +35

      Who was it tho?

    • @nicholast
      @nicholast  Před 2 lety +376

      They are clutch

    • @hmm7458
      @hmm7458 Před 2 lety +235

      @@hybridgamer4105 it is not a single person bt a whole youtube community

    • @3WL2
      @3WL2 Před 2 lety +19

      @@hybridgamer4105 czcams.com/video/qCAbp1f9T5o/video.html is the video he used.

    • @hybridgamer4105
      @hybridgamer4105 Před 2 lety +18

      @@3WL2 ohh yeaah akshay is the guy

  • @camron1103
    @camron1103 Před 2 lety +608

    "What is he saying"
    -all programmers ever

  • @georges.9545
    @georges.9545 Před 2 lety +768

    "Sorry I was late I was just outside" best excuse ever

  • @brunch.
    @brunch. Před 2 lety +614

    Plot twist: he still has the code copied to his clipboard

  • @0iqyas489
    @0iqyas489 Před 2 lety +185

    LMFAO THE FACE DROP WHEN HE HEARD THERE WAS A SECOND QUESTION

    • @zidanehadeed9229
      @zidanehadeed9229 Před 2 lety +7

      And his stupid smile thinking it's an array question. 😂

    • @nicholast
      @nicholast  Před 2 lety +7

      Nick was shocked 😳

  • @benloud8740
    @benloud8740 Před 2 lety +1813

    This story needs to keep going. I want to follow this guys journey

  • @ihtasham9237
    @ihtasham9237 Před 2 lety +518

    2:08 the indian dude on youtube always comes in clutch😂

    • @alext5497
      @alext5497 Před 2 lety +4

      Das raycist

    • @edwardelric1238
      @edwardelric1238 Před 2 lety +54

      @@alext5497 chill it's a joke
      addressing from his name I think he is an Indian too.

    • @zum4342
      @zum4342 Před 2 lety +2

      @@edwardelric1238 Hes prolly bangladeshi not indian

    • @alext5497
      @alext5497 Před 2 lety +2

      @@edwardelric1238 don't tell me to chill nazi

    • @_mario_2985
      @_mario_2985 Před 2 lety +10

      @@alext5497 bruhhh

  • @theabbie3249
    @theabbie3249 Před 2 lety +378

    His voice is deeper than Binary Tree

  • @SchizoFish
    @SchizoFish Před 2 lety +188

    Pasting in the solution and complimenting yourself was more relatable than it should be 😂

  • @shreyaskulkarni526
    @shreyaskulkarni526 Před 2 lety +154

    2:07 the person being an Indian is the most realistic part

    • @nicholast
      @nicholast  Před 2 lety +8

      😂

    • @Loachie90
      @Loachie90 Před 2 lety +19

      It usually comes with intense reverb because he’s using his internal laptop mic

    • @saketkumar7335
      @saketkumar7335 Před 2 lety +1

      @@Loachie90 the voice and accent is truly Indian

  • @achillest-hillier2619
    @achillest-hillier2619 Před 2 lety +537

    The leet code part is EXACTLY on point, do some stuff that almost works, check the discussion section after 5 minutes, say « yeah that basically what i was planning to do (no) » then copy paste

  • @ishitasinha1798
    @ishitasinha1798 Před 2 lety +265

    1:58 SO FREAKING RELATABLE 😭🤣🤣Whenever I don't get a question under 2 min, I jump straight into discussion section 😂

    • @nicholast
      @nicholast  Před 2 lety +65

      It’s so hard to resist not looking 😂

    • @ishitasinha1798
      @ishitasinha1798 Před 2 lety

      @@nicholast Ikr😂

    • @rbt-0007
      @rbt-0007 Před 2 lety +13

      I would try for hours until I finally come up with a solution. After I’ll analyze more optimal approaches.

    • @TaHrPa
      @TaHrPa Před 2 lety +8

      @RBT-000 same, I love the mental struggle. Getting a solution without a complete understanding of why it works is a very bad habit.

    • @das_bored
      @das_bored Před 2 lety +1

      Bruh also i faced this exact shit like couple of days ago , i was interviewing with linkedin and they asked a question that i had seen but didn't bother to solve or understand and kaboom, rejected lmao 😂

  • @MichaelBattaglia
    @MichaelBattaglia Před 2 lety +186

    Being someone who has gone through the FAANG interview grind a few months ago, this video is giving me both laughs and PTSD at the same time!

  • @aquilazyy1125
    @aquilazyy1125 Před 2 lety +160

    2:03 For anyone interested: The code basically indexes the tree in pre-order as if it was a full tree. It records the index of the left-most node at each depth in the List, and then compute the current width by subtracting the index of left-most node at the same depth from that of the current node’s.

  • @Brian-fr6fv
    @Brian-fr6fv Před 2 lety +54

    Lmao
    “My name is nick..”
    “:D”
    “...son”
    “D:”

  • @issecret1
    @issecret1 Před 2 lety +35

    If coding doesn't work out, you could really do radio, that's a smooth voice

  • @takada5743
    @takada5743 Před 2 lety +17

    2:30 the pause between "oh hey" and saying your name, so accurate lmao

  • @slipperytiger
    @slipperytiger Před 2 lety +19

    "sorry I was late I was just outside" I absolutely lost it at this line lmao

  • @ChristopherSiu
    @ChristopherSiu Před 2 lety +104

    As a music guy, I have no idea what you're talking about, but I love this style of humour. :D My brother's studying compsci and I have no idea what he does either, so I had to show it to him XD

    • @sanskarkaazi3830
      @sanskarkaazi3830 Před 2 lety +6

      I am both.. lol.. Feels like singing but then you remember you gatta code!!! But then ends up singing anyway lol

    • @nicholast
      @nicholast  Před 2 lety +5

      Hahaha thanks :)

  • @benb9284
    @benb9284 Před 2 lety +60

    But nevertheless I've got a good feeling about this interview. I mean, you and the interviewer have the same poster, I am sure this has a positive impact on how he thinks about you!

  • @stevethach3340
    @stevethach3340 Před 2 lety +498

    I went to school for aerospace engineering and worked as an AE for about 4-5 years.
    I am now a software engineer with crazy strong sense of imposter syndrome lol. During that time as an AE (and now) I have been trying to teach myself data structures and algorithms to stay competitive and this video is exactly relatable lol
    Cheers to everyone, looking forward to seeing you guys succeed!

    • @OnePanda73
      @OnePanda73 Před 2 lety +13

      Oh shit, I didn't think I would see a classmate on this video. I just recently made the switch, and been tryna get through them interviews haha. AE classes with mertz didn't prepare us for this at all.😂😂😂

    • @stevethach3340
      @stevethach3340 Před 2 lety +9

      @@OnePanda73 bro! I see you on some software channels ;)
      (It's the move)

    • @ghosthunter0950
      @ghosthunter0950 Před rokem +2

      Why did you leave AE for software engineering?

    • @louisuchihatm2556
      @louisuchihatm2556 Před 11 měsíci

      why leave AE

    • @stevethach3340
      @stevethach3340 Před 11 měsíci

      @@louisuchihatm2556 the biggest reason is I felt trapped in the aerospace industry. If there were layoffs or anything, I would most likely have to uproot my life and family and move to another state.
      Also, I just find tech way more interesting than rockets lol

  • @SK-ew9sy
    @SK-ew9sy Před 2 lety +27

    You are epic and the content is soooooo relatable 😂😂😂 I'm relieved to know that I'm not the only one who's feeling like this while coding!

  • @dkshadow709
    @dkshadow709 Před 2 lety +25

    It's scary at how much I can relate to this video, especially the studying part

  • @Exiide89
    @Exiide89 Před 2 lety +16

    My brain fuse was blown while listening to that solution to the array problem. Then, I played back the video again and realised I had done the same problem few months ago. LOL. The jargon is maddening. 😂😂😂

  • @JohnCena963852
    @JohnCena963852 Před 2 lety

    Just did the same thing today. Feeling better after watching this video. Thanks Nick.

  • @play_sports_and_read_books
    @play_sports_and_read_books Před 2 lety +73

    The hash map thing was about to kill my interview. I watched the first part a day prior to the interview and that stuck to my head, and I couldn't find a solution for some time because my mind kept going to the hash map. Then I figured the trick out.

  • @zihengliao236
    @zihengliao236 Před 2 lety +10

    I know nothing about coding, but ur videos give me a good laugh. I’m really enjoying it, keep up the great work!

    • @nicholast
      @nicholast  Před 2 lety

      thanks, glad you enjoy them :)

  • @Ezdiess
    @Ezdiess Před 2 lety +45

    This indian guy killed me. So relatable xD

  • @beatrixzhou
    @beatrixzhou Před 2 lety +18

    it’s so True 😂 every time when I’m stuck on leetcode I watch some video to understand the approach and it’s always some Indian guys video but hey they really explain stuff very well 🤪

  • @jasonbourne8628
    @jasonbourne8628 Před 2 lety +2

    I didn’t expect this random video to be this fun!

  • @nupoorvibhandik
    @nupoorvibhandik Před 2 lety +12

    Thanks for honouring Big Time Rush music at the end!
    Your video + BTR = made my day :)

  • @teamev1398
    @teamev1398 Před 2 lety +24

    Love these "Be like" Series😂

  • @marcuscasagrande7596
    @marcuscasagrande7596 Před 2 lety +11

    The part where you stopped to draw some examples to understand the problem instead of just coding it all right away actually came as a relief. Means that its expected to find it hard to undertand.
    I mean, the hashmap question in the previous video made me be like "whaaaat"

  • @asmmeto55
    @asmmeto55 Před 2 lety +3

    The channel keeps growing and the videos keep getting better and better. Gotta love it.

  • @chicodimdim3025
    @chicodimdim3025 Před rokem +6

    I just completed the Google IT support certification on Coursera and all these leetcode videos appeared on CZcams the same day. Now I'm watching all these videos and taking notes. I feel like I accomplished one thing only to see that I still have a long road to travel still. 🛣️

  • @ankit2056
    @ankit2056 Před 2 lety

    I am really enjoying (and relating) to your video, keep them coming!

  • @ziletariq9036
    @ziletariq9036 Před 2 lety

    why in the hell of interviews I am enjoying your videos so much! I can relate and how I am ending up with the surprises at the end and how you tell yourself in the begining you are gonna fail anyways ...hilarious!! So me these days!! :D

  • @z3827
    @z3827 Před 2 lety +21

    me, an education major, watching this like i have any clue what he’s talking about: ☺️☺️🕺🏽

  • @practicalsanket
    @practicalsanket Před 2 lety +2

    That Kadane's algorithm part is epic! 😛

  • @lulu3514
    @lulu3514 Před 2 lety

    Watching your video is really relaxing. Nice content!!

  • @lightyearahead
    @lightyearahead Před 9 měsíci +1

    This is exactly what my reaction is when interviewer says, "lets move on to next question"

  • @joycewambui824
    @joycewambui824 Před 2 lety +1

    I'm preparing for an interview and this hits so close to home.

  • @numberiforgot
    @numberiforgot Před 2 lety

    I will absolutely join your discord this content is gold.

  • @pranavajain3669
    @pranavajain3669 Před 2 lety

    Great man waiting for the next video 👌

  • @islandblaze007
    @islandblaze007 Před 2 lety

    Awesome content bro! Loving it! 🖖😎

  • @TheSab3r
    @TheSab3r Před 2 lety +17

    Bruh this is literally reality.

  • @chiefmofo
    @chiefmofo Před rokem

    Nicholas' is master of the backhand encouragement. Every Comp Sci roommate

  • @Danzlh
    @Danzlh Před 2 lety +1

    LMAO that pause to check your name

  • @davidhero125
    @davidhero125 Před 2 lety

    FaceZon what... Lol, that was catchy. Love the video..

  • @lechatsportif124
    @lechatsportif124 Před 2 lety

    I spit my water out at the cut and paste. Thanks for that.

  • @L27JJ
    @L27JJ Před 2 lety

    I love these vids, keep it up

  • @MaxGuides
    @MaxGuides Před 2 lety +4

    Same. My question was given the roots of two binary trees find if the smaller tree is within the larger tree… interviewer considered below the smaller tree could be part of the larger tree & still contain the smaller tree…I forgot to.

  • @embedded_software
    @embedded_software Před rokem +1

    I actually went to that problem on LeetCode after seeing this video and was unable to solve it. The solution I came up with passed about 70 test cases but then TLE'd. The solution I read was pretty ingenious. I wouldn't have thought of it myself.

  • @miguelconstantino-guzman7957

    You made me laugh on the recursion part

  • @anirudh_k1051
    @anirudh_k1051 Před 2 lety +11

    I need a friend like Nicholas , the interview saver 😂😂

  • @AndrewYeung009
    @AndrewYeung009 Před 2 lety

    Crazy channel growth!

  • @JackHeTech
    @JackHeTech Před 2 lety +5

    production level: 🔥🔥🔥

  • @floguo
    @floguo Před 2 lety +3

    this man is single handedly bringing back big time rush fr

  • @nirmalrawal7494
    @nirmalrawal7494 Před rokem

    That peek at your name by Nick-Son tho 🥲

  • @BSmith43130
    @BSmith43130 Před 2 lety

    Halfway through this video, but it is so accurate to my experience right now..haha

  • @moneymaker7307
    @moneymaker7307 Před 2 lety +1

    LMAO at the end cause the exact same thing happened to me during my meta interview. I saw the question the day before my interview and I did not deeply study it.

  • @keymeow03
    @keymeow03 Před 2 lety +2

    Ngl I laughed my ass off on the last part about the 2nd question.

  • @rewrose2838
    @rewrose2838 Před 2 lety +1

    I didn't even understand the array question and your solution 😅

  • @Mmmkay..
    @Mmmkay.. Před 2 lety

    😂😂😂😂 I imangined the “everybody hatessss chris” theme song playing in the background at the end

  • @Gioeufshi
    @Gioeufshi Před 2 lety +9

    3:38 does not work for all-negative arrays tho.

  • @gamerboywinner4182
    @gamerboywinner4182 Před 2 lety +1

    Love these videos

  • @tyricecdot
    @tyricecdot Před rokem +1

    This is me right now haha. Well I don’t copy and paste, but I pretty much rewrite it hoping I understand it 😅

  • @AnuragSingh-uv6ub
    @AnuragSingh-uv6ub Před 2 lety

    Am a med student and I understand ntg but I really love and appreciate your work... Thanks 👍

  • @omgitsjakenjames
    @omgitsjakenjames Před 2 lety +1

    “Hey sorry I’m late, I was just outside” me

  • @johandelao3186
    @johandelao3186 Před 2 lety +4

    Great video! What is the name of the monitor you have?

  • @kashisharif2720
    @kashisharif2720 Před 2 lety +2

    as someone who is going through placements .... this happens to be painfully true

  • @JSDev776
    @JSDev776 Před 2 lety +18

    the code that he copied was so elegant! hard to understand but elegant.

  • @Heroguyjk
    @Heroguyjk Před 2 lety

    your vids are cool, good to see a youtuber from UW

  • @oreoisoverrated7803
    @oreoisoverrated7803 Před rokem +3

    for a sec i thought he was Eddy from twoset violin lmao

  • @inate2552
    @inate2552 Před 2 lety +17

    Interviewer: "Nick, the problem is this: the array has a maximum subroutine of array times the nth power of the maximum and minimum array iteration. How do we check for indices variants in the array iteration subroutine?"
    Nick: *Ha! This is easy*
    Fuckin wut? Jesus christ I'm doing the wrong degree lmfao

    • @Th3M4larky
      @Th3M4larky Před 2 lety +3

      🤣🤣🤣 ikr? What is this sorcery? Im learning HTML, CSS, possibly JavaScript (self learn) and I'm pretty sure I won't have to worry about that stroke of a sentence. lol.

  • @erikawwad7653
    @erikawwad7653 Před 2 lety +14

    dont forget clutching a problem in an interview that you pushed off learning on leetcode

    • @nicholast
      @nicholast  Před 2 lety +1

      Haha you should check out the “Coding Interviews Be Like” vid on my channel 😉

    • @blasttrash
      @blasttrash Před 2 lety +1

      what does clutching mean?

    • @kishaloyb.7937
      @kishaloyb.7937 Před 2 lety

      @@blasttrash it means, that you know how to solve the problem, like the method, but you don't know how to implement it and write it in form of a code. So you somehow brainstorm and successfully code it in an interview and get the desired output. It's like studying in your head while you are giving an exam.

    • @trustyEXE
      @trustyEXE Před 2 lety +1

      @@blasttrash It means succeeding at something when you either have not practiced it, or have very little time left to complete it.

    • @totally_not_a_bot
      @totally_not_a_bot Před 2 lety +1

      @@blasttrash Last-minute, unexpected success.

  • @AliMalik-yt5ex
    @AliMalik-yt5ex Před rokem +4

    OK I thought I was stupid but seeing a Waterloo student struggle makes me feel better about myself 😂

  • @rishabhanand4270
    @rishabhanand4270 Před 2 lety +25

    Not to brag, but tree problems, you somehow make it through (especially binary tree problems). It's the graph ones that are super hardcore.

  • @sucywang1795
    @sucywang1795 Před 2 lety

    sounds about right honestly. this is legit.

  • @regd9297
    @regd9297 Před 2 lety

    100% accurate with the interviewer always being late

  • @PhilipAlexanderHassialis
    @PhilipAlexanderHassialis Před 2 lety +8

    * be a software engineer for 16+ years
    * be promoted to a team leading position for some mission critical software applications
    * be unwinding in CZcams after the first day's work in a new sprint
    * be watching the video and the problems displayed
    * be figuring out I can't even understand the first problem
    4:05 MFW

    • @boiimcfacto2364
      @boiimcfacto2364 Před 2 lety

      Greentexts don't have to start every line with "be" lmao

    • @pinkmark4047
      @pinkmark4047 Před 2 lety +2

      My boy using “mfw” in 2021

  • @ramenu8150
    @ramenu8150 Před 2 lety +1

    Love these. :)

  • @Madadate
    @Madadate Před 2 dny

    "ugh, recursion" is sooo relatable

  • @ambika5817
    @ambika5817 Před 2 lety

    great content and the google meet notification sound XD

  • @gabriellegal4496
    @gabriellegal4496 Před 2 lety +42

    I like how you can make a funny video without saying any swears, unlike most of the ytb channels. Keep up with the good work, Nick

    • @nicholast
      @nicholast  Před 2 lety +3

      thanks :)

    • @Sz-hi7wj
      @Sz-hi7wj Před 2 lety +1

      funny? this video is damn scary for me idk why

  • @jayrollo1352
    @jayrollo1352 Před 2 lety +5

    You forget everything after you get your first offer.

  • @bl_bangtan2698
    @bl_bangtan2698 Před 2 lety

    I'm lost with what's happening but it sounds interesting makes me slightly regret taking med course😂

  • @shubhamdwivedi1476
    @shubhamdwivedi1476 Před 2 lety +2

    The show must go on ,I Iam following your videos and and I found them very interesting Can you just guide me ,can you plz give some tips to learn coding effectively and how did you learn.

  • @blackfox3082
    @blackfox3082 Před 2 lety

    So glad I went into ME instead, but I liked the pretty tree pictures!

  • @shreyaskulkarni526
    @shreyaskulkarni526 Před 2 lety +11

    1:45 the way he was playing with pen was awesome

  • @larenlerman3981
    @larenlerman3981 Před 2 lety

    This is too accurate that it’s scary

  • @youraverageguide
    @youraverageguide Před 2 lety

    Amazing video!

  • @maganhassan2627
    @maganhassan2627 Před 2 lety

    Waiting for part 3 now XD

  • @jacobbreitbach3307
    @jacobbreitbach3307 Před 2 lety

    "ugh recursion" felt that

  • @HM_Milan
    @HM_Milan Před 2 lety

    Need more continue this series

  • @sebcodestheweb9385
    @sebcodestheweb9385 Před 11 měsíci

    Bruh, that "were is this guy he's ten minutes late" was too accurate

  • @jnanasrija7915
    @jnanasrija7915 Před 2 lety

    WAITING FOR PART -3!!!!

  • @dharmawangsa9592
    @dharmawangsa9592 Před rokem

    Thank you, I just follow your 8 step on how to solve leetcode problem. now I am full stuck engineer at google

  • @joshbedo8291
    @joshbedo8291 Před rokem

    Pretty ironic thats how i felt today trying to solve number of islands.. was thinking to myself I've been a software engineer for 13 years at top startups in NYC and I still have 0 faith i'd remember how to solve this during an interview lol

  • @strategy_gal
    @strategy_gal Před 2 lety

    This is so cool...couldn't wait for part 3! did he really fail leetcode problem 662?