How I Cracked the Google Coding Interview (from unemployment)

Simple Digital
57 followers
7 Video Views·Oct 21, 2022
Hey everyone, welcome back. I've gotten a lot of comments and messages asking me how I got
into Google and about the interview process, so I guess today I wanted to tell you my story.
I'll tell you how I got the interview, how I prepared for the interview,
what I did on the interview day, and how the five interview rounds went.
So to start with, the way I got my interview was pretty basic. I pretty much just cold applied
online, which is probably one of the worst ways you can do because your application just gets
tossed into an ocean of thousands and thousands of other applications.
But actually, I had already interviewed with Google before, about two years before that.
I had made it all the way to the on-site, though I didn't pass. I think I got pretty close,
so maybe that's why I was able to get another interview relatively easily.
But I definitely think if you can get a referral, it definitely increases your chances. Also,
a lot of people say that, you know, reaching out to recruiters on LinkedIn
also can increase your chances rather than just applying online.
I've never tried either of those things, but I'm sure they're somewhat helpful.
I think a few weeks after that, I was reached out to by a technical sourcer,
which is not a recruiter, but I think sourcers are people that kind of find interview candidates
and then forward them to recruiters. So that's exactly what happened.
After that, I got an email from a recruiter, and then I set up a call with the recruiter.
It wasn't really an interview or anything like that. They didn't ask me anything, not behavioral,
not coding interview questions. They basically just walked me through what the interview process
was going to be like, and they were going to help me schedule my interview. The problem was after I
talked to them, it had been weeks, and they never sent me like a follow-up email of how I could
schedule my interview. And I got really nervous at this point because they were really nice to
me when I was talking to them. So I was like, you know, what happened? I kept emailing them,
didn't get a response. I texted them, didn't get a response. I was really out of options.
So at this point, I literally just emailed the technical sourcer who was the original person
that reached out to me, and I just said like, hey, I'm not getting any response from my recruiter.
Are they on vacation? Did they quit Google? What's going on? And I'm really glad I did that because
literally the same exact day, my recruiter replied to me. So I don't know if they were
ghosting me on purpose or what exactly was going on, but it kind of just shows you,
you really can't trust recruiters that much. And this is not the first time I've had a bad
experience with recruiters. You really have to fight for yourself and not rely so much on them.
Thankfully, I did get my interview scheduled. It was about three months after I had originally got
reached out to by the recruiter. So you can tell that the interview process at Google is quite slow.
But at the same time, this also gave me a ton of time to prepare for the interviews,
which is exactly what I did. Now, the shortest answer I can give you for how I prepared
is pretty much exactly what I did on this channel. During that time, during 2021,
I was pretty much uploading LeetCode videos almost every single day, and that's pretty
much how I was practicing. Now, I know the channel is not super organized, which is why I created
NeetCode.io, which basically structures the channel in a more beginner-friendly way,
in an organized way of how you can use the channel to prepare kind of the same way that I did,
kind of by learning patterns in an organized way. That's really the approach that I took.
I wish I could tell you that there was some, you know, super secret thing that I did
that increased my chances, but there really wasn't. I basically just grinded and practiced
data structures and algorithms, just like on this channel, just like you can do on NeetCode.io.
And more than just like memorizing the code for a bunch of solutions, I really kind of tried to
understand the problem, understand the concepts, the same way that I try to explain them in my
trade-offs, the thought process behind each solution. Things like that, I think, are very,
very important for Google coding interviews, more so than a lot of other companies,
which basically are fine with you sometimes just memorizing the solution.
And then came the actual interview day. I was pretty confident in my abilities when the time
came. I didn't really feel like there was any more that I could practice that would increase my
chances. And the good thing was that I only had one interview day. I didn't have any phone screen.
I was able to skip that. I think it's because I had already interviewed with Google before,
and I had made it to the on-site. But also, my interviews were virtual because this was,
of course, during the pandemic. I think maybe the fact that the interviews were virtual made me a
little less nervous, but another thing I did to kind of calm my nerves during the interview day
was to get up a little bit early in the morning and just kind of do some light exercising for
Exercising, I think, is a really good way to lower your stress and anxiety. It kind of decreases your
cortisol levels and things like that. And it's probably much better than what some people do
if they get super nervous. I know some people even try to take alcohol or like Xanax or things like
that. I mean, maybe that will make you less nervous, but I think it's also going to affect
your performance. I used to consider doing that, but I don't think it would have been worth it.
And I think actually exercising did help me a bit during the day. But for some reason, honestly,
I just wasn't very nervous in the interview. I mentioned this in a previous video, but this was
like my only interview that I had. It's not like I had a bunch of other fang interviews at like
Facebook or Apple or Microsoft. This was the only one. So I probably should have been really nervous,
but I don't know why I just wasn't. It just felt like another day of practicing leak code problems,
making a leak code video, stuff like that. And so I had five interview rounds that day,
which is pretty standard for Google. Usually they do one behavioral interview, which they call the
Googliness interview, but it's pretty much just a behavioral. And they do four coding rounds.
Now, I'm not actually going to tell you exactly the questions that they asked me.
Believe it or not, I don't think it would actually be that helpful anyway, because there's a very
little chance you'll get asked the exact same questions. And it's not about kind of just
memorizing the code and then writing it out. You really have to understand what you're doing. You
really have to communicate with the interviewer. The first interview that I had was the Googliness,
and I think that was pretty straightforward. There's really not a lot to talk about in that.
I think I did pretty average. It was basically just, you know, behavioral questions that I think
pretty much every company will ask. I don't think Google does anything unique in that respect.
The next round was a coding interview round, and it's pretty much what everybody talks about.
It's a data structures and algorithms round where you're given a question and your goal is to find
the most optimal solution and hopefully communicate your thought process throughout doing that.
And I think I did really, really well in the first round, and I think that kind of gave me the
confidence I needed throughout the rest of the interview rounds. Usually the Googliness interview
is about 30 minutes, but the coding interview rounds are 45 minutes each. I think I finished
this coding round with all of the follow-ups in about 25 minutes. And honestly, I did it so quickly
that I was even surprised by how well that I did it. There were moments where I got stuck and my
brain just went blank, and then it felt like the solution automatically just like popped into my
head and then I wrote it out. I was almost scared that the interviewer was going to think I was
cheating or something, but I guess they didn't. So after that, the interviewer kind of just asked me,
hey, you have any questions for me? I asked like one or two questions, and then we just ended the
interview like 20 minutes early. So that gave me a little bit of time to get ready for the next
round. And the second coding round definitely did not go as well as the first. This time, I actually
did need all 45 minutes, but part of the difficulty wasn't even my fault. In the coding interview
rounds, there's usually like a shared Google Doc or something like that that you'll be working on,
and the interviewer will write out the problem description, and you'll be writing out your code.
You don't really get an IDE or anything like that, and you definitely don't run your code.
But the issue was that the interviewer, for some reason, did not have access to the doc,
and that wasted about like five minutes of time, which was kind of annoying because it wasn't
really my fault at all. And then when they actually asked me the interview question,
they had a really thick accent, and I just was not able to kind of understand some of the words
that they were using. The annoying part was that all the other coding interviewers actually wrote
out the problem in the Google Doc, but this interviewer was literally just saying it. So at
this point, I was a little bit stuck, but then I was like, okay, maybe I can just write it out
myself, and if the interviewer is seeing me write it out, if I'm misinterpreting the problem, maybe
they will catch that. So that's kind of what I did. I either encouraged them to write out exactly
what they were saying, or I tried to write it out and said, is this what you're asking? And I think
that this is kind of one of the soft skills, the communication skills, that a lot of people
overlook. It's not just about taking a coding interview problem, writing out the exact solution.
You're really having to work with your interviewer, and in some cases, your interviewer
is not super easy to work with. You either can't understand them, or it seems like they're not
really trying to help you as best as they could. But overall, I did figure out what they were
asking for. I got pretty close to the optimal solution. In terms of time and space complexity,
I think I did, but I was still doing it in a slightly weird way that the interviewer didn't
really understand, and I think they got kind of caught up on that because there was a slightly
better way that I could be doing this solution. I was overcomplicating it, but the time and space
complexity still was optimal. So I think for the most part, this interview round did go well enough
for me. Now, the third coding interview round was probably the hardest question of all. It was super
complicated to even understand what was going on, not because of like an accent or anything,
just the problem itself was just so complicated. I came up with a non-optimal solution that I was
able to code up, but the interviewer was definitely hinting at a better solution.
And by the end of it, and using one or two hints from them, I actually did come up with the optimal
solution. And I can tell you that I would have never came up with it without a hint. It was
insanely hard. It was definitely a LeetCode hard level question to get the optimal solution. And I
was able to come up with it, but I wasn't able to code it up in time. But because it was so difficult,
I think I still got a good score from the interviewer. I don't know for sure, but I'm
able to come up with a non-optimal solution pretty quickly. And the non-optimal one was
actually not easy to code up either. So this was definitely a difficult problem,
but I think the interviewer was probably more looking for your thought process, which again,
this is why it's important to be able to explain your thought process because that allows the
interviewer to give you a hint. And if you can interpret their hint correctly, then maybe you
can come up with the optimal solution. And the last interview round, which was the fourth coding
round, was just kind of a weird problem to be honest. This was probably the least like a LeetCode
question. It technically was still like a LeetCode question, but it was very weird. This problem was
the most focused on the thought process, I think, because there wasn't really an easy way to just
come up with the solution to the problem. It was really more of a discussion, just kind of talking
about the possible solutions to the problem, the possible algorithms we could use, what would be
better about one versus the other, how would you even analyze the time complexity. Even analyzing
that actually was not straightforward for this problem. And after this one, I honestly had no
idea how I did. It was just not something I was expecting at all. But after that was over, you
know, I thanked the interviewer, told them it was a pretty interesting problem, and then that was
over. And honestly, I thought I did reasonably well throughout the interview process, but after it was
said and done, I wasn't sure if I was actually going to pass or not. Going into it, I had high
confidence. Coming out of it, I was really 50-50, because I know you don't have to do perfectly,
but I was even wondering, you know, were there parts that I did really poorly on? It was really
hard to judge for me, and the waiting process did not make it any easier, because I think it was at
least a month, maybe like six weeks, before I actually found out whether I had passed or not.
But once I had found out, I was super relieved, and I really couldn't even contain my excitement.
I was just so happy. I was finally not unemployed anymore. My journey was finally over, and that is
basically how I escaped unemployment and got into Google. It would have been nice if I had a few more
interviews lined up, but I'm glad I passed the one that I did have anyway. So thank you so much for
watching. If you're preparing for your coding interviews, I recommend checking out NeatCode.io.
It's a free resource. It's a much better way to prepare for coding interviews. You learn patterns
rather than just blindly going through random questions. Every single problem has a detailed
video solution, and most of them have Python and Java code solutions. I'm planning on adding C++
and JavaScript in the future, so feel free to contribute if you would like. But thanks again
for watching. If you found this helpful, please like and subscribe. It really supports the channel
a lot. Consider checking out my Patreon if you'd like to further support the channel,
and hopefully I'll see you pretty soon. Thanks for watching.
