Easy Google Coding Interview With Ben Awad

Sdílet
Vložit
  • čas přidán 19. 11. 2020
  • In this video, I conduct an easy Google coding interview with Ben Awad, a software engineer and tech CZcamsr. As a Google Software Engineer, I interviewed dozens of candidates. This is an easier version of the type of coding interview that you would get at Google or any other big tech company.
    Want to see me get interviewed by Ben Awad? Check out the video we made on his channel: • Beginner React.js Codi...
    AlgoExpert: www.algoexpert.io/clem
    SystemsExpert: www.systemsexpert.io/clem
    My LinkedIn: / clementmihailescu
    My Instagram: / clement_mihailescu
    My Twitter: / clemmihai
    Prepping for coding interviews or systems design interviews? Practice with hundreds of video explanations of popular interview questions and a full-fledged coding workspace on AlgoExpert - www.algoexpert.io - and use the promo code "clem" for a discount on the platform!
  • Věda a technologie

Komentáře • 773

  • @clem
    @clem  Před 3 lety +758

    What’s more cocky and sarcastic than Ben Awad? Ben Awad after he successfully reverses a linked list.
    Check out the video we did on Ben’s channel if you wanna see _me_ get interviewed by Ben! czcams.com/video/gnkrDse9QKc/video.html

    • @sangrambarge7081
      @sangrambarge7081 Před 3 lety +18

      you guys are making awesome content, making software engineering fun

    • @thaer954
      @thaer954 Před 3 lety +3

      Can i apply and get an interview at Google when I'm living overseas? Or do i have to move to the US before applying for the job...

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

      What advice do you have for us foreigners?

    • @migueldomingos4570
      @migueldomingos4570 Před 3 lety

      😂

    • @poisson6673
      @poisson6673 Před 3 lety +1

      czcams.com/video/3Eqidoe2Iog/video.html

  • @leonardomorel9412
    @leonardomorel9412 Před 3 lety +774

    I imagine this guy saying "idk that's pretty sus" in the actual interview and the google techlead be like
    "Aight, you in"

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

      AMOGUS KEANU REEVES REDDIT WHOLESOME 100 EPIC GAMER MOMENT GOOGLE APPROVED INTERVIEW

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

      @@ZVEKOfficial ok

    • @foo3268
      @foo3268 Před 2 lety

      @@ZVEKOfficial this was 11 months ago, give it a rest brainlet

  • @GyaneshISHU
    @GyaneshISHU Před 3 lety +410

    Clem : Do you have any questions for us ?
    Ben : How on earth can you keep using Angular ?

  • @TechWithTim
    @TechWithTim Před 3 lety +2118

    Hey, why does Ben get the easy question!!! I had to suffer through the very hard one for a whole hour 😑

    • @rareshika
      @rareshika Před 3 lety +56

      R.I.P

    • @devguyahnaf
      @devguyahnaf Před 3 lety +120

      coding interviews are truly broken.......it just went brrr

    • @dontsubscribetomychannel8619
      @dontsubscribetomychannel8619 Před 3 lety +7

      Rip

    • @blazi_0
      @blazi_0 Před 3 lety +29

      Hey Tim
      you can watch the title , it says " Easy interview "
      And I think you r better than awad in coding 😏😉⚘

    • @TechWithTim
      @TechWithTim Před 3 lety +54

      but thanks ;)

  • @LuisMorales-yx8di
    @LuisMorales-yx8di Před 3 lety +644

    Clement you should interview more beginners and see their progress in a couple of months. this would be really fun and interesting

    • @mti2fw
      @mti2fw Před 3 lety +6

      It'll be awesome! 🚀

    • @list9016
      @list9016 Před 2 lety +20

      calling ben a beginner DAMN

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

      @@list9016 bro did you see how much he struggled to reverse a linked list? Clearly a beginner, at least with data structures and algorithms

    • @htdrednaxela96
      @htdrednaxela96 Před rokem

      ​@@jomalomal these things take practice ,it's nothing magical with them.

    • @GodofStories
      @GodofStories Před rokem +2

      @@jomalomal you're confusing the meaning of a "beginner" to programming to the meaning of knowing how to study particular coding problems like reversing a linked list. I might have studied linked lists in a college class. But programming for 5 years + earning more than 6 figures. I have never needed to know how to reverse a linked list. But once I looked at the problem, studied it and learnt it fully within a couple hours.
      So I'm saying you're confusing studying leetcode questions to being a beginner to coding. You can program without knowing a lot of these questions like inverting a binary tree. All those questions only show you know how to study for an exam. Ben is clearly not a beginner, he's programmed a lot. He just didn't take time to study those Leetcode questions

  • @MisraPreetiman
    @MisraPreetiman Před 3 lety +545

    *changes d to D and calls it Big D in a coding interview*
    Interviewer - HHHHHMMMMMMMM 👀

    • @aryamankukal1056
      @aryamankukal1056 Před 3 lety

      tel me the timestamp for when that happened! Please!

    • @bingpingbongpong662
      @bingpingbongpong662 Před 3 lety

      @@aryamankukal1056 pretty much at the beginning, first question when he starts commenting the way

    • @brewlian11
      @brewlian11 Před 3 lety

      Dallas is also referred to as The Big D 😂

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

      @@aryamankukal1056 6:48

    • @josephmichel2581
      @josephmichel2581 Před 3 lety

      Finally someone who noticed

  • @andrewv8548
    @andrewv8548 Před 3 lety +303

    I love Clement giggling at Ben's every move

    • @clem
      @clem  Před 3 lety +115

      That's what happens when you interview a natural comedian.

    • @nomadvagabond1263
      @nomadvagabond1263 Před 3 lety

      @@clem ehm👀 do you mean he is a joke?😂😂

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

      @@nomadvagabond1263 nope his live is a joke 😂😂😂

  • @lucasthorsen784
    @lucasthorsen784 Před 3 lety +69

    This video was super fun, I myself love frontend engineering and I'm a big fan of both you and Ben Awad, so I'd definitely like to see you put him through a real google coding interview.

  • @natetate785
    @natetate785 Před 3 lety +111

    Ben looks so much happier in this video then he does in any of his own.

  • @petyoruzhin7191
    @petyoruzhin7191 Před 3 lety +16

    Im subscribed to both and am happy to finally see you two in action. Had fun watching this and the one on Ben's channel! Cannot wait for the follow up videos on both sides. xD

  • @weirdduck4578
    @weirdduck4578 Před 3 lety +46

    It's kind of fun seeing a master failing a bit in other master's craft. Great video clement.

  • @jonsnow9246
    @jonsnow9246 Před 3 lety +118

    There is a video on my Algoexpert ad 😂

  • @jovanjevtic5311
    @jovanjevtic5311 Před 3 lety +518

    You should interview him for Angular

    • @clem
      @clem  Před 3 lety +264

      I think Ben would just walk out of that interview and even *rm -rf* the machine he'd be interviewing on.

    • @alphacoder3822
      @alphacoder3822 Před 3 lety +10

      Ben hates angular

    • @dishagupta7446
      @dishagupta7446 Před 3 lety +10

      I literally want to watch this😂😂

    • @notquitehim
      @notquitehim Před 3 lety

      @@clem hahahahahah

    • @Hannah-ly6ff
      @Hannah-ly6ff Před 3 lety

      @@clem 😂😂😂

  • @atifadib
    @atifadib Před 3 lety +744

    i thought clement will pull his hair out as soon as awad named a variable "next_guy" :)

    • @clem
      @clem  Před 3 lety +174

      😂Not the best variable name for an arbitrary linked list node, but I figured Ben wouldn't name it like that in a real production-grade codebase. Also, this was just a fun interview!

    • @clem
      @clem  Před 3 lety +157

      Classic Ben Awad though.

    • @necaton
      @necaton Před 3 lety +6

      what would be a better name? xD

    • @casperes0912
      @casperes0912 Před 3 lety +5

      @@JustTheHighlights Equality!

    • @mostafahana1713
      @mostafahana1713 Před 2 lety

      😂😂😂😂

  • @De4dlyX
    @De4dlyX Před 3 lety +35

    this is one of a few computer programmers that is this energetic and interesting in terms of communication and interaction, most people I know are nerds and introverts, that is also myself LOL

  • @kuei-chinhuang815
    @kuei-chinhuang815 Před 3 lety +5

    Absolutely love this video!!!! Look forward to you guys making the next one 🤩

  • @dk3153
    @dk3153 Před rokem

    dude seems so happy and cocky at the same time, couldnt help it but smile all the way through the video

  • @killswitch4897
    @killswitch4897 Před 3 lety +34

    This was by far one of the best nd funniest vids I've seen on this channel....
    "How about that algo girl" was just epic 😂😂

  • @JayPatel12928
    @JayPatel12928 Před 2 lety +28

    Apart from the actual coding, this guy is just so fun to work with.

  • @avadhut325
    @avadhut325 Před 3 lety +7

    This was fun. Really looking forward to the next interview with Ben.

  • @bonzupippinpaddleopsicopol8094

    10/10 would love to see Ben do the actual coding interview. Make him use Angular 👀

  • @medaminesfaxi909
    @medaminesfaxi909 Před 3 lety +188

    best variable name : next_guy xD

    • @DasBeatz
      @DasBeatz Před 3 lety +25

      next_next_guy
      next_guys_neighbor_that_asks_for_sugar

  • @amirhassan6549
    @amirhassan6549 Před 3 lety

    This the only video I know how to reverse linked list.
    Means easy task I have seen on this channel otherwise I have only seen a difficult task here.
    I prefer all who see my comment to see this channel because it is really helpful.
    Best for logic design.

  • @rw5736
    @rw5736 Před 3 lety +7

    Ben is the man. Cool to see the colab!

  • @roshanmhatre8810
    @roshanmhatre8810 Před 3 lety +23

    Your videos are so awesome, funny and at the same knowledgeable ❤️
    Please make more Google coding Interviews @AlgoExpert Guy

  • @geeshta
    @geeshta Před 3 lety +5

    "I'm not happy about that naming convention" ohhh Ben I love you for this.

  • @anchalpandey9074
    @anchalpandey9074 Před rokem

    Jezz i can never be this happy talking or giving my interview both of them are so chill. Greate watching them . I'm far away to crack any interview btw.

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

    That inverseLinkedList could be a real challenge for someone who never heard about that before, it is not something we normally do in a daily basis. I can say it is not easy, even harder than the matrix challenge in the later session with Ben.

  • @BehruzbekOtayev
    @BehruzbekOtayev Před 3 lety +10

    Can you do the round two please? With more difficult questions??? Would love to see Ben grind

  • @Saitama-py8dz
    @Saitama-py8dz Před 3 lety +16

    how could you beat the guys who have been coding for years when you have been coding only for 6 months? you are amazing and talented.

    • @danny.golcman6846
      @danny.golcman6846 Před 10 měsíci +3

      He is smart and also has a math background so that helps him a lot when he codes as coding involves a lot of problem solving, logic, and analytical thinking.

  • @Joshuahendrix
    @Joshuahendrix Před 3 lety +22

    Thanks for this, these videos have definitely upped my confidence in my own abilities so I appreciate you guys!

  • @GodofStories
    @GodofStories Před rokem

    Dude watching this again after an year or so, watching Ben is still so funny man

  • @Digital963
    @Digital963 Před 3 lety +466

    He lost me when he shortened “temp” to “tmp” but left “previous” as “previous

  • @damankumar3277
    @damankumar3277 Před 3 lety +3

    I started watching this video and i got so lost in it that i didn't feel that it was 28 fuckin minutes long... Amazing one🔥❤️

  • @suushi-baked
    @suushi-baked Před 3 lety +6

    I don't know why but this video hyped me up to practice my programming!

  • @DiogoVazTavares
    @DiogoVazTavares Před 3 lety +13

    Ok! Now I wanna see Ben go thought a real intreview! :D

  • @ISmellCapDog
    @ISmellCapDog Před rokem

    I pause the video at the linked list reversal question and challenged myself to come up with a function. It took me an hour but I finally got it! Now I'll watch what he came up with.

    • @ISmellCapDog
      @ISmellCapDog Před rokem +2

      I completely over complicated my method compared to his...

  • @tijanisylla1348
    @tijanisylla1348 Před 2 lety

    This is really fun !! I totally agree that the Py indentation is over whelming lol. Thank you guys for the video !

  • @Furiac.
    @Furiac. Před 8 měsíci

    this was fun, one of those easy questions that just takes some examples to run through and get it down

  • @ShubhamSinghYoutube
    @ShubhamSinghYoutube Před 3 lety +12

    Hey Clement, Pls make a playlist of your Mock Programming interview questions.
    Thank you in advance.

  • @blasttrash
    @blasttrash Před 3 lety +55

    17:21 Ben is not pulling his punches back lol. Roasting about Vim mode in the video 😂

  • @mr.mystiks9968
    @mr.mystiks9968 Před 3 lety +43

    Imagine if a very skilled candidate adopted Ben’s skill of typing jk and troll var names and comments

  • @satyafariz8587
    @satyafariz8587 Před 2 lety

    i love how the algoexpert guy just smiles all the time

  • @toxicass100
    @toxicass100 Před 3 lety +3

    You also can reverse linked list with recursion:
    def reverse_linked_list(node, next=None):
    if node.next is None:
    node.next = next
    return node
    new_node = node.next
    node.next = next
    return reverse_linked_list(new_node, node)

  • @luizcarvalho7597
    @luizcarvalho7597 Před 3 lety +5

    This video was awesome, really. Waiting for the google interview heheh

  • @Srinivassss1999
    @Srinivassss1999 Před 3 lety +19

    I forgot how to reverse a linked list after I saw Ben scramble😂

  • @rogeralexander1539
    @rogeralexander1539 Před 3 lety

    I am not ready lol. Great video, first video I watch 100%.

  • @blazi_0
    @blazi_0 Před 3 lety +1

    U guys are awesome !
    I enjoyed watching the video

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

    I hope Ben gets the job after countless of interviews lol Great Content. Thanks!!

  • @fafamnzm3126
    @fafamnzm3126 Před 3 lety

    yeeeaaaaah, let's do that!!! let's do the full interview for Mr. ben

  • @facu5563
    @facu5563 Před 3 lety

    GREAT video please do a second part!!!
    Cheers from Arg

  • @aarushiagarwal8938
    @aarushiagarwal8938 Před 9 měsíci +2

    I just loved the video ❤❤ the interview was too cool to be called as an interview 😊

  • @tabancosmos2235
    @tabancosmos2235 Před 2 lety

    Your videos are all over the internet. I had to subscribe this time, :)

  • @stefonsimmons651
    @stefonsimmons651 Před 3 lety +1

    Yes. Please. Let's see the google interview!

  • @doublesid1395
    @doublesid1395 Před 3 lety

    these questions getting easier and easier

  • @wordonice4457
    @wordonice4457 Před 2 lety

    Hey, man, I don't know about you, but I absolutely enjoyed this video. Learned so much!

  • @adityak1231
    @adityak1231 Před 3 lety +12

    I didn't know what inverting a binary tree was and once I saw that diagram, I immediately got the solution(same as what Ben did).
    Also, using multiple assignment is shorter tree.left, tree.right = tree.right, tree.left.

    • @Dyanosis
      @Dyanosis Před rokem

      tree.left, tree.right = tree.right, tree.left will be incorrect because tree.left will not be what you want to set tree.right to. You still need a "temp" var to hold tree.left before you set tree.right. But yes, multiple assignment (for languages that understand it, is useful here).

    • @adityak1231
      @adityak1231 Před rokem

      @@Dyanosis it does. The assignment expression has variables passed by values on the right. Try running it for yourself once.

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

    using Python made inverting the binary tree a lot easier.. I'm a medium level coder and it took me about 45 mins to come up with the recursive logic and code the same in Java.

  • @Jambajakumba
    @Jambajakumba Před 3 lety +1

    Let's get that interview!!!!!

  • @gherdelescugrigore7601

    I think that's the first video where I really understood something (beginner programmer problems) =))

  • @MrRobotUy
    @MrRobotUy Před 3 lety +1

    Awesome video guys! Thanks!!

  • @yGKeKe
    @yGKeKe Před 2 lety

    Oh snap, finally a question I actually saw in algorithms class.

  • @amanbaghel1408
    @amanbaghel1408 Před 3 lety

    this is a coolest interview video, 3 nodes create prev, curr, frwd and get job in google😁

  • @luisponce3580
    @luisponce3580 Před 3 lety

    Yes please! Another video! Ben and Clem =

  • @MsLemons12
    @MsLemons12 Před 3 lety +79

    you guys seem like you've been friends your entire lives lol

    • @discretelycontinuous2059
      @discretelycontinuous2059 Před 3 lety +12

      Wheras Clement has created a platform for training people to crunch through these thoes of interview questions (and has hired tim to help him with it), wheras Ben questions the relevance of the practice.
      It would be interesting to hear them discuss / debate the relative advantages and disadvantages of coding interviews

    • @AndrewDaniele87
      @AndrewDaniele87 Před 3 lety

      @@discretelycontinuous2059 I want to see this!

  • @TruthSeekerClub
    @TruthSeekerClub Před 3 lety

    I never inverted a binary tree before.
    paused the video and solved it and continue to watch.
    I came up with the same solution

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

    Great work clem. Best getting your application tested by Ben himself.

  • @dinckelman
    @dinckelman Před 3 lety +22

    Oddly enough, this is a lot like my recent interviews went, minus the fact that I had a white background google drive instead of an ide. My interviewer also asked me weird questions and then got both of confused for half an hour c:

  • @narutosasuke30
    @narutosasuke30 Před 3 lety

    This was a fun interview video! 👍

  • @yashpurohit509
    @yashpurohit509 Před 3 lety

    Your previous vedio is of very much knowledge, fun and this is insane plzz both of you kindly upload more vedio like this you with algo ben with react or vue.... Or other framwrks...
    Hoping your best for future 🙏🙏..
    We are Indian we are doing 🙏 rather than 👍🏼,🔥....
    ... Plz consider my concern ....🥺

  • @maximemustergirl6458
    @maximemustergirl6458 Před 3 lety

    Entertaining and fun as always ;)

  • @graylagx2280
    @graylagx2280 Před 3 lety

    I'm only subscribing because you got Ben to come on your video.

  • @ezpz463
    @ezpz463 Před 3 lety

    Ben throwing shade on clem every now and then ;)

  • @Meridian-lk2fo
    @Meridian-lk2fo Před 3 lety +3

    I've only been in Computer Science at school for three months, so all of this is well over my head, but it's fascinating to watch anyway.

  • @jacoblockwood4034
    @jacoblockwood4034 Před 3 lety

    yes part two please!!
    new sub :)

  • @mnasirizadeh6007
    @mnasirizadeh6007 Před 3 lety

    You are great! Following you always 👍👌

  • @sapito515
    @sapito515 Před 3 lety +5

    I'd love to see a legitimate interview!

  • @kimayapanash8998
    @kimayapanash8998 Před 3 lety +41

    I think we are gonna get a new worker for algo expert 😁

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

    The chemistry is unmatched.

  • @josh1234567892
    @josh1234567892 Před rokem +1

    8:55 "This is what I know I think is right"
    story of my life lol

  • @arijitdas7526
    @arijitdas7526 Před 3 lety +9

    I've got youtube notification for this video from both channels 😂

  • @winuxworx
    @winuxworx Před rokem

    inverted binary should be reversing all the numbers where head now points to the last record which is the highest number and the last record at the bottom should be pointing to 1.
    This binary tree problem is instead called flipping the left and right nodes of a binary tree

  • @luisafonseca6768
    @luisafonseca6768 Před 3 lety

    Bring the interview!!

  • @Shubham-xh9nz
    @Shubham-xh9nz Před 3 lety +43

    Imagine cracking an angular jocks in google coding interview.

  • @TheRaspPie
    @TheRaspPie Před 3 lety +89

    There's actually a missing edge case. If the linked list is empty, it is represented by None and the function crashes accessing curr.next in line 14.

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

      The function accepts the head as input, implying that the list has at least one item being the head

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

      @@ayhamboi9720 no not really. head can point to null (empty list)

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

      @@theendurance its passing the node itself not the pointer of a linked list struct, and a null node would be invalid here

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

      @@ayhamboi9720 not correct

  • @ynngih725
    @ynngih725 Před rokem

    Holy shit this guy rocked it, made me a fan

  • @chrisdanny5180
    @chrisdanny5180 Před 3 lety

    We want part 2, clément

  • @bobaashenvale3968
    @bobaashenvale3968 Před 3 lety

    Yes please, do the legitimate google interview with Ben Awad!

  • @franciscoayala6923
    @franciscoayala6923 Před 3 lety

    You should do a video with Coding Garden, it would be really interesting !

  • @EvanTempleton
    @EvanTempleton Před 3 lety +14

    @17:29 Clément exhibiting God-tier restraint :)

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

    My dream interview question. I did cry if I get this question.

    • @pant1371
      @pant1371 Před 3 lety

      unless they ask you to do it on C. Using pass by reference..

  • @dvlpr
    @dvlpr Před rokem

    I can't track what he's doing but this is already my favorite interview lol

  • @Arcvx
    @Arcvx Před 3 lety +88

    Google coding interview with Tourist when 👀

    • @clem
      @clem  Před 3 lety +40

      I'm down whenever he is!

    • @ayubkosimov199
      @ayubkosimov199 Před 3 lety +12

      @@clem tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist!!!

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

      I'm waiting for that day!!

    • @beanlighter9491
      @beanlighter9491 Před 3 lety +1

      torist doesn't give interviews

    • @cpwithsundar
      @cpwithsundar Před 3 lety +3

      @@clem Tourist will be like "I have 7 gold medals in code jam . So ask your question and watch my screen casts , rather than wasting my time". Anyway, i don't think Gennedy would ever say that.

  • @Abhishek-dp5tc
    @Abhishek-dp5tc Před 3 lety +154

    Damn I never thought inverting a binary tree is that easy

    • @clem
      @clem  Před 3 lety +64

      I don't know why everyone makes it out to be so scary or difficult! It really isn't!

    • @KayronDeacon
      @KayronDeacon Před 3 lety +93

      Because it sounds like you're flipping it vertically not horizontally.

    • @adilnawaz5346
      @adilnawaz5346 Před 3 lety

      @@KayronDeacon yess.

    • @Abhishek-dp5tc
      @Abhishek-dp5tc Před 3 lety +21

      @@clem Because of the ad, lol. I watch that ad like 30 times a day.

    • @zss123456789
      @zss123456789 Před 3 lety +1

      @@KayronDeacon yeah when I first heard it I thought it was head as input, but an array of leaf nodes or something as output, and you have to reverse the connection, so the original left child will now have its parent as its right child.

  • @JannisAdmek
    @JannisAdmek Před 3 lety

    24:00: Just a sidenode, in Python you can actually do this: tree.left, tree.right = tree.right, tree.left

  • @Nikhil-eg9zc
    @Nikhil-eg9zc Před 3 lety +12

    Man I really miss those sick card trick intros

  • @snowman4933
    @snowman4933 Před 2 lety

    Clem was literally smirking whole time

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

    I feel like he legit searched the answer to invert binary tree before hand. He struggled a little much for reversing a linked list

  • @assamsaadaoui7525
    @assamsaadaoui7525 Před 3 lety +1

    Oh god, Thank you so much for SAYING OUT LOUD the fact that Python indentation is the worst thing. Those were my first words when i first learned python.

  • @ahmedabdalla74
    @ahmedabdalla74 Před 3 lety +1

    i like the video and hope to put Ben in real google interview in soon future :->