Google Onsite Interview Experience (London) - Reject
Company: Google
Role: L4
Interview Stage: Onsite
Location: London
Year: unknown
Original Post Content:
Screening Round:
In an x-y plane, given coordinates of routers in a network and a maximum distance range d up to which a router can send a packet, return whether a message can be sent from a source router to destination router.
As a follow up I was asked to code what if each router can only send to the nearest router instead of all routers within the range?
Technical Onsite 1:
Design a restaurant waitlist system with users of different group size with following three functionalities
* Users can join waitlist anytime
* Users can leave the waitlist anytime
* Users need to be seated at a table which is at least the size of the group, table size passed as argument
It was an open ended question and the input structure and the design had to be discussed with the interviewer to find out the exact requirements. The groups needed to be seated in such a way that the group to be seated had the maximum group size that could fit in the given table size.
Follow up was If I could improve the solution to part3. I gave a O(logn) heap solution and interviewer seemed satisfied.
Second follow up was how would I test each of these functions.
Technical Onsite 2:
Given two lists list1, list2, and a value k, return list2 with the elements in K-window of list1 removed.
Example: list1 = [1,5,2,3,4] list2 = [3,1,1,5,2,7] k = 2 should return [3,2,7]
Follow up was to optimise to O(n)
Technical Onsite 3:
Implement multiple timer set given two library functions single timer set and getCurrentTime()
Round 4 - Googleyness
Behavioural questions like tell me about a time where you had to work on a project which did not have properly defined goals and requirements, questions on working within a team, collaboration, how do you handle multiple projects, how do you prioritise what to work on, about a project that didn’t go as planned and what steps did you take to ensure a mistake didn’t happen again.
Result - Reject
I personally felt I performed very well (along with follow ups) in Technical onsite 1 and 2 but couldn’t write the correct code for onsite 3.
The recruiter did not give any detailed individual round feedback even after I requested twice and said that round 1 and round 4 didn’t go that well - kinda surprised because I felt both of them went well. Also, my round 3 had gone pretty bad so not sure how it had positive feedback.