2 ms·
Coming from my own experience interviewing at Google. This problem is seems relatively simple to what I have been asked in coding interviews. I have faced this
by 120bits 5y ago
Coming from my own experience interviewing at Google. This problem is seems relatively simple to what I have been asked in coding interviews.
I have faced this in a coding interview(not at google). The coding question was so simple that I spent talking about different scenarios and edge cases that I was slower than expected. The interviewer said that, I have completed the most challenging part and its only a basic if statement. THAT'S IT! And I was like "This can't just be this?. There is a trick or I been getting ask a trick question here". As a candidate who has personally faced this an interview, preparing for FAANG interview sets the coding questions bar so high that even simple questions need to be analyzed over and over because as per a candidate this can't be that easy, right?!