Mock Coding Interview with a Student | Google Internship Interview Prep

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • Discord Community: / discord
    In this video we have yet again another mock coding interview. They reached out to me via the Discord and were wondering if I could help them test their skills before an upcoming Google internship interview. They are a masters student and an ex-Amazon intern.
    They did very well here and had excellent communication and explanation skills. The second question required a bit of a hint but they were able to do it in the end.

КОМЕНТАРІ • 37

  • @XxXx-sc3xu
    @XxXx-sc3xu 10 днів тому +1

    E6 here. Watched til 16 min.
    For Problem 1--
    Good:
    - articulated thought process
    - time/space complexity
    - solved problem & follow-up
    Missing:
    - trade-off's
    - edge cases
    - test case
    - bottlenecks / optimizations
    As a note, I'd recommend to NOT say "does this make sense?". The interviewer is well-trained and experienced, and this question can throw off the interview. Overall, it's good, I would've wanted to see more analysis of the code (trade-off's, edge cases, etc). Given it's an internship, I would give it a Hire. E4 and up Neutral or NH.

  • @isma5627
    @isma5627 Рік тому +8

    Nice mock interview, definitely learned a lot from this!

  • @rambooo8104
    @rambooo8104 Рік тому +7

    wow perfect, saved in my playlist, will be useful for my interviews :)

  • @AnonYmous-yu6hv
    @AnonYmous-yu6hv Рік тому +9

    he knows the best answers instantly, that's not how it usually is in the real world...

    • @crackfaang
      @crackfaang  Рік тому +22

      Funnily enough it is. By the time you get to interview day if you haven’t memorised all the top questions a company likes to ask then you’re in a bad spot. The unfortunate reality is that figuring it out on the spot is the worst for your chances of passing

    • @johnsoto7112
      @johnsoto7112 11 місяців тому +1

      While my approach to the problems may have differed, I was nonetheless able to come up with a solution on the spot. The only potential concern I noticed was the absence of clear communication, such as inquiring about the interviewer's expectations or thoughts. Or presenting more than one solution while explaining trade-offs.

    • @AnonYmous-yu6hv
      @AnonYmous-yu6hv 11 місяців тому +2

      @@crackfaang you don't always know what a company likes to ask, in the real world you'll likely encounter questions you haven't seen before.

    • @AnonYmous-yu6hv
      @AnonYmous-yu6hv 11 місяців тому +1

      @@johnsoto7112 would you know the most optimal solution instantly for all the questions like he did? I doubt that.

    • @johnsoto7112
      @johnsoto7112 11 місяців тому

      on the first two problems i can honestly say yes. First problem I would of used a stack and on the second i would of used a hashmap. The third problem stump me and just made me realize i need more experience dealing with these types of graph problems (disguised as tree), but 2/3 makes me feel better because if i look back to the past, it would of been 0/3 lol. After today if asked this question i can solve 3/3@@AnonYmous-yu6hv

  • @BhargavPatel-hl4yi
    @BhargavPatel-hl4yi Місяць тому +1

    I haven't seen whole video yet but I think in follow-up question instead of stack array of 26 for each character won't be efficient
    PS. I don't know if they used ahead

  • @xskinyx
    @xskinyx 4 місяці тому

    My read of this is quite the opposite - he obviously knew the answer to the first question. The only signal there was that he can explain an algorithm he knows and he can code quickly.
    It was the second question where he showed his intelligence! He was stumped and worked through it. I'm not sure why his solution with returning the distance to the target and printing (k-distance away) nodes down the opposite branch of the ancestors wouldn't work? You told him to code it another way and he easily switched mental gears and did it your way. Impressive.

  • @csistheonlychoice8256
    @csistheonlychoice8256 5 місяців тому

    are the STEP internship interviews easier?

  • @chisomedoka5651
    @chisomedoka5651 5 місяців тому +1

    Did he get the role? How did his interview go?

    • @crackfaang
      @crackfaang  5 місяців тому +1

      He ended up passing yes

    • @chisomedoka5651
      @chisomedoka5651 5 місяців тому +1

      @@crackfaang that’s awesome

  • @chisomedoka5651
    @chisomedoka5651 5 місяців тому

    do you have a community on reddit?

  • @sankalpsbahad
    @sankalpsbahad 2 місяці тому

    for the second question, isnt a simple level order traversal enough to get the distance of all nodes from the root, then subtract the distance of all nodes by the distance of the target node and then check for the nodes having a resultant distance of 0 or k?? this should work imo

  • @iseeflowers
    @iseeflowers Рік тому +3

    I am a newbie. Did he get the answer corrected for Q1 follow-up question? I followed along coding and I didn’t get the output of “aa”?

    • @anshchaturvedi4235
      @anshchaturvedi4235 Рік тому +3

      yeah I don't think his approach was correct, surprised the interviewer missed that

    • @iseeflowers
      @iseeflowers Рік тому +1

      @@anshchaturvedi4235 ok thank you. I am new so I don’t know if I was missing something.

    • @videogamechef
      @videogamechef 4 місяці тому +1

      could have used stack of list

  • @David-zv5kw
    @David-zv5kw Рік тому +2

    thank you!! this was super helpful

  • @Daniely-z2k
    @Daniely-z2k 9 місяців тому +1

    This is the level going to be in FAANG? you sure its not too much easy?

    • @crackfaang
      @crackfaang  9 місяців тому +7

      It really depends. You'd be surprised at how often you get easy questions in FAANG interviews (one caveat here might be in India I've heard they just give candidates brutal questions).
      But that being said, as a viewer would you get more value out of watching a candidate struggle with a Leetcode hard or I give them a medium and you get to see the thought process and interaction with the interviewer in my follow-up questions and probing their solution. If I give them some crazy DP solution that nobody understands, it would be a waste of time for the person taking the mock and you as a viewer.

  • @AnonYmous-yu6hv
    @AnonYmous-yu6hv Рік тому +5

    also the interviewer saying "I could've told you to rewrite your code hahaha" No it's not funny and it's a sign of a toxic workplace, I would tell that interviewer, ok I don't want to work with you, bye.

    • @isws
      @isws 8 місяців тому

      when did he say that??

    • @AnonYmous-yu6hv
      @AnonYmous-yu6hv 8 місяців тому

      @@isws in the end when they reviewed

    • @isws
      @isws 8 місяців тому

      ok sure, but he said that because he was talking about a hypothetical scenario where he didn't fully understand the problem statement, therefore he actually HAD to rewrite the code, so he can solve the real problem, and not the one he thought he had to solve. It's like solving "max subarray sum", when you should solve "subsequence sum = x". You have to rewrite the code, it's even similar

    • @levelup2014
      @levelup2014 7 місяців тому

      @@AnonYmous-yu6hvpeople can see your negative passive aggressive comment you know that right? Your the type to complain about everything not knowing your the problem jeez man get a grip

  • @Sauce-ke
    @Sauce-ke 11 місяців тому

    do they always have this many problem questions on every interview or just one? cause this video have more than 2 different problem questions

    • @crackfaang
      @crackfaang  11 місяців тому +1

      It varies. Usually is 2 questions, sometimes it's 1 hard question, or sometimes even 3 easy/medium ones. You never know but in most cases it's two questions

    • @Sauce-ke
      @Sauce-ke 11 місяців тому +1

      @@crackfaang how many question does this video have? 3 or 2? does the followup question from the first one considered another question problem?

    • @theJYC
      @theJYC 8 місяців тому

      Curious about this too. I thought they were two questions + one extra question given the interviewee breezed through the first two