Mock Coding Interview with a Student | Google Internship Interview Prep

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 37

  • @XxXx-sc3xu
    @XxXx-sc3xu Před 3 dny +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 Před rokem +8

    Nice mock interview, definitely learned a lot from this!

  • @rambooo8104
    @rambooo8104 Před rokem +7

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

  • @BhargavPatel-hl4yi
    @BhargavPatel-hl4yi Před 27 dny +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

  • @AnonYmous-yu6hv
    @AnonYmous-yu6hv Před rokem +9

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

    • @crackfaang
      @crackfaang  Před 11 měsíci +20

      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 Před 11 měsíci +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 Před 11 měsíci +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 Před 11 měsíci +1

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

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

      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

  • @sankalpsbahad
    @sankalpsbahad Před měsícem

    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

  • @csistheonlychoice8256
    @csistheonlychoice8256 Před 5 měsíci

    are the STEP internship interviews easier?

  • @xskinyx
    @xskinyx Před 3 měsíci

    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.

  • @chisomedoka5651
    @chisomedoka5651 Před 4 měsíci +1

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

  • @chisomedoka5651
    @chisomedoka5651 Před 5 měsíci

    do you have a community on reddit?

  • @iseeflowers
    @iseeflowers Před 11 měsíci +2

    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 Před 11 měsíci +3

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

    • @iseeflowers
      @iseeflowers Před 11 měsíci +1

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

    • @videogamechef
      @videogamechef Před 4 měsíci +1

      could have used stack of list

  • @David-zv5kw
    @David-zv5kw Před rokem +2

    thank you!! this was super helpful

  • @user-ru3jc8tf1x
    @user-ru3jc8tf1x Před 8 měsíci +1

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

    • @crackfaang
      @crackfaang  Před 8 měsíci +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.

  • @Sauce-ke
    @Sauce-ke Před 10 měsíci

    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  Před 10 měsíci +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 Před 10 měsíci +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 Před 8 měsíci

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

  • @AnonYmous-yu6hv
    @AnonYmous-yu6hv Před rokem +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 Před 8 měsíci

      when did he say that??

    • @AnonYmous-yu6hv
      @AnonYmous-yu6hv Před 8 měsíci

      @@isws in the end when they reviewed

    • @isws
      @isws Před 8 měsíci

      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 Před 7 měsíci

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