Hi,
Sharing my experience of interviewing at Facebook, Seattle campus.
This was my first invite for Facebook Onsite interviews.
Telephonic Rounds: 2 questions in 45 mins
Already posted here: Facebook phone screening
Here is overview of my Onsite Rounds at Facebook, each 45 mins:
Interview with Hiring Manager: Behavioral Questions: Example of Conflict resolution, Project I liked the most, What I liked about the project, what you are essentially looking for in the new assignments?
Lunch with an Engineer for an hour
Given a hypothetical long bread, which has some strawberries in it at some random places. You can only cut the bread in places where slices are marked to cut. You are also given a N, which is number of cuts you can make in the bread. Now given N and number of strawberries in the bread in the form of array of integers, you have to return True if there is a way to divide the bread in N+1 parts, such that each section has equal number of strawberries. Otherwise return False.
*Example: *
Bread: [1,2,1], N = 2, Result: False
Bread: [1,1,1], N = 2, Result: True
You are given an array of Strings, and also an array of Characters. You have to find out if the Strings are in dictonary sorted order, not by English alphabetical order but in the order characters appears in the array of Characters. The dictonary order is defined by the array of characters. The output should return False if the array is not in dictonary order, otherwise it should return True.
Example:
Input 1:
["cat", "bat", "sat"]
[c,b,s,a,t]
Result: True
Input 2:
["cat", "bat", "sat"]
[b,c,s,a,t]
Result: False
Advanced: You are given an array of string, and you also know that the given collection of string is always dictonary ordered. You need to return the string of characters, for which the dictonary will be true. I solved that one too.
Overall the interview questions seemed easy. I solved all questions and run over different example inputs. I was asked follow up questions with advanced variation of the original question, and I answered them also upto their satisfaction. And I had time to ask follow up questions. I wasn't given any clear feedback what exactly went wrong towards my rejection.
Will try again next time.