For onsite interviews at Google/Facebook, do we need to give a working solution? Or do we just type it out but they don't really run it? It has happened in some interviews for me till now, except with Square. Also, do they need the code to run in one go? How forgiving are they to some small errors/bugs in the code? As long as we identify them and correct them, eventually.
Can someone with an actual interview experience who understands what is being asked please answer my question :)
FB and Google will not "run" your code. It needs to be mostly correct syntax wise so make your life easier and do the interviews in python. You do not type it out, you whiteboard it. You still need to be careful that you dont write x where you mean to write y, or row where you mean to write column. But if you have the wrong capitalization on DefaultDict, who cares?
Yes, captain here, If you do well you'll get an offer. No, they don't "run" your code.
For google it is in google doc or on whiteboard. Doesn’t need to run, but should be close. You can catch bugs or mistakes halfway through
if the compiler can catch it, then it's usually nbd; if not, your test cases should have coverage
I take interviews at Google. We don't run your code, but I have asked the question too many times to know where people go wrong/potentially can go wrong. As for minor bugs, I generally ignore.
If you forget a semi colon you're banned for 5 years
That's y he will use js or python lol