谷歌前端面试挂

title 是 Front End Engineer,在 Sunnyvale

I was contacted by recruiter and screened spontaneously with 11 random but very basic CS fundamental questions. Some examples include: Which keyword would you use to change a row of data in mySQL? What are the four situations in which a deadlock can occur? I got all of them correct except one - I was not expecting an improptu questionnaire from a hiring manager though.

Then they bypassed my phone interview round and called me onsite.

I checked time and again with my recruiter but I always heard I needed to prep CS fundamentals for the interview but I could clearly see how it was different from a typical SWE interview, which I think became the main cause of my failure.

May be I was not asking the correct questions, but in 3 rounds I felt like they werent really giving me anything beyond the starting question statement, which made me wander a lot.

Interviewers were very kind, detached with my personal experiences, mainly concerned with getting the answers to their questions right and I had five rounds:

Round 1. Write a function that takes a list of functions f1, f2, f3 etc. as parameters and consolidates all the results into one resultant array.

Round 2. Design an API that takes a function & a time duration and runs the function after the given time interval. If you call the function before that time frame, it still waits till that time frame before it gets executed.

Round 3. Design an API that takes objects & executes them only when the previous object in the queue has executed. How will you know that the previous object has executed?

Round 4. Design an app like Google Express - but has drones that shop items for you.

Round 5. There are linear blocks of houses. There are markets(which fulfill your living requirements, such as grocery, park, school etc) in between those blocks, unevenly distributed. Given a list of requirements are input, find the block of house that is closest to that given list.

补充一个面经:

I applied for the SWE engineer position. I think its either L3 or SDEll, not exactly sure.
During my phone screen, it was basically the interviewer introduced themselves and we chatted for a bit about what they do for the company. He asked me a few unrelated questions aside from DS and Algo and then we went into the coding portion.

  1. Do you know about CSS/font classes? If so explain how they work and a time where you have used them.
    (basically we had a convo about libraries such as font-awesome and how you attach them to html and how they are flexible throughout the DOM)
  2. Is it better to use one font library or multiple ones? Explain your answer?
    (I just explained how loading multiple libraries and sifting through them for specific elements would be efficient on load time which is what Google values and that most enterprise applications from my experience sticks to one specific library and components on websites and applicatiions. They only wanted to hear about how it slowed the DOM down).
  3. Given a 5x5 grid, create a bingo card with the folliwing condtions.
    -the middle square in the middle column must have a free space
    -it must generate random numbers per column as follows below:
    -col1 1-15
    -col2 16-30
    -col3 31-45
    -col4 46-60
    -col5 61-75

so essentially

2 17 37 49 62
5 22 41 52 70
6 23 U 59 68
9 18 42 60 69
8 29 40 55 63

According to my interviewer this was a 45 min type question and they just wanted to see how I thought and that most people get stuck on the conditions. I was drawing a blank originally but then things started to click. I used a mixture of brute force for the conditions, used recursion for the randon number generator and put this in a map object to return the size in about 17 mins. Started walking through my code and started troublshooting through the bugs but ran out of time. After that It was more chit chat about the perks of working there, hows the food, some questions about my resume and that was it. What do yall rate the difficulty of this problem?? All comments are welcomed