Facebook Software Engineering Interview Questions

Updated Jun 23, 2015
529 Interview Reviews

Interview Experience

Interview Experience

60%
22%
16%

Getting an Interview

Getting an Interview

19%
15%
14%

Interview Difficulty

3.2
Average

Interview Difficulty

Hard

Average

Easy

529 Candidate Interview Reviews Back to all Interviews

Sort: Popular Date Difficulty

Helpful (4)  

Software Engineer Interview

Anonymous Employee in Mountain View, CA
No Offer
Negative Experience
Easy Interview

Application

I applied through an employee referral. The process took 2 weeksinterviewed at Facebook (Mountain View, CA) in May 2015.

Interview

Phone call, code test phone interview. Asked one coding question, like all the interview questions that you can find online, it was judged by if you can recite those solutions as quick as possible, not thought process. Interviewer was not experienced.

Interview Questions

  • Write a function to out put n numbers in a fibonacci sequence   Answer Question

Other Interview Reviews for Facebook

  1.  

    Software Engineer Interview

    Anonymous Employee
    No Offer
    Neutral Experience
    Difficult Interview

    Application

    I applied through college or university – interviewed at Facebook.

    Interview

    Meet female recruiter at check in station. Move to different room where you meet someone else, a male dev from Facebook. Not really interesting in learning anything about me or if I was a robot, so straight to whiteboard questions.

    Interview Questions

    • 4 or 5+ questions increasing in difficulty. Only say that since I solved 4 questions in the 30 minute slot and he may have had more.
      Early question: Make a method that calculates a square root given a double.
       
      1 Answer
  2.  

    Software Engineer Interview

    Anonymous Employee
    No Offer
    Neutral Experience
    Difficult Interview

    Interview

    Applied online; heard back within a few weeks. Set up a phone interview with an engineer which involved collaborative coding questions. I didn't do very well, and got a denial email a week or so later.

    Interview Questions

    • Q: Write a function that can tell if a string is a palindrome regardless of punctuation or capitalization?   4 Answers
  3. Helpful (46)  

    Software Engineer Interview

    Anonymous Employee in Menlo Park, CA
    No Offer
    Positive Experience
    Easy Interview

    Application

    I applied through college or university – interviewed at Facebook (Menlo Park, CA).

    Interview

    Process:
    This is for undergrad full-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.

    All interviews were 45-mins length.

    Interviews themselves:
    On-campus interview: 3 coding questions. I don't remember signing any NDA at this point so, the questions were k-Nearest Points to Origin, finding a substring, and 3-sum.

    On-site interview: 3 interviews, 45 mins each. 1st interview: 2 coding questions. 2nd interview: behavioral questions (about team conflict, etc.) and a coding question. 3rd interview: 2 coding questions. Coding questions were easy and required *no knowledge* of special algorithms or data structures (such as graphs, DP, trees, etc). Recursion and strings were common.

    I did not get an offer from Facebook; however, I received offers from other companies. The interview questions themselves were considerably easier at Facebook than those asked at Google, LinkedIn, MS, Amazon, etc.

    Since the questions are not very hard, my guess is the decision is based upon fit and most importantly how *quickly* you were able to arrive at your solution and how *perfect* your code was. Make sure you focus and are confident.

    Advice: practice the easier questions and practice coding them. Also, looking at some of the other experiences on Glassdoor, it looks like a majority of the questions are re-used.

    Interview Questions

  4. Is this helpful? The community relies on everyone sharing – Add Anonymous Interview Review


  5. Helpful (1)  

    Software Engineer Interview

    Anonymous Employee in Tampa, FL
    No Offer
    Negative Experience
    Difficult Interview

    Application

    I applied online. The process took 1 dayinterviewed at Facebook (Tampa, FL) in May 2015.

    Interview

    The process is straight forward , it consisted of multiple rounds , begins with screening , technical interview , and then HR and technical round at headquarters.
    My phone screening was easy totally based on resume and then there were two technical rounds online to be taken one to one

    Interview Questions

    • Technical round , I was asked to code in Java ( select the best language you have expertise)

      Question --> Take an array ( length to be declared at command prompt) if length ==2 , print (1,2), 1,3 1,4 .... if length is 3 print 1,2,3 (1,2,4) and so on
       
      2 Answers
  6.  

    Software Engineer Interview

    Anonymous Employee in Menlo Park, CA
    No Offer
    Positive Experience
    Average Interview

    Application

    I applied online. The process took a weekinterviewed at Facebook (Menlo Park, CA) in May 2015.

    Interview

    I applied on facebook site, and was contacted not so long after, told to schedule a date for an interview. I was called exactly the time given, interviewer went straight to the point. He gave a very brief introduction about himself and we went straight to coding. He asked me just one question but I couldn't give the right answer as I did not go over some basic data structures.
    I would advice that if you have an interview for any SWE, you should go over everything!

    Interview Questions

    • Given a string with parenthesis like "()()(()(()()", check to see if there are matching pairs. If there are matching pairs, return true, else return false.
      For example, ()()() returns true, ()()()) returns false.
       
      3 Answers
  7.  

    Software Engineer Interview

    Anonymous Employee in New York, NY
    No Offer
    Positive Experience
    Average Interview

    Application

    I applied online. The process took 2 daysinterviewed at Facebook (New York, NY) in May 2015.

    Interview

    Roughly 45 min phone interview starting with introducing yourself and your working experience,
    Academic experience etc.
    Then a coding exercise using an online document sharing with a C language algorithmic question.
    i.e Without using STL or other external libraries.
    The question is a basic String Algorithm question.

    Interview Questions

    • given a string ( char* ) Write a program to Rotate its words
      i.e:
      void RotateWords(char* str);
       
      Answer Question
  8.  

    Software Engineer Interview

    Anonymous Employee
    No Offer
    Positive Experience
    Difficult Interview

    Application

    I applied through an employee referral. The process took 2 weeksinterviewed at Facebook in May 2015.

    Interview

    Had a phone interview. Interviewer was very friendly and explained her work at Facebook. She asked for my introduction, then proceeded to a coding question.

    Advice: Definitely go over glass door questions and be able to do other variations of the problems here.

    Interview Questions

    • Convert a binary tree to a circularly doubly linked list. head->prev = tail node. tail->next = head node. Do not use any other data structures. Must be done on the tree itself.   Answer Question
  9.  

    Software Engineer Interview

    Anonymous Employee in Seattle, WA
    No Offer
    Neutral Experience
    Average Interview

    Application

    I applied through a recruiter. The process took 2 weeksinterviewed at Facebook (Seattle, WA) in May 2015.

    Interview

    Met recruiter at the Facebook offices, she showed me around. Because I was applying for an engineering position, it started on the engineering floor, which isn't too big. Nice offices but nothing super special, she did mention they were moving fairly soon. After the brief tour went down to the 2nd floor and went to a small room for the technical screen. An engineer came in and for a minute or two asked me about my background and work experience. Then went and asked me two technical questions. The first one was pretty straight forward, but I spent a long time explaining my thought process and debugging and everything. (As a ton of sites say you do). Second one was a bit more of a puzzle question and stumbled a little on it, basically it was a binary search algorithm. Unfortunately a miscommunication at the beginning of the question caused me to try to think of it in a different direction, but eventually got it and realized time was up so I quickly coded the solution and debugged it, but didn't explain myself probably because I knew the time was up.

    Ultimately got both questions right with a minor stumble and then was not asked for a further interview, so I really have no idea why, and unfortunately I understand for legal ramifications why they can't tell me. However not getting past the screen was unexpected.

    Interview Questions

    • Basic string modification question.   1 Answer
  10. Helpful (2)  

    Software Engineer Interview

    Anonymous Employee
    No Offer
    Negative Experience
    Average Interview

    Application

    I applied through a recruiter – interviewed at Facebook.

    Interview

    I have interviewed with facebook 3 times. every time they ask the same stupid question given an array of integers, find 3 integers that sum to zero. as many as 3 people from HR get involved to schedule a simple phone screen. and even after solving the problem in O(n^2) time, i did not get any on-site with them.

    Interview Questions

    • given an array of integers, find 3 integers that sum to zero   3 Answers
    • given sorted circularly linked list how would you insert an element in it?   2 Answers

See What Facebook Employees Are Saying

 Former Software Development Engineer in Menlo Park, CA

Pros: “Best company for an intern! Everything is free and there is a good hotel to live! Worked on an independent project. (This is really good compare to some interns in Canada..)” Full Review

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.