[Google L4 Onsite] DSA Interview Questions + Feedback
Company: Google
Role: L4
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
I recently interviewed for an L4 Software Engineer role at Google and wanted to share the problems I was asked during the onsite:
I was able to solve all three with solid discussion and used proper variable names, but got feedback post-interview that my code lacked readability. I had written the entire solution in a single function, which the interviewer flagged as not modular enough. Despite solving the problems, the recruiter mentioned my application is on hold due to a hiring freeze — but every round had a common concern around code comprehension so won't be proceeding ahead right now.
Has anyone else gotten similar feedback in Google or other FAANG interviews?
Do you usually break your code into multiple helper functions during interviews, or just write everything in one function to save time?
Also, for folks who interview at Google — what’s the actual expectation here? Is writing all the code in a single function seen as a negative, even if the logic is solid and variable names are clear? Just curious how that’s usually judged.