Facebook Software Engineer Interview Questions

Updated Mar 24, 2015
Updated Mar 24, 2015
98 Interview Reviews

Interview Experience

Interview Experience

85%
11%
3%

Getting an Interview

Getting an Interview

37%
24%
14%

Interview Difficulty

3.4
Average

Interview Difficulty

Hard

Average

Easy

98 Candidate Interview Reviews Back to all Interviews

Sort: Popular Date Difficulty

 

Software Engineering Interview

Anonymous Interview Candidate in Menlo Park, CA
Anonymous Interview Candidate in Menlo Park, CA
Application Details

I applied through college or university. The process took 3 weeksinterviewed at Facebook in October 2013.

Interview Details

On campus interview, followed by phone screen, then an onsite interview. The interview process was fairly straightforward. The recruiters were very friendly and responsive. Facebook looks primarily for coding proficiency and knowledge of computer science fundamentals. They do not test for soft skills, or only very little. Interviews consist of a brief introduction, followed by one or two technical questions.

Interview Questions
  • Given an array of integers, modify it in-place such that all non-zero values are on the higher end, and all zeros are on the lower end. Order of non-zero values can be ignored for the final result. Report and explain space and time complexities.   View Answer
Accepted Offer
Positive Experience
Average Interview

Other Interview Reviews for Facebook

  1. 5 people found this helpful  

    Software Engineer Interview

    Anonymous Interview Candidate
    Anonymous Interview Candidate
    Application Details

    I applied through college or university. The process took 4 weeksinterviewed at Facebook in March 2015.

    Interview Details

    I had two technical interviews (they are not back-to-back, with about a two-week interval) plus one team matching interview on the phone. The whole process took 4~5 weeks. In both tech. interviews, there were two simple algorithm problems. My interviewer shared me a link on collabedit and I just coded there. All questions were quite basic and nothing surprising happened.

    Interview Questions
    • Q1A: In a maze with empty spaces and walls, given a starting point and ending point, find a path (not necessarily shortest). (Just BFS, DFS...)
      Q1B: If the maze is stored on multiple nodes on a cluster, what do we have to do? (No coding, just give ideas)
      Q2: Given an array and a target number, tell whether there are three numbers in the array which add up to the target number. (Time complexity should be O(n^2))
      Q3: Topological sort.
       
      Answer Question
    Accepted Offer
    Positive Experience
    Easy Interview
  2. 2 people found this helpful  

    Software Engineering Interview

    Anonymous Interview Candidate in Seattle, WA
    Anonymous Interview Candidate in Seattle, WA
    Application Details

    I applied online. The process took 3 weeksinterviewed at Facebook in January 2015.

    Interview Details

    I applied online to the Facebook website in January. Facebook was really, absurdly fast for me. For the online application, they responded in about a week, and I scheduled the interview in the next week. After two phone interviews, they emailed me back in the same day.

    The interviewers were programmers, and they made me feel very comfortable. With other companies, I sometimes would get interviewers who knew nothing about programming, and it made it hard for me to talk about my projects without accidentally going into too much depth or jargon that they likely wouldn't understand. It was really comfortable talking with the Facebook interviewers, and it was easy to ask questions at the end because I knew they'd know about stuff like the Oculus or what programming life was like there.

    Like many others have said, I would highly recommend Cracking the Coding Interview. The questions were relatively easy, and two of them were ones I already saw on this site. My interviewers really liked that I spoke all of my thoughts out loud while I was programming.

    Interview Questions
    • You have two words and would like to find the "minimum edit distance" between them. Edit distance is defined as the number of operations with: adding a letter, subtracting a letter, and replacing a letter. Make a function that finds the minimum edit distance.   Answer Question
    Accepted Offer
    Positive Experience
    Average Interview
  3. 2 people found this helpful  

    Software Engineer Interview

    Anonymous Employee in New York, NY
    Anonymous Employee in New York, NY
    Application Details

    I applied online. The process took 3 daysinterviewed at Facebook in January 2011.

    Interview Details

    HR phone interview, in-house coding interview. ull-time software candidates in USA. Submitted resume at college career fair. Got email about on-campus interviews. At this stage, there are 3 possible outcomes: onsite invitation, a phone interview for an additional chance, or reject. I was invited to onsite interview.

    Onsite was a "University Day" that included three interviews (not four like they said in the email) before lunch and then a tour, new-hire panel, etc after lunch.

    Interview Questions
    • Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.   View Answer
    Declined Offer
    Neutral Experience
    Easy Interview
  4. Is this helpful? The community relies on everyone sharing – Add Anonymous Interview Review


  5.  

    Software Engineer Interview

    Anonymous Interview Candidate in Menlo Park, CA
    Anonymous Interview Candidate in Menlo Park, CA
    Application Details

    I applied through college or university. The process took 3 weeksinterviewed at Facebook in February 2015.

    Interview Details

    I applied through career fair at my university. They hosted a pre-interview dinner so you can meet with your recruiter/on-campus interviewer. The next day I had my 45-min interview and it was a pleasant one. The question wasn't that hard and I didn't need any extra hint to solve it.

    After that they sent me an onsite request (wait for 1 week), then I came to their HQ in MPK a week later. Had the interview by noon, then a good tour around campus. The onsite question was much easier, as I think if you're invited to onsite then be confident that you have a really good chance to get in.

    After 2 business day I got the offer from FB. The compensation is really huge and very hard to decline.

    As for tip, I would say get as much rest and be well prepared for the interview. They ask basic question but you need to have a clear mind to solve them comfortably, and please try as hard as you can to explain the thought process.

    Interview Questions
    • 1) Given an array with 0s and other integers. Find the fastest (that use least organizing) way to transfer all the 0s to the right end of that array.

      2) Given an array of integer, find 2 numbers that their sum is closest to a specific number.
       
      View Answer
    Accepted Offer
    Positive Experience
    Easy Interview
  6.  

    Software Engineer Interview

    Anonymous Employee in Menlo Park, CA
    Anonymous Employee in Menlo Park, CA
    Application Details

    I applied through a recruiter. The process took 2+ monthsinterviewed at Facebook in February 2014.

    Interview Details

    The interview process for me was uberly long. I wasn't planning on applying to Facebook, but a recruiter reached out to me mid-december on LinkedIn. I thought "what the heck, it's a great company" and got back to her the next day, but she was leaving for the XMas break. No more communication until early Jan. Connecting on the phone was a pain, as first she didn't call until 15 minutes after she said she would. I had stopped standing by the phone and went to email her when she did call, so missed it. We emailed and set something up for an hour later. This time she called 30 minutes late. No apologies or anything. Sigh. She advised that I put all of my other interviews before the Facebook one so that I could get practice, and then signed me up for a free interview review course they run. I went and things were all great, so I told them I was ready. Queue another 2 week pause while they tried to answer a question I had asked before scheduling me. When I finally made it onsite for an interview (mid-late feb), I had expected it to be a full day of interviewing, but instead it was a 30 minute screen before I could do the *actual* interview. In all fairness, I should have seen that coming. But anyways, did the screen and got a response before I had even left the parking that they wanted to schedule my full interview. I also got a call from my recruiter that afternoon to give me interview feedback. I thought that was awesome, as most people don't do that. I can't say how useful it was as I had no negative feedback from my interviewers and her advice was just "wow, keep doing whatever you just did!" but it sounds like it could be useful if things don't go perfectly the first time around. Anywho, by this time I had multiple other offers with deadlines on them. I went ahead and scheduled the final round interview for the following week, but ended up canceling the day before as I had decided to go with another company. This seemed to irk my recruiter, despite the fact that she was the one who told me to interview with other companies first and I had been upfront about that and the associated timelines during the whole process. When initial contact and end offer are 2.5 months apart, you can't expect someone to be sitting idle that whole time...

    The only reason I still rank this as a positive experience is because I had a secondary recruiter I worked with coordinating onsite logistics (the girl who first contacted me was out of state) and he was awesome. If any of you get the chance, work with Charlie. He's direct and super straight forward and knows that candidates are people with multiple options and treats you as such. I do a lot of mentoring and will certainly be sending any of my mentees who expresses interest in Fbook Charlie's way; he's a real gem.

    Interview Questions
    • One of the questions I got was around bit manipulation and built on itself by layers (i.e. how would you do x? ok, say you have a function for x, how would you do this new thing y?). The other question was a modification of a sorting question (i.e. the question itself was sort the array, but there were some parameters on the data type that made things extra fun/not standard sorting algorithm)   Answer Question
    Declined Offer
    Positive Experience
  7. 2 people found this helpful  

    Software Engineering Interview

    Anonymous Interview Candidate in Seattle, WA
    Anonymous Interview Candidate in Seattle, WA
    Application Details

    I applied through college or university. The process took 6 daysinterviewed at Facebook in February 2015.

    Interview Details

    On campus recruiting, followed by an onsite. The interview questions were generally pretty easy, and the interviewers generally were good with hints on how to optimize code. The process was extremely straightforward. Make sure you put code down on the whiteboard that is clean and readable.

    Interview Questions
    • Print a linked list in reverse recursively and non-destructively.   View Answers (3)
    • Standard dynamic problems.   Answer Question
    • Given a set of strings, return the smallest subset that contains prefixes for every string.

      If the list is ['foo', 'foog', 'food', 'asdf'] return ['foo', 'asdf']
       
      View Answer
    Accepted Offer
    Positive Experience
    Average Interview
  8.  

    Software Engineer Interview

    Anonymous Interview Candidate in Menlo Park, CA
    Anonymous Interview Candidate in Menlo Park, CA
    Application Details

    I applied online. The process took 2 daysinterviewed at Facebook in January 2015.

    Interview Details

    Two technical phone screen interviews and afterwards and invite to the Facebook University Day at a campus of my choice (Menlo Park, Seattle or NYC) - all expenses paid. On campus I had a final technical interview with one of the developers. The rest of the day was spent getting to know the campus and some of the newly hired developers as well as a Q&A with a senior developer.

    Interview Questions
    • Please tell me about a previous project of yours and what you would have to change in order to make it scale to millions of users.   Answer Question
    Accepted Offer
    Positive Experience
    Average Interview
  9. 3 people found this helpful  

    Software Engineer Interview

    Anonymous Interview Candidate
    Anonymous Interview Candidate
    Application Details

    I applied through an employee referral – interviewed at Facebook.

    Interview Details

    I had my friend referred me to the intern position. It took about 3 weeks to hear from a recruiter. The process was pretty easy. After only one phone interview I was invited to go onsite. The phone interview takes 45 minutes. First talked about one of my previous projects. Then two technical problems.

    Interview Questions
    • The first one is, given a tree, each node contains a digit. Calculate the sum of all numbers formed by paths from root to leaf.

      The second one is given a string, remove all 'b's and duplicate all 'a's.
       
      View Answers (6)
    Accepted Offer
    Positive Experience
    Easy Interview
  10. 6 people found this helpful  

    Software Engineer Interview

    Anonymous Interview Candidate
    Anonymous Interview Candidate
    Application Details

    I applied through a recruiter. The process took 4+ weeksinterviewed at Facebook in January 2015.

    Interview Details

    Facebook recruiter got in touch with me. Had a phone conversation with her. She setup a phone screen within a week. Used Collabedit for coding. Two questions. Got a reply back within a week. Setup on site for the next week. 1 behavioral, lunch, 2 coding, 1 system design. The questions I got were weren't super difficult except for the system design question (how will you design the social graph with class, interfaces, etc). Other questions were, implement Pow, convert from decimal to roman and vice versa, binary tree serialization and deserialization, implement concurrent read/write buffer. For the system design question, the interviewer was very helpful and provided hints when I got stuck.

    Interview Questions
    Negotiation Details
    I didn't have a competing offer but they made a better offer when I said that I will not accept their offer. I have 5 years of industry experience and already work fulltime at a big company.
    Accepted Offer
    Positive Experience
    Difficult Interview

Work at Facebook? Share Your Experiences

Facebook

 
Click to Rate
or

The difficulty rating is the average interview difficulty rating across all interview candidates.

The interview experience is the percentage of all interview candidates that said their interview experience was positive, neutral, or negative.

Your response will be removed from the review – this cannot be undone.