Easy Google Coding Interview With Ben Awad

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 776

  • @clem
    @clem  4 ปีที่แล้ว +765

    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! th-cam.com/video/gnkrDse9QKc/w-d-xo.html

    • @sangrambarge7081
      @sangrambarge7081 4 ปีที่แล้ว +18

      you guys are making awesome content, making software engineering fun

    • @thaer954
      @thaer954 4 ปีที่แล้ว +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 4 ปีที่แล้ว +2

      What advice do you have for us foreigners?

    • @migueldomingos4570
      @migueldomingos4570 4 ปีที่แล้ว

      😂

    • @poisson6673
      @poisson6673 4 ปีที่แล้ว +1

      th-cam.com/video/3Eqidoe2Iog/w-d-xo.html

  • @leonardomorel9412
    @leonardomorel9412 4 ปีที่แล้ว +820

    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 3 ปีที่แล้ว +12

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

    • @MBTIMemes
      @MBTIMemes 3 ปีที่แล้ว +1

      @@ZVEKOfficial ok

    • @foo3268
      @foo3268 3 ปีที่แล้ว

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

  • @TechWithTim
    @TechWithTim 4 ปีที่แล้ว +2155

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

    • @rareshika
      @rareshika 4 ปีที่แล้ว +57

      R.I.P

    • @devguyahnaf
      @devguyahnaf 4 ปีที่แล้ว +122

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

    • @dontsubscribetomychannel8619
      @dontsubscribetomychannel8619 4 ปีที่แล้ว +7

      Rip

    • @blazi_0
      @blazi_0 4 ปีที่แล้ว +29

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

    • @TechWithTim
      @TechWithTim 4 ปีที่แล้ว +54

      but thanks ;)

  • @GyaneshISHU
    @GyaneshISHU 4 ปีที่แล้ว +427

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

  • @LuisMorales-yx8di
    @LuisMorales-yx8di 4 ปีที่แล้ว +657

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

    • @mti2fw
      @mti2fw 3 ปีที่แล้ว +6

      It'll be awesome! 🚀

    • @list9016
      @list9016 3 ปีที่แล้ว +20

      calling ben a beginner DAMN

    • @jomalomal
      @jomalomal 2 ปีที่แล้ว +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

    • @shadowpwls3
      @shadowpwls3 ปีที่แล้ว

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

    • @GodofStories
      @GodofStories ปีที่แล้ว +3

      @@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

  • @andrewv8548
    @andrewv8548 4 ปีที่แล้ว +310

    I love Clement giggling at Ben's every move

    • @clem
      @clem  4 ปีที่แล้ว +117

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

    • @nomadvagabond1263
      @nomadvagabond1263 3 ปีที่แล้ว

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

    • @aryanpuri6192
      @aryanpuri6192 3 ปีที่แล้ว +2

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

  • @PreetimanMisra
    @PreetimanMisra 4 ปีที่แล้ว +560

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

    • @aryamankukal1056
      @aryamankukal1056 4 ปีที่แล้ว

      tel me the timestamp for when that happened! Please!

    • @bingpingbongpong662
      @bingpingbongpong662 4 ปีที่แล้ว

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

    • @brewlian11
      @brewlian11 4 ปีที่แล้ว

      Dallas is also referred to as The Big D 😂

    • @INKILU
      @INKILU 4 ปีที่แล้ว +2

      @@aryamankukal1056 6:48

    • @josephmichel2581
      @josephmichel2581 4 ปีที่แล้ว

      Finally someone who noticed

  • @natetate785
    @natetate785 3 ปีที่แล้ว +119

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

  • @jovanjevtic5311
    @jovanjevtic5311 4 ปีที่แล้ว +525

    You should interview him for Angular

    • @clem
      @clem  4 ปีที่แล้ว +270

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

    • @alphacoder3822
      @alphacoder3822 4 ปีที่แล้ว +10

      Ben hates angular

    • @dishagupta7446
      @dishagupta7446 4 ปีที่แล้ว +10

      I literally want to watch this😂😂

    • @notquitehim
      @notquitehim 4 ปีที่แล้ว

      @@clem hahahahahah

    • @Hannah-ly6ff
      @Hannah-ly6ff 4 ปีที่แล้ว

      @@clem 😂😂😂

  • @weirdduck4578
    @weirdduck4578 4 ปีที่แล้ว +46

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

  • @Saitama-py8dz
    @Saitama-py8dz 3 ปีที่แล้ว +20

    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 ปีที่แล้ว +4

      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.

  • @De4dlyX
    @De4dlyX 4 ปีที่แล้ว +36

    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

  • @lucasthorsen784
    @lucasthorsen784 4 ปีที่แล้ว +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.

  • @atifadib
    @atifadib 4 ปีที่แล้ว +747

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

    • @clem
      @clem  4 ปีที่แล้ว +176

      😂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  4 ปีที่แล้ว +158

      Classic Ben Awad though.

    • @necaton
      @necaton 3 ปีที่แล้ว +6

      what would be a better name? xD

    • @casperes0912
      @casperes0912 3 ปีที่แล้ว +5

      @@JustTheHighlights Equality!

    • @mostafahana1713
      @mostafahana1713 3 ปีที่แล้ว

      😂😂😂😂

  • @dk3153
    @dk3153 ปีที่แล้ว

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

  • @Digital963
    @Digital963 4 ปีที่แล้ว +472

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

  • @jonsnow9246
    @jonsnow9246 4 ปีที่แล้ว +119

    There is a video on my Algoexpert ad 😂

  • @bonzupippinpaddleopsicopol8094
    @bonzupippinpaddleopsicopol8094 4 ปีที่แล้ว +28

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

  • @JayPatel12928
    @JayPatel12928 3 ปีที่แล้ว +28

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

  • @medaminesfaxi909
    @medaminesfaxi909 4 ปีที่แล้ว +190

    best variable name : next_guy xD

    • @DasBeatz
      @DasBeatz 4 ปีที่แล้ว +25

      next_next_guy
      next_guys_neighbor_that_asks_for_sugar

  • @mr.mystiks9968
    @mr.mystiks9968 4 ปีที่แล้ว +44

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

  • @geeshta
    @geeshta 3 ปีที่แล้ว +5

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

  • @killswitch4897
    @killswitch4897 4 ปีที่แล้ว +35

    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 😂😂

  • @TheRaspPie
    @TheRaspPie 4 ปีที่แล้ว +90

    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 3 ปีที่แล้ว +7

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

    • @theendurance
      @theendurance 3 ปีที่แล้ว +12

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

    • @claesboillot5138
      @claesboillot5138 3 ปีที่แล้ว +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 2 ปีที่แล้ว +1

      @@ayhamboi9720 not correct

  • @petyoruzhin7191
    @petyoruzhin7191 4 ปีที่แล้ว +17

    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

  • @danielgigago26
    @danielgigago26 2 ปีที่แล้ว +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.

  • @rw5736
    @rw5736 4 ปีที่แล้ว +7

    Ben is the man. Cool to see the colab!

  • @Srinivassss1999
    @Srinivassss1999 3 ปีที่แล้ว +19

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

  • @shreeram_kulkarni
    @shreeram_kulkarni 4 ปีที่แล้ว +254

    py devs: "Oh PyThoN Is ThE BeST"
    Also py dev: spending hours to find a frikin INDENTATION Error.
    LMAO

    • @omzer97
      @omzer97 4 ปีที่แล้ว +19

      you meant to say python_is_the_best :p

    • @uttamo7
      @uttamo7 4 ปีที่แล้ว +14

      Yeah if you’re dumb and don’t use a modern editor

    • @nobytes2
      @nobytes2 4 ปีที่แล้ว +1

      Use a linter bro wtf

    • @DoctorWhoNow01
      @DoctorWhoNow01 3 ปีที่แล้ว

      @@SpaceTimeBeing_ I'm new to python, what exactly are the benefits of using them? Because it's a seperate segment, you don't have to worry about indenting I assume?

    • @DavisTibbz
      @DavisTibbz 3 ปีที่แล้ว

      Exactly this. F- python

  • @blasttrash
    @blasttrash 4 ปีที่แล้ว +55

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

  • @satyafariz8587
    @satyafariz8587 2 ปีที่แล้ว

    i love how the algoexpert guy just smiles all the time

  • @toxicass100
    @toxicass100 4 ปีที่แล้ว +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)

  • @josh1234567892
    @josh1234567892 ปีที่แล้ว +1

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

  • @Abhishek-dp5tc
    @Abhishek-dp5tc 4 ปีที่แล้ว +154

    Damn I never thought inverting a binary tree is that easy

    • @clem
      @clem  4 ปีที่แล้ว +64

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

    • @KayronDeacon
      @KayronDeacon 4 ปีที่แล้ว +92

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

    • @adilnawaz5346
      @adilnawaz5346 4 ปีที่แล้ว

      @@KayronDeacon yess.

    • @Abhishek-dp5tc
      @Abhishek-dp5tc 4 ปีที่แล้ว +22

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

    • @zss123456789
      @zss123456789 4 ปีที่แล้ว +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.

  • @ISmellCapDog
    @ISmellCapDog 2 ปีที่แล้ว

    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 2 ปีที่แล้ว +2

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

  • @amirhassan6549
    @amirhassan6549 4 ปีที่แล้ว

    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.

  • @avadhut325
    @avadhut325 3 ปีที่แล้ว +7

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

  • @GodofStories
    @GodofStories ปีที่แล้ว

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

  • @jackjohnson7660
    @jackjohnson7660 2 ปีที่แล้ว +8

    For whatever reason linked lists are so confusing to me compared to other data structures. Seeing that it even made Ben have to really think about it makes me feel somewhat better about myself

    • @Dyanosis
      @Dyanosis ปีที่แล้ว

      LinkedLists are exactly what you think the are. They're Lists that refer to their elements by links. If you think about how Arrays work under the hood, they're LinkedLists, but only in memory. Meaning the Array knows where each element is due to its place in memory.
      If you're confused by LinkedLists, you must be really confused by DoublyLinkedLists then. Which is just a List where each Node knows it prev and next. Did a project in school where we built Google's ranking system using DoublyLinkedLists, it was easy and made total sense.

    • @trampflips101
      @trampflips101 ปีที่แล้ว +2

      ​@@Dyanosis "If you think about how Arrays work under the hood, they're LinkedLists, but only in memory" - that's gotta be the most confusing way of explaining arrays i've ever seen lol

  • @Shubham-xh9nz
    @Shubham-xh9nz 4 ปีที่แล้ว +43

    Imagine cracking an angular jocks in google coding interview.

  • @MsLemons12
    @MsLemons12 4 ปีที่แล้ว +79

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

    • @discretelycontinuous2059
      @discretelycontinuous2059 4 ปีที่แล้ว +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 3 ปีที่แล้ว

      @@discretelycontinuous2059 I want to see this!

  • @BehruzbekOtayev
    @BehruzbekOtayev 4 ปีที่แล้ว +10

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

  • @aarushiagarwal8938
    @aarushiagarwal8938 ปีที่แล้ว +1

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

  • @EvanTempleton
    @EvanTempleton 4 ปีที่แล้ว +14

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

  • @glenn8781
    @glenn8781 2 ปีที่แล้ว +2

    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.

  • @kimayapanash8998
    @kimayapanash8998 4 ปีที่แล้ว +40

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

    • @clem
      @clem  4 ปีที่แล้ว +17

      👀

  • @adityak1231
    @adityak1231 4 ปีที่แล้ว +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 ปีที่แล้ว

      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 ปีที่แล้ว

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

  • @ShubhamSinghYoutube
    @ShubhamSinghYoutube 4 ปีที่แล้ว +12

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

  • @MrZeffy
    @MrZeffy 3 ปีที่แล้ว +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 3 ปีที่แล้ว +6

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

  • @roshanmhatre8810
    @roshanmhatre8810 4 ปีที่แล้ว +23

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

  • @Remy2Stronk
    @Remy2Stronk 4 ปีที่แล้ว +1

    What I would have done is found the middle most index, then
    Create an array with indexes = to the previous one
    Find distance from middleIndex to each point in the list
    If currentIndex < middleIndex then add 2 x difference from currentIndex to middleIndex
    If currentIndex > middleIndex then subtract 2 x different from currentIndex to middleIndex
    Take those values from the first array, then shove them in the index in the new array that we got from the previous equation, iterated thru the entire first array

    • @pant1371
      @pant1371 3 ปีที่แล้ว

      too much complexity

    • @Remy2Stronk
      @Remy2Stronk 3 ปีที่แล้ว

      @@pant1371 i don't know how else to solve it haha

    • @pant1371
      @pant1371 3 ปีที่แล้ว

      @@Remy2Stronk that's how i did it on C:
      struct Node* reverseList(struct Node* head)
      {
      struct Node* prev = head;
      struct Node* curr = head->next;
      struct Node* tmp1 = prev;
      struct Node* tmp2 = curr;
      int i=0;
      while (curr!=NULL)
      {
      tmp1=curr;
      tmp2=curr->next;
      curr->next=prev;
      if (i==0){
      prev->next=NULL;
      }
      i=i+1;
      prev=tmp1;
      curr=tmp2;
      }
      return prev;
      }

    • @Remy2Stronk
      @Remy2Stronk 3 ปีที่แล้ว

      @@pant1371 isn't that kind of just a recursive method but does the same thing?

    • @pant1371
      @pant1371 3 ปีที่แล้ว

      @@Remy2Stronk it does the same thing but wirhout the complexity of creating a new array/list,which is not allowed either way(according to the rules of the exercise)

  • @Furiac.
    @Furiac. ปีที่แล้ว

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

  • @WebDevAnjali
    @WebDevAnjali 2 ปีที่แล้ว

    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.

  • @AhsanKhan-es7xg
    @AhsanKhan-es7xg 4 ปีที่แล้ว +30

    what's the hardest thing in the world?
    Ben: AngularJS

  • @461932570
    @461932570 3 ปีที่แล้ว +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

  • @Arcvx
    @Arcvx 4 ปีที่แล้ว +88

    Google coding interview with Tourist when 👀

    • @clem
      @clem  4 ปีที่แล้ว +40

      I'm down whenever he is!

    • @ayubkosimov199
      @ayubkosimov199 4 ปีที่แล้ว +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 4 ปีที่แล้ว +2

      I'm waiting for that day!!

    • @beanlighter9491
      @beanlighter9491 4 ปีที่แล้ว +1

      torist doesn't give interviews

    • @cpwithsundar
      @cpwithsundar 4 ปีที่แล้ว +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.

  • @chennn958
    @chennn958 4 ปีที่แล้ว +23

    Anyone know what Ben thinks of Angular?

    • @clem
      @clem  4 ปีที่แล้ว +21

      I'd be curious to hear 😏

    • @mskyba
      @mskyba 4 ปีที่แล้ว +15

      Ben loves Angular

  • @winuxworx
    @winuxworx ปีที่แล้ว

    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

  • @dinckelman
    @dinckelman 4 ปีที่แล้ว +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:

    • @bzygauksei
      @bzygauksei 2 ปีที่แล้ว

      And how did they go

  • @stefonsimmons651
    @stefonsimmons651 4 ปีที่แล้ว +1

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

  • @elirannissani914
    @elirannissani914 4 ปีที่แล้ว +18

    Bro you just have to ask the channel "The cherno" to do a google coding interview!

    • @OhhHeMad
      @OhhHeMad 4 ปีที่แล้ว

      that dude would kill it. The guy is wicked smart

  • @KOxArtist2
    @KOxArtist2 4 ปีที่แล้ว +12

    i feel like Clement didn't contribute to any of the content here. where's the feedback, where's the review, where's the alternate solutions?

  • @Learn_with_cosmos
    @Learn_with_cosmos 3 ปีที่แล้ว

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

  • @kuei-chinhuang815
    @kuei-chinhuang815 4 ปีที่แล้ว +5

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

  • @xRoughxGemx
    @xRoughxGemx 3 ปีที่แล้ว

    One thing I don't understand is how you can be using .next outside of the LinkedList class definition without having a "getter" for it. I only see the constructor there.

  • @Nikhil-eg9zc
    @Nikhil-eg9zc 4 ปีที่แล้ว +12

    Man I really miss those sick card trick intros

  • @JannisAdmek
    @JannisAdmek 4 ปีที่แล้ว

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

  • @TruthSeekerClub
    @TruthSeekerClub 3 ปีที่แล้ว

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

  • @Joshuahendrix
    @Joshuahendrix 4 ปีที่แล้ว +22

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

  • @dukeofminecraft
    @dukeofminecraft 3 ปีที่แล้ว

    I feel like the way Ben interview is really good, he acts clueless and really plays up the fact that he’s using his problem solving skills. Then again he could actually just be clueless with good problem solving skills lol

  • @BlockCylinder
    @BlockCylinder 4 ปีที่แล้ว +2

    I really enjoyed this video but I don't believe Ben can simulate a legit technical interview. He didn't take this seriously at all.
    I'd really love to see a mock interview with a recent Fullstack graduate.

  • @Kenji_195
    @Kenji_195 3 ปีที่แล้ว

    /*I stopped the video at 12:29 and decided to do it by my own before watching his solution (not sure if it's kind of cheating because I saw a "starting point", although I didn't really based the idea on the solution so far at that point)
    After between 3-5 minutes I came up with this:*/
    (head)
    curr = head;
    prev = null;
    do
    {
    next = curr.next;
    curr.next = prev;
    prev = curr;
    curr = next;
    } while (curr != null);
    //What do you guys think?
    //Well, time to keep watching the video, to see what Ben came up with

  • @DiogoVazTavares
    @DiogoVazTavares 4 ปีที่แล้ว +13

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

  • @CrashLaker
    @CrashLaker 4 ปีที่แล้ว +4

    what's that extension you used to kj -> Esc at 4:09 omg i sooo need that!!

    • @Jim-bh2tb
      @Jim-bh2tb 4 ปีที่แล้ว

      I thinks its vimium but Idk what command he typed.

  • @harispapadopoulos4295
    @harispapadopoulos4295 4 ปีที่แล้ว +29

    I didn’t get notified for the video but it popped on my recommendations. I guess where the notifications fail the all mighty TH-cam algorithm is there to save the day.
    Also, what did you main back in the days you were playing Overwatch ?
    YoE: -1
    TC:0K/ Year

    • @clem
      @clem  4 ปีที่แล้ว +8

      Thank goodness for the TH-cam algorithm.
      And I mained Mei, believe it or not.
      YoE: 3.5
      TC: over 9000

    • @rareshika
      @rareshika 4 ปีที่แล้ว +1

      @@clem you should do a video where you play Overwatch, btw I am a 14 yo romanian who loves your content

  • @TheSocialDeveloper
    @TheSocialDeveloper 4 ปีที่แล้ว +19

    I heard they’re adding ACT/SATs to their interviews now

    • @lagon7830
      @lagon7830 3 ปีที่แล้ว +4

      Plans changed in the past 5 months. You now have to design a commercial airliner from scratch to work for most companies.

    • @TheSocialDeveloper
      @TheSocialDeveloper 3 ปีที่แล้ว +1

      @@lagon7830 That makes sense!

  • @ezpz463
    @ezpz463 3 ปีที่แล้ว

    Ben throwing shade on clem every now and then ;)

  • @张翼-r8l
    @张翼-r8l 3 ปีที่แล้ว +1

    Do you guys think it's interaction/energetic/proactively communicating, or do you think it's kinda rude, when he interrupted/talked to himself when Clement was talking?

  • @doublesid1395
    @doublesid1395 4 ปีที่แล้ว

    these questions getting easier and easier

  • @Meridian-lk2fo
    @Meridian-lk2fo 3 ปีที่แล้ว +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.

  • @danielbostwick2975
    @danielbostwick2975 3 ปีที่แล้ว

    Recursion is our friend here. Pop off the head, reverse the rest (recursively), append the original head. Return :)
    To preserve the original llist, do the same but loop through reverse(head.rest) as another variable, then append head.first as a separate link on the end. Return :)

  • @jenniferdiaz3339
    @jenniferdiaz3339 3 ปีที่แล้ว +1

    Hi, I’m a beginner. Would using [::-1] apply here to reverse the list?

  • @ye4us
    @ye4us 4 หลายเดือนก่อน +1

    As someone new to programming, reversing linked lists still feels worlds away lol. Practice makes permanent i guess

  • @xavierica
    @xavierica 3 ปีที่แล้ว +1

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

  • @graylagx2280
    @graylagx2280 4 ปีที่แล้ว

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

  • @yroman11
    @yroman11 3 ปีที่แล้ว

    I just got the "SO YOU WANNA BE A SOFTWARE ENGINEER AT GOOGLE?" add lmao

  • @amysheeter877
    @amysheeter877 ปีที่แล้ว

    The chemistry is unmatched.

  • @Valhallaeiru
    @Valhallaeiru 4 ปีที่แล้ว +1

    We have done this exercise so many times in class, during my second year, that as soon as I saw this my brain went "OH NO! What if I've always solved it the wrong way?!"

    • @user-qy6tu9ip9v
      @user-qy6tu9ip9v 3 ปีที่แล้ว

      I don't understand any of this.....

  • @_Slaze
    @_Slaze 4 ปีที่แล้ว +2

    Would it be okay to push the nodes on the top of a stack, traverse through the list and pull each node of it. This solution isn’t pretty clean, but it should work

    • @kell7689
      @kell7689 2 ปีที่แล้ว

      Exactly what I would do. Even though it's not the fastest solution (since you're looping through 2n elements), it's probably the cleanest, which IMO would tell the interviewer that you don't think chaotically.

  • @yGKeKe
    @yGKeKe 3 ปีที่แล้ว

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

  • @rogerpumalexander
    @rogerpumalexander 4 ปีที่แล้ว

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

  • @dvlpr
    @dvlpr 2 ปีที่แล้ว

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

  • @luizcarvalho7597
    @luizcarvalho7597 4 ปีที่แล้ว +5

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

  • @Charger285
    @Charger285 3 ปีที่แล้ว

    We need another Ben awad X Clement video. Seriously

  • @himanshuraj1874
    @himanshuraj1874 4 ปีที่แล้ว +54

    That "jk" muscle memory tho. This guy types like- cool variable name just kidding just kidding erase erase. 😁

    • @AyushMandowara_xx7
      @AyushMandowara_xx7 4 ปีที่แล้ว +2

      might be his vim key binding to switch to normal mode though

  • @arijitdas7526
    @arijitdas7526 4 ปีที่แล้ว +9

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

  • @blazi_0
    @blazi_0 4 ปีที่แล้ว +1

    U guys are awesome !
    I enjoyed watching the video

  • @LuciousDK
    @LuciousDK 4 ปีที่แล้ว +8

    "That's pretty sus" XD I don't know who he is but I like him

  • @stephaneislistening6103
    @stephaneislistening6103 2 ปีที่แล้ว

    That was good fun. I'd say Clément would sound even better in a non bare walls room :-)