Facebook Interview Questions



53 Facebook Interview Questions Found

What to expect at Facebook Interview?


Facebook's Interview Process

  1. 2 Telephonic interviews which focus on basic problem solving and data structures
  2. 2-3 Coding Onsite interviews which involve whiteboarding solutions to slightly harder data structures / algorithmic problems. The lesser experienced you are, the more number of coding onsite interview rounds for you.
  3. 0-1 System Design Onsite interviews which involve coming up with high level design architectures for real life products. The more experienced you are, the more number of these interviews you might face.
  4. 1 Cultural Fit Onsite interview which will evaluate whether you are a good cultural fit for Facebook depending on your attitude and previous work experience.

Where to Prepare

  1. Coding rounds: Material in the programming section of InterviewBit is pretty comprehensive. For your reference, the section below has some of the questions which are frequently asked in Facebook's Interview. Make sure to try and solve most of them.
  2. Design rounds: InterviewBit System Design prep has you covered here. Make sure to go through some frequently asked interview problems listed on the page.
  3. Cultural fit rounds: In most cases, this should not be an issue. However, go through Cultural Fit Interview Guidelines to make sure you don't make common mistakes.

Cracking the Facebook's Software Engineering Interview



Solve Interview Questions asked at Facebook



Longest Increasing Subsequence
Find the longest increasing subsequence of a given sequence / array. In other words, find a subsequence of array in which the subsequence’s elements a...
Unique Paths in a Grid
Given a grid of size m * n, lets assume you are starting at (1,1) and your goal is to reach (m,n). At any instance, if you are on (x,y), you can either...
Ways to Decode
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an en...
Best Time to Buy and Sell Stocks II
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple...
Best Time to Buy and Sell Stocks III
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple...
Best Time to Buy and Sell Stocks I
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction...
Regular Expression Match
Implement wildcard pattern matching with support for '?' and '*'. '?' : Matches any single character. '*' : Matches any sequence of characters ...
Regular Expression II
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding elemen...
Add Two Numbers as Lists
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single d...
Reverse Link List II
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, r...


See all Facebook Interview Questions

Testimonials