Does your code need to execute (and pass all tests) in a (Google) interview?
Apr 29
6 Comments
Since Google technical interviews are just writing code in a Google doc, I suppose that nobody tries executing the code, and therefore it's only really about the main idea/algorithm, right?
I'm asking this because while LeetCoding, I pretty much always get the algorithm right, just somehow end up making some mistakes in the code, and so only some tests pass.
So is this something that I can safely ignore, as long as I get the algorithm and time-space complexity right?
I'm asking primarily for Google interviews, but if there are other big tech companies where they don't try executing your code, that'd be good to know.
Thanks!
YoE: 3
TC: 160k
#google #interview
comments
We care about sound algos. If you’re missing test cases, you’re missing edge cases. I’d practice more
2) why’d you even ask this question? I literally do interviews for google, and I told you the way we view it. But you’re disagreeing with me? lol
You should be able to run through your code with diff edge cases to verify your algorithm - Very crucial