WTF!! Happening at google hiring process............

Anonymous User
673
Mar 17, 2025
Mar 17, 2025

I had my phone screen interview at the starting of March after rescheduling 2 times and it went well and I got selected for next 4 onsite rounds. My onsite rounds were scheduled in the second and third week of march and I had my two interviews which went very well.
Onsite-1
Given a directory structure in which we have entity id, and a vector and I have to return the total size for the given entity ID:
filesystem:{1: {"file_type" = 'directory', "file_name": 'x', files:{3,4}},
{2: {"file_type" = 'directory', "file_name": 'y', files:{5}},
{3: {"file_type" = 'file', "file_name": 'a', "size": 200},
{4: {"file_type" = 'file', "file_name": 'b', "size": 400},
{5: {"file_type" = 'file', "file_name": 'c', "size": 300}
}
this input was given

I first confused about the data sturcture and created a map and run loop for adjacent elements and then interviewer told me that directory may have directory present so then how will I traverse then I got the hint and traversed in this filesystem and run a bfs traversal and when the file type is directory put them into queue and if type is file added into my size and returned the size.

Onsite 2:
writing a function that tells who was chosen from a list with ids and weights and keeping the probability proportional to the weight

I implemented a solution using prefix sum and binary search
in which taking lower limit of weight to 0 and higher at total of all weights and then interviewer seems satisfied and told me that I did pretty well.

and then my Onsite-3 was scheduled today I was preparing during holi, did not even celebrate it and then no one showed up I waited for half an hour then mailed to my recruiter after 2 hours he told me that my further rounds are cancelled as I got negative ratings for both the rounds but I did not get why, I coded pretty well both the questions at last and they were even efficient solutions. And if it is like that he should have informed me before so that I was not grinding myself for this long time even during festival.....what is this type of culture I am not getting why they gave me negative rating if I completed the code on time.
Did anyone face the same situation ever??

#interview #google #googleinterview

Comments (7)