Google Coding Interview With a Google Software Engineer
851K views · Apr 16, 2025 · Education
Comments · 955
@Geo_vanni_H · 1 year ago
I like to pretend I understand what I’m watching.
2K
@justingonzalez7279 · 1 year ago
I learned something today.. I don’t know what I learned, but I learned something.
1K
@dorbabaioff3188 · 6 months ago
Honestly his solution is way more complex than what is needed and his computation complexity is higher than what he calculated
185
@charan2234 · 10 months ago
What a great learning session, i learned that I'm cooked 👍🏼
196
@shayanxyz · 8 months ago
Passing google's interview is easier, getting interview is where the game is.
100
@haywardhaunter2620 · 1 year ago
I worked at Google for 12 years and conducted at least 100 software engineering interviews there, and I've done 100s more at other companies before that. The coding problem questions are really two things: the "problem" (how to count subsequences) and writing the actual code.<br><br>The specific problem is largely irrelevant. It should be just hard enough to give the candidate a chance to show how they approach problems, to see how well they communicate with another engineer on a technical problem, and to get a small code sample. (The best questions can also be tweaked on the fly to make them easier or more challenging.)<br><br>Make sure you understand the question. Even if you think you do, asking an articulate question about an edge case to demonstrate that you're thinking through the details.<br><br>If you have an observation about an aspect of the problem, let the interviewer know. (The candidate here did that by figuring out the number of possible subsequences was 2^len(s).) <br><br>Always start with the simplest, most direct algorithm you come up with. Don't assume you'll need to create an data structure to index into the data. If it's stupidly inefficient, make sure the interviewer knows that you know that. ("That would be O(n^3), which is crazy. It seems like there should be an O(n log n) way.") And then brainstorm alternative approaches. Not just alternative solutions, but <i>approaches</i> that might lead to a solution.<br><br>(Wonder aloud: "What if I had an index ... ?" "If I used a recursive search, would I need backtracking?" Interviewers will often steer you away from directions that lead to dead ends.)<br><br>Decompose the problem. Separate the hard part (checking if a word is a subsequence) from the easy part (counting). If you're stumped on the hard part, see if breaks it down further (building the index versus actually testing the word).<br><br>Sometimes we just don't see the "trick", and that's OK. The interviewer should be managing the clock. If you're stuck, they should give you a hint. But if they don't, ask for a one. "I'm stuck, gotta hint?" is fine, but a specific question, like "How do I avoid rebuilding the index on every word?", is better. Or explicitly make a simplifying assumption. ("For now, let's assume I have an index I can query this way. If there's time at the end, I'll show how I'd create that index.") You'd be doing the interviewer a favor. If they don't walk out of there with a code sample, they failed.<br><br>If you panic, say, "I'm going to code the simple solution, while I think more about how to make it faster." It's better to have a correct implementation of a suboptimal algorithm than incomplete or flawed code for an optimal one.<br><br>As an interviewer, I judged the coding part of these interviews almost completely independently from the problem solving part. For me, the main issue is whether they can comfortably and fluently express their idea in the code. I don't just look at the final code; I watch how they write the code in real time. Someone who knows their language well won't struggle with syntax when writing an expression, an if statement, or a loop. Even more experienced coders usually reach for the right type of loop and put thought into making good interfaces. When the syntax and mechanics of your language are so ingrained that they don't require much conscious thought, you can stay focused on correctness and understandability. It's one thing to have a logic bug. It's another to write code that doesn't something very different than what you set out to write (and, yes, I've seen that many times).
909
@jason_lalrem · 10 months ago
My dream job was a software engineer at Google, but after watching this, its better to stick with freelancing
135
@adnanhossain3152 · 6 months ago (edited)
This must be how our pets feel when they see humans interact. Thank you for that.
23
@dmitrypetrov8491 · 11 months ago
it's "no hire" in my humble opinion.
107
@PsyntaraOfficial · 8 months ago
I am happy that I figured out the logic on my own , but I am a bit sad that I still struggle to code it properly
11
@cetizen7909 · 9 months ago
Watching it for 10 minutes made me go to the restroom and take a dump
36
@kingbluecr7102 · 10 months ago
Remember guys, if you ever get stuck... THROW A HASMAP ON THE PROBLEM!
250
Up next

Google Coding Interview With an Expert Software Engineer
Sajjaad Khader · 14K views

How to solve a Google coding interview question
Life at Google · 1.7M views

AI Replacing Developers Has Officially Failed
Sajjaad Khader · 543K views

Google Coding Interview With a Meta Software Engineer
Sajjaad Khader · 134K views

System Design Mock Interview: Design Leetcode ft. Ex Google Engineer
Anubhav Sethi · 342K views

If I Wanted to Become a Software Engineer in 2026, This is What I’d Do [FULL BLUEPRINT]
Sajjaad Khader · 631K views

Frontend Interview Questions Mid/Senior Level
theSeniorDev · 218K views

Kotlin 2026: Layoffs, AI, Google — Is the Golden Age Over? Jake Wharton Explains
JetBrains and 2 more · 248K views

Coding Interview | Software Engineer @ Bloomberg (Part 1)
Keep On Coding · 5M views

Google system design interview: Design Spotify (with ex-Google EM)
IGotAnOffer: Engineering · 1.6M views

From ZERO to GOOGLE Software Engineer in 1 Year
Sajjaad Khader · 55K views

Software Engineering Job Interview – Full Mock Interview
freeCodeCamp.org · 2M views

React Coding Interview Ft. Clément Mihailescu
Conner Ardman · 432K views

Medium Google Coding Interview With Ben Awad
Clément Mihailescu · 1.4M views

Mock Apple Coding Interview with an Apple Software Engineer
PKodes and Alpha-Code · 70K views

Data Structures Explained for Beginners - How I Wish I was Taught
Sajjaad Khader · 1.2M views

How to NOT Fail a Technical Interview
Fireship · 2M views

Mock Interview With New Grad Prepping For Bloomberg - Medium Difficulty - Lean No Hire
Alpha-Code · 241K views

How I Failed the Google Coding Interview (and lessons I learned)
NeetCode · 1.4M views

I'm done coding with AI
Brett Codes · 1M views

Senior Software Engineer Mock Technical Interview (Coding/Algorithms in JavaScript)
DonTheDeveloper · 718K views

How to: Work at Google — Example Coding/Engineering Interview
Life at Google · 7.5M views

Mock Coding interview with a Google Software Engineer
PKodes · 7K views

5 Coding Interview Tips From A Senior Engineer
Travis Media · 85K views

A Jane Street Software Engineering Mock Interview with Grace and Nolen
Jane Street · 619K views

How I Cracked the Google Coding Interview (from unemployment)
NeetCode · 539K views