Mock Coding Interview with a Student | Google Internship Interview Prep

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

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

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

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

  • @isma5627
    @isma5627 ปีที่แล้ว +11

    Nice mock interview, definitely learned a lot from this!

  • @XxXx-sc3xu
    @XxXx-sc3xu 3 หลายเดือนก่อน +7

    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.

    • @aytonjim6225
      @aytonjim6225 2 หลายเดือนก่อน +1

      Haven't watched the video, but what would you recommend one should say to check in with an interviewer once you explain your approach? I usually also say "does this make sense?" Is there a better thing for me to say or do?

    • @XxXx-sc3xu
      @XxXx-sc3xu 2 หลายเดือนก่อน

      @@aytonjim6225 "if it makes sense" is a better statement. The interviewer has likely asked the same set of 10 questions to hundreds of candidates, he/she knows what they're looking at. Saying "does it make sense" might imply that the interviewer doesn't know if it does or doesn't. It might not matter or it might, but overall I'd recommend to not question the interviewers experience. So yeah, go with "if it makes sense" and they will usually agree.

    • @XxXx-sc3xu
      @XxXx-sc3xu 2 หลายเดือนก่อน

      To clarify, yes it is a very, very small detail, but often times these $500k+ interviews come down to 1 sentence you said or didn't say.

  • @BhargavPatel-hl4yi
    @BhargavPatel-hl4yi 4 หลายเดือนก่อน +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

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

    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 7 หลายเดือนก่อน +1

      could have used stack of list

    • @meritocracy168
      @meritocracy168 2 หลายเดือนก่อน

      it works. the output is "ca".

    • @austinlawan3289
      @austinlawan3289 19 วันที่ผ่านมา

      I followed through and I did get the answer even though IM using JS and not python

  • @rigobertorosa2949
    @rigobertorosa2949 หลายเดือนก่อน +2

    Why not just use a set

    • @SheyVick
      @SheyVick วันที่ผ่านมา

      You can have multiple of the same letter, they just can't be consecutive

  • @csistheonlychoice8256
    @csistheonlychoice8256 8 หลายเดือนก่อน +1

    are the STEP internship interviews easier?

  • @sankalpsbahad
    @sankalpsbahad 5 หลายเดือนก่อน

    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

    • @vteckickedin2365
      @vteckickedin2365 หลายเดือนก่อน

      yeh was thinking something like this. Level order until you find the level with the node in it (compute this entire level). For each level maybe keep track of which count etc. (list of list maybe?) and then after finding the node can figure out all the "parent" nodes of dist k from target. Then for children just basic dfs etc. will do right?

  • @David-zv5kw
    @David-zv5kw ปีที่แล้ว +2

    thank you!! this was super helpful

  • @AnonYmous-yu6hv
    @AnonYmous-yu6hv ปีที่แล้ว +12

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

    • @crackfaang
      @crackfaang  ปีที่แล้ว +32

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

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

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

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

      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

  • @xskinyx
    @xskinyx 7 หลายเดือนก่อน

    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 8 หลายเดือนก่อน +1

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

    • @crackfaang
      @crackfaang  8 หลายเดือนก่อน +2

      He ended up passing yes

    • @chisomedoka5651
      @chisomedoka5651 8 หลายเดือนก่อน +1

      @@crackfaang that’s awesome

  • @chisomedoka5651
    @chisomedoka5651 8 หลายเดือนก่อน

    do you have a community on reddit?

    • @crackfaang
      @crackfaang  8 หลายเดือนก่อน +1

      No, just discord

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

    1 lc easy, 1 lc hard 😭

  • @Sauce-ke
    @Sauce-ke ปีที่แล้ว

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

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

    • @jinyoung-ch
      @jinyoung-ch ปีที่แล้ว

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

    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 11 หลายเดือนก่อน

      when did he say that??

    • @AnonYmous-yu6hv
      @AnonYmous-yu6hv 11 หลายเดือนก่อน

      @@isws in the end when they reviewed

    • @isws
      @isws 11 หลายเดือนก่อน

      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 11 หลายเดือนก่อน

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