Upload Button Icon Add office photos

Facebook

Compare button icon Compare button icon Compare

Filter interviews by

Facebook Interview Questions, Process, and Tips

Updated 15 Jan 2025

Top Facebook Interview Questions and Answers

  • Q1. Saving Money Problem Statement Ninja is adventurous and loves traveling while being mindful of his expenses. Given a set of 'N' stations connected by 'M' trains, each tr ...read more
    asked in Software Developer interview
  • Q2. Given a hashmap M which is a mapping of characters to arrays of substitute characters, and an input string S, return an array of all possible mutations of S (where any ch ...read more
    asked in SDE interview
  • Q3. Given an “id” and a function getFriends(id) to get the list of friends of that person id, write a function that returns the list of “friends of friends” in the order of d ...read more
    asked in Software Engineer interview
View all 67 questions

Facebook Interview Experiences

Popular Designations

52 interviews found

I applied via Job Fair and was interviewed before Mar 2021. There was 1 interview round.

Round 1 - One-on-one 

(5 Questions)

  • Q1. What is the right age of employee to retire from any private company?
  • Ans. According to me my was 49 due to disability.
  • Answered Anonymously
  • Q2. Who is responsible for illegal rules?
  • Ans. 

    The responsibility for illegal rules lies with the individuals or entities that create and enforce them.

    • Illegal rules are typically created by individuals or organizations in positions of authority or power.

    • Government bodies, legislative bodies, or regulatory agencies may be responsible for creating illegal rules.

    • Enforcement agencies, such as the police or regulatory authorities, may be responsible for enforcing illega...

  • Answered by AI
  • Q3. Knowledge having is good or bad
  • Q4. Nor good nor bad but must have complete instead having non or incomplete
  • Q5. Why life is unbearable sometimes?
  • Ans. Might be thinking of view matter toward situation and time.
  • Answered Anonymously

Interview Preparation Tips

Interview preparation tips for other job seekers - Work from home long journey as per my experience

from Home Article Writing job Interview Questions asked at other Companies

Q1. Who is responsible for illegal rules?
View answer (2)

I was interviewed before Dec 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Hard

This was an online coding round where we were supposed to solve 2 questions under 90 minutes . Both the questions in my set were related to Graphs and were quite tricky and heavy to implement.

  • Q1. 

    Path Counting in Directed Graph

    Given a directed graph with a specified number of vertices V and edges E, your task is to calculate the total number of distinct paths from a given source node S to all ot...

  • Ans. 

    Steps: 

    1) Create a recursive function that takes index of node of a graph and the destination index. Keep a global or a static variable count to store the count. Keep a record of the nodes visited in the current path by passing a visited array by value (instead of reference, which would not be limited to the current path).
    2) If the current nodes is the destination increase the count.
    3) Else for all the adjacent no...

  • Answered Anonymously
  • Q2. 

    Course Schedule II Problem Statement

    You are provided with a number of courses 'N', some of which have prerequisites. There is a matrix named 'PREREQUISITES' of size 'M' x 2. This matrix indicates that fo...

  • Ans. 

    Approach : This problem was based on Topological Sorting .

    The first node in the topological ordering will be the node that doesn't have any incoming edges. Essentially, any node that has an in-degree of 0 can start the topologically sorted order. If there are multiple such nodes, their relative order doesn't matter and they can appear in any order.

    Algorithm : 

    1) Initialize a queue, Q to keep a track of all the nod...

  • Answered Anonymously
Round 2 - Face to Face 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This was a Data Structures and Algorithms round with some standard questions . I was expected to come up with an
efficient approach and code it as well .

  • Q1. 

    Merge Intervals Problem Statement

    You are provided with 'N' intervals, each containing two integers denoting the start time and end time of the interval.

    Your task is to merge all overlapping intervals a...

  • Ans. 

    Steps : 

    1) First, we sort the list as described. 
    2) Then, we insert the first interval into our merged list and continue considering each interval in turn as follows - 
    2.1) If the current interval begins after the previous interval ends, then they do not overlap and we can 
    append the current interval to merged. 
    2.2) Otherwise, they do overlap, and we merge them by updating the end of the previo...

  • Answered Anonymously
  • Q2. 

    Longest Route Problem Statement

    Given a 2-dimensional binary matrix called Mat of size N x M that consists solely of 0s and 1s, find the length of the longest path from a specified source cell to a destina...

  • Ans. 
    1. The idea is to reduce the problem from finding a path from source to destination to finding a path from some node to destination and building our answer up.
    2. From the current cell, we look if there exists a neighbor from where I can reach the destination if no such neighbor exists we return -1.
    3. Else if a path exists we take the longest path then add 1 in it ( to account for the transition from the current cell to a neighb...
  • Answered Anonymously
Round 3 - Face to Face 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This was also a DSA round where I was asked to code only one of the questions but I eventually ended up coding both
as I had some spare time and explained my approches very smoothly to the interviewer . This round went preety well .

  • Q1. 

    Longest Increasing Subsequence Problem Statement

    Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This...

  • Ans. 

    Approach 1 (Using DP ) :

    This is a classic Dynamic Programming problem.
    Steps : 
    1) Let dp[i] is the longest increase subsequence which ends at nums[i] . 
    2) For every i from 0 to n , traverse backwards from j=i-1 to j=0 and check if nums[i]>nums[j].
    3) If nums[i]>nums[j] , update dp[i]=max(dp[i] , dp[j]+1)
    4) Finally return the maximum element from the DP array

    TC: O(N^2)
    SC: O(N)

    Approach 2 (Using Binary Searc...

  • Answered Anonymously
  • Q2. 

    Search In Rotated Sorted Array Problem Statement

    Given a rotated sorted array ARR of size 'N' and an integer 'K', determine the index at which 'K' is present in the array.

    Note:
    1. If 'K' is not present...
  • Ans. 

    This was a preety standard Binary Search Question and I had solved this question before on platforms like LeetCode and CodeStudio . I was asked this question to test my implementation skills and how well do I handle Edge Cases .

    Approach :
    1) The idea is to find the pivot point, divide the array in two sub-arrays and perform binary search.
    2) The main idea for finding pivot is – for a sorted (in increasing order) and pivo...

  • Answered Anonymously
Round 4 - Face to Face 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This was also a DSA round with 2 questions of Medium to Hard difficulty . I was expected to follow some clean code and OOPS principles to write the code in this round .

  • Q1. 

    Rank from Stream Problem Statement

    Given an array of integers ARR and an integer K, determine the rank of the element ARR[K].

    Explanation:

    The rank of any element in ARR is defined as the number of elem...

  • Ans. 

    Step 1- Making the ‘BST’ :

     

    Let insert(TreeNode* <int> ROOT, int VAL) be a function which insert data into ‘BST’.

    Now consider the following steps to implement the function :

    1. If ‘ROOT’ is NULL then make a new Node with data and return it.
    2. If 'VAL' is less than data of ‘ROOT’ then do:
      1. Make a recursive call with the left child of ‘ROOT’ as ‘ROOT’.
      2. Increase the size of the left subtree of ‘ROOT’ by 1.
    3. Otherwise do:
      1. Mak...
  • Answered Anonymously
  • Q2. 

    LRU Cache Design Question

    Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:

    1. get(key) - Return the value of the key if it exists in the cache; otherw...

  • Ans. 

    Approach : 

    Structure of an LRU Cache :

    1) In practice, LRU cache is a kind of Queue — if an element is reaccessed, it goes to the end of the eviction order
    2) This queue will have a specific capacity as the cache has a limited size. Whenever a new element is brought in, it
    is added at the head of the queue. When eviction happens, it happens from the tail of the queue.
    3) Hitting data in the cache must be done in const...

  • Answered Anonymously

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAFacebook interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Top Facebook Software Developer Interview Questions and Answers

Q1. Saving MoneyNinja likes to travel a lot, but at the same time, he wants to save as much money as possible. There are ‘N’ Stations connected by ‘M’ Trains. Each train that he boards starts from station ‘A’ and reaches destination station ‘B’... read more
View answer (5)

Software Developer Interview Questions asked at other Companies

Q1. Maximum Subarray SumGiven an array of numbers, find the maximum sum of any contiguous subarray of the array. For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and ... read more
View answer (39)
Facebook Interview Questions and Answers for Freshers
illustration image

I was interviewed before Dec 2020.

Round 1 - Face to Face 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This was a Data Structures and Algorithms round with preety good questions . I was expected to come up with an efficient approach and code it as well .

  • Q1. 

    K Closest Points to Origin Problem Statement

    Your house is located at the origin (0,0) of a 2-D plane. There are N neighbors living at different points on the plane. Your goal is to visit exactly K neighb...

  • Q2. 

    Power Set Generation

    Given a sorted array of 'N' integers, your task is to generate the power set for this array. Each subset of this power set should be individually sorted.

    A power set of a set 'ARR' i...

Round 2 - Face to Face 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Hard

This was also a DSA round where I was asked to code only one of the questions but I eventually ended up coding both as I had some spare time and explained my approches very smoothly to the interviewer . This round went preety well .

  • Q1. 

    Roman Numeral to Integer Conversion

    Convert a string representing a Roman numeral into its integer equivalent and return the result.

    Explanation:

    Roman numerals are represented by seven different symbol...

  • Q2. 

    Pair Sum Problem Statement

    You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

    Note:
    ...
Round 3 - Face to Face 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This was also a DSA round with 2 questions . One was implementation heavy and the other was related to recursion and so I handled it carefully so that my code does not run into TLE or Segmentation Fault.

  • Q1. 

    Arithmetic Expression Evaluation Problem Statement

    You are provided with a string expression consisting of characters '+', '-', '*', '/', '(', ')' and digits '0' to '9', representing an arithmetic express...

  • Q2. 

    Remove Duplicates from Sorted Array Problem Statement

    You are given a sorted integer array ARR of size N. Your task is to remove the duplicates in such a way that each element appears only once. The outpu...

Round 4 - Face to Face 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This was a typical System Design round where I was asked about the various features of Facebook and what sort of data structures and algorithms are used in implementing them .

  • Q1. How does Facebook store likes and dislikes?
  • Q2. How does Facebook implement graph search?
Round 5 - Face to Face 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This was a preety intense round as I was grilled more on my System Design concepts but eventually I was able to asnwers all the questions with some help from the interviewer.

  • Q1. What is Hadoop and why is it used?
  • Q2. How does Facebook Chat work?

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAFacebook interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 5 MonthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Top Facebook Software Developer Interview Questions and Answers

Q1. Saving Money Problem Statement Ninja is adventurous and loves traveling while being mindful of his expenses. Given a set of 'N' stations connected by 'M' trains, each train starting from station 'A' and reaching station 'B' at a cost of 'P'... read more
View answer (1)

Software Developer Interview Questions asked at other Companies

Q1. Maximum Subarray Sum Problem Statement Given an array of integers, determine the maximum possible sum of any contiguous subarray within the array. Example: Input: array = [34, -50, 42, 14, -5, 86] Output: 137 Explanation: The maximum sum is... read more
View answer (38)

I was interviewed before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 75 minutes
Round difficulty - Easy

Timing it is around 11 am and Environment is good .

  • Q1. 

    Bird and Maximum Fruit-Gathering Problem Statement

    A ninja bird can gather fruits from trees arranged in a circle. Each tree has an associated fruit value. The bird can gather all the fruits from a tree i...

  • Q2. 

    Base 58 Conversion Problem Statement

    You are given a decimal number 'N'. Your task is to convert this number into a base 58 representation.

    The Base58 alphabet is defined by the following characters: “12...

Round 2 - Telephonic Call 

(2 Questions)

Round duration - 45 mintues
Round difficulty - Medium

Environment was very friendly but questions asked are hard

  • Q1. 

    Pair Sum Problem Statement

    You are provided with an array ARR consisting of N distinct integers in ascending order and an integer TARGET. Your objective is to count all the distinct pairs in ARR whose sum...

  • Q2. 

    Triplets with Given Sum Problem

    Given an array or list ARR consisting of N integers, your task is to identify all distinct triplets within the array that sum up to a specified number K.

    Explanation:

    A t...

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in DelhiEligibility criteria8 CGPA aboveFacebook interview preparation:Topics to prepare for the interview - Linked List, Binary Search Tree ,Queue, Array ,DP ,Graph ,RecursionTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Practice Atleast 500 Questions
Tip 2 : Do atleast 1 good projects
Tip 3 : You should be able to explain your project

Application resume tips for other job seekers

Tip 1 : Have some projects on resume. 
Tip 2 : Do not put false things on resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

Top Facebook Software Developer Intern Interview Questions and Answers

Q1. Base 58 Conversion Problem Statement You are given a decimal number 'N'. Your task is to convert this number into a base 58 representation. The Base58 alphabet is defined by the following characters: “123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdef... read more
Add answer

Software Developer Intern Interview Questions asked at other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an array ARR of size N, your objective is to determine the sum of the largest and smallest elements within the array. Follow Up: Can you achieve the above task using the least numb... read more
View answer (4)

Facebook interview questions for popular designations

 Software Engineer

 (6)

 Software Developer

 (5)

 Program Manager

 (2)

 Senior Software Engineer

 (2)

 Software Developer Intern

 (2)

 Android App Developer

 (1)

 Assistant

 (1)

 Associate Software Engineer

 (1)

I was interviewed in May 2017.

Interview Questionnaire 

2 Questions

  • Q1. Tough situations during your working tenure
  • Ans. 

    Dealing with negative feedback and managing a social media crisis

    • Handling negative comments and reviews on social media platforms

    • Addressing customer complaints and resolving issues in a timely manner

    • Managing a social media crisis and developing a crisis communication plan

    • Monitoring online conversations and sentiment analysis to identify potential issues

    • Collaborating with cross-functional teams to provide accurate and t...

  • Answered by AI
  • Q2. Job role and responsibilities
  • Ans. 

    Social Media Analyst is responsible for monitoring, analyzing, and optimizing social media strategies to increase engagement and reach.

    • Monitor social media platforms for trends and insights

    • Analyze data to measure the success of social media campaigns

    • Optimize content and strategies based on performance metrics

    • Collaborate with marketing team to align social media efforts with overall goals

  • Answered by AI

Interview Preparation Tips

Round: Resume Shortlist
Experience: Based on the experience the concerned team processed my profile for further rounds
Tips: Should have a relevant experience/ skillsets for qualifying for this round

Round: HR Interview
Experience: Based on the experience the concerned team processed my profile for further rounds
Tips: Should have a relevant experience/ skillsets for qualifying for this round

Round: HR Interview
Experience: In this round, Hr asked me more about my job role and job responsibilities and also scenarios where I have shown my skills and how I have handled it. Also, asked me to talk for few minutes about a given topic.
Tips: Be ready to show case your talent. Be active and presence of mind helps here. Don't try to boast about your profile much.

Round: Group Discussion
Experience: We have given global warming as a topic to discuss on and it followed the same pattern as like normal interviews
Tips: Pitch up your ideas including facts and figures. Don't agrue with anyone and keep an eye on your communication skills.
Duration: 15 minutes

Round: Operations
Experience: In this round, I got in touch with concerned operations manager. She asked me more about the general aspects like why do you want to quit your job and what are your achievements during your work tenure. Where you ll in the next five years. What do you about current job profile and workspace.
Tips: Be honest and don't show your willingness to join the org. Keep it straight and simple.

Skills: Communication And Confidence

Social Media Analyst Interview Questions asked at other Companies

Q1. Do you know about our software? Have you ever used it?
View answer (2)

Get interview-ready with Top Facebook Interview Questions

SDE Interview Questions & Answers

user image Anonymous

posted on 5 Jun 2015

Interview Questionnaire 

16 Questions

  • Q1. Given a set of 2D points, some integer k, find the k points closest to the origin, (0,0)
  • Ans. 

    Find k closest points to origin from a set of 2D points.

    • Calculate distance of each point from origin using distance formula

    • Sort the points based on distance in ascending order

    • Return first k points from the sorted list

  • Answered by AI
  • Q2. How will you describe iOS manual memory management for a new developer in few words?
  • Ans. 

    iOS manual memory management requires developers to manually allocate and deallocate memory for objects.

    • Developers must manually allocate memory for objects using methods like alloc and init.

    • Developers must also manually deallocate memory for objects using methods like release.

    • Failure to properly manage memory can lead to memory leaks and crashes.

    • ARC (Automatic Reference Counting) was introduced in iOS 5 to automate me...

  • Answered by AI
  • Q3. Write a program to print the powerset. E.g. given this set {1,2,3}, it will print {},{1},{2},{3},{1,2},{1,3}, {2,3}, {1,2,3}
  • Ans. 

    Program to print powerset of a given set

    • Create an empty list to store subsets

    • Loop through all possible binary numbers from 0 to 2^n-1 where n is the length of the set

    • For each binary number, convert it to binary and use the 1's as indices to select elements from the set

    • Add the selected elements to the list of subsets

    • Return the list of subsets

  • Answered by AI
  • Q4. Convert a string of Roman numerals to an integer in O(n) time
  • Ans. 

    Convert Roman numerals to integer in O(n) time

    • Create a dictionary to map Roman numerals to integers

    • Iterate through the string from right to left

    • If the current numeral is less than the previous, subtract it from the total

    • Else, add it to the total

    • Return the total

  • Answered by AI
  • Q5. Given a list of integer numbers, a list of symbols [+,-,*,/] and a target number N, provide an expression which evaluates to N or return False if that is not possible. e.g. let the list of numbers be [1,...
  • Ans. 

    Given a list of numbers and symbols, provide an expression that evaluates to a target number.

    • Use recursion to try all possible combinations of numbers and symbols

    • Check for division by zero and negative numbers

    • Return False if no expression evaluates to the target number

  • Answered by AI
  • Q6. Given an expression (in single variable) like 4x+13(x-(4x+x/3)) = 9, evaluate x The expression is a string and the variable is always x
  • Ans. 

    Solve for x in a given expression with single variable.

    • Simplify the expression by applying the distributive property and combining like terms.

    • Isolate the variable term on one side of the equation and the constant terms on the other side.

    • Solve for x by dividing both sides of the equation by the coefficient of the variable term.

    • Check the solution by substituting the value of x back into the original equation.

    • In this case...

  • Answered by AI
  • Q7. Given a hashmap M which is a mapping of characters to arrays of substitute characters, and an input string S, return an array of all possible mutations of S (where any character in S can be substituted wit...
  • Ans. 

    Given a hashmap M and an input string S, return an array of all possible mutations of S using M's substitutes.

    • Iterate through each character in S and get its substitutes from M

    • Use recursion to generate all possible combinations of substitutes for each character

    • Time complexity: O(n^m) where n is the average number of substitutes per character and m is the length of S

    • Space complexity: O(n^m) due to the number of possible...

  • Answered by AI
  • Q8. Brain storming:How does facebook implement graph search
  • Ans. 

    Facebook implements graph search by indexing user data and using natural language processing.

    • Facebook indexes user data to create a graph of connections and relationships.

    • Natural language processing is used to interpret user queries and return relevant results.

    • Graph search allows users to search for specific information within their network, such as 'friends who like hiking'.

  • Answered by AI
  • Q9. How does facebook chat work
  • Ans. 

    Facebook chat is a real-time messaging service that allows users to communicate with each other through the Facebook website or mobile app.

    • Facebook chat uses XMPP (Extensible Messaging and Presence Protocol) to enable real-time communication between users.

    • Messages are sent and received through Facebook's servers, which act as intermediaries between users.

    • Users can see when their friends are online and available to chat...

  • Answered by AI
  • Q10. How does fb store likes/dislikes ?
  • Ans. 

    Facebook stores likes/dislikes as data points in their database.

    • Likes and dislikes are stored as separate data points.

    • Each like/dislike is associated with a unique ID for the post or comment.

    • The data is stored in Facebook's database and can be accessed through their API.

    • Likes/dislikes can also be used to personalize a user's newsfeed.

    • Facebook also uses likes/dislikes to gather data for targeted advertising.

  • Answered by AI
  • Q11. How do u implement status updates ?
  • Ans. 

    Status updates can be implemented through various methods such as push notifications, real-time updates, and periodic polling.

    • Use push notifications to instantly update users on important changes.

    • Implement real-time updates using websockets or server-sent events for a seamless user experience.

    • Periodically poll the server for updates using AJAX or other similar technologies.

    • Provide a clear and concise interface for user...

  • Answered by AI
  • Q12. How do u implement timeline/newsfeed ?
  • Ans. 

    A timeline/newsfeed can be implemented using a combination of algorithms and data structures.

    • Use a database to store user activity data

    • Implement an algorithm to sort the data by time

    • Use pagination to limit the number of items displayed at once

    • Include options for filtering and searching

    • Consider using caching to improve performance

  • Answered by AI
  • Q13. What exactly happens when you add someone as your friend ?
  • Ans. 

    Adding someone as a friend allows you to connect with them on the platform and see their updates.

    • When you add someone as a friend, they receive a notification and can choose to accept or decline your request.

    • Once they accept your request, you can see their updates and they can see yours.

    • You can also message each other and tag each other in posts.

    • Adding someone as a friend does not give them access to your personal info...

  • Answered by AI
  • Q14. Explain more about hadoop and how it is used ?
  • Ans. 

    Hadoop is a distributed computing framework used for storing and processing large datasets.

    • Hadoop is based on the MapReduce programming model.

    • It allows for parallel processing of large datasets across multiple nodes.

    • Hadoop consists of two main components: HDFS for storage and MapReduce for processing.

    • It is commonly used for big data analytics, machine learning, and data warehousing.

    • Examples of companies using Hadoop in

  • Answered by AI
  • Q15. How do fb messages work ?
  • Ans. 

    FB messages work by allowing users to send and receive text, images, videos, and other media through the Facebook platform.

    • Messages can be sent to individuals or groups of people.

    • Users can also send voice messages and make voice and video calls through the messaging feature.

    • Messages can be archived or deleted, and users can also choose to ignore or block certain senders.

    • Facebook uses end-to-end encryption to protect th...

  • Answered by AI
  • Q16. How does fb mail work ?
  • Ans. 

    FB Mail is a messaging service that allows Facebook users to send and receive messages from other users.

    • FB Mail is integrated into the Facebook platform and can be accessed through the Messenger app or website.

    • Users can send messages to individuals or groups, and can also attach files, photos, and videos.

    • FB Mail also includes features such as message requests, message filtering, and message archiving.

    • Messages can be se...

  • Answered by AI

Interview Preparation Tips

College Name: NA

Skills evaluated in this interview

Top Facebook SDE Interview Questions and Answers

Q1. Given a hashmap M which is a mapping of characters to arrays of substitute characters, and an input string S, return an array of all possible mutations of S (where any character in S can be substituted with one of its substitutes in M, if i... read more
View answer (1)

SDE Interview Questions asked at other Companies

Q1. Longest Increasing SubsequenceFor a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increasing order. Strictly Increasin... read more
View answer (5)

Jobs at Facebook

View all

Interview Questions & Answers

user image Anonymous

posted on 2 Jun 2015

Interview Preparation Tips

Round: Test
Experience: Online Round

2 coding questions were given, and the time was 75 minutes.

1. There are n trees in a circle. Each tree has a fruit value associated with it. A bird can sit on a tree for 0.5 sec and then he has to move to a neighbouring tree. It takes the bird 0.5 seconds to move from one tree to another. The bird gets the fruit value when she sits on a tree. We are given n and m (the number of seconds the bird has), and the fruit values of the trees. We have to maximise the total fruit value that the bird can gather. The bird can start from any tree.

I forgot the examples, sorry:(2. You are given the encoding for a base 58 number. You have to convert all the numbers from 1 to n to a base 58 number using the encoding given.The questions were not difficult, and the shortlisting basis was very strange. My friend finished much before me, but he was not shortlisted. I think they looked at your CV and projects.1st telephonic round

College Name: NA

Interview Questionnaire 

8 Questions

  • Q1. Given two “ids” and a function getFriends(id) to get the list of friends of that person id, write a function that returns the list of mutual friends
  • Ans. 

    Function to return mutual friends given two ids and getFriends(id) function

    • Call getFriends(id) for both ids to get their respective friend lists

    • Iterate through both lists and compare to find mutual friends

    • Return the list of mutual friends

  • Answered by AI
  • Q2. Given an “id” and a function getFriends(id) to get the list of friends of that person id, write a function that returns the list of “friends of friends” in the order of decreasing number of mutual friends,...
  • Ans. 

    Function to return list of friends of friends in decreasing order of mutual friends

    • Use a set to store all friends of friends

    • Iterate through the list of friends of the given id

    • For each friend, iterate through their list of friends and count mutual friends

    • Sort the set of friends of friends by decreasing number of mutual friends

  • Answered by AI
  • Q3. Given a number of time slots – start time and end time,“a b”, find any specific time with the maximum number of overlapping. After solving the problem I had to prove my solution
  • Ans. 

    Given time slots, find a specific time with maximum overlap. Prove solution.

    • Create a list of all start and end times

    • Sort the list in ascending order

    • Iterate through the list and keep track of the number of overlaps at each time

    • Return the time with the maximum number of overlaps

    • Prove solution by testing with different input sizes and edge cases

  • Answered by AI
  • Q4. Given an array of Integers, find the Longest sub-array whose elements are in Increasing Order
  • Ans. 

    Find the longest sub-array with increasing order of integers.

    • Iterate through the array and keep track of the current sub-array's start and end indices.

    • Update the start index whenever the current element is smaller than the previous element.

    • Update the end index whenever the current element is greater than or equal to the next element.

    • Calculate the length of the sub-array and compare it with the longest sub-array found s

  • Answered by AI
  • Q5. Given an array of Integers, find the length of Longest Increasing Subsequence and print the sequence.
  • Ans. 

    Find the length of longest increasing subsequence and print the sequence from an array of integers.

    • Use dynamic programming to solve the problem

    • Create an array to store the length of longest increasing subsequence ending at each index

    • Traverse the array and update the length of longest increasing subsequence for each index

    • Print the sequence by backtracking from the index with the maximum length

    • Time complexity: O(n^2)

    • Exam...

  • Answered by AI
  • Q6. Given a Sorted Array which has been rotated, write the code to find a given Integer
  • Ans. 

    Code to find a given integer in a rotated sorted array.

    • Use binary search to find the pivot point where the array is rotated.

    • Divide the array into two subarrays and perform binary search on the appropriate subarray.

    • Handle edge cases such as the target integer not being present in the array.

  • Answered by AI
  • Q7. You have a number of incoming Integers, all of which cannot be stored into memory. We need to print largest K numbers at the end of input
  • Ans. 

    Use a min-heap to keep track of the largest K numbers seen so far.

    • Create a min-heap of size K.

    • For each incoming integer, add it to the heap if it's larger than the smallest element in the heap.

    • If the heap size exceeds K, remove the smallest element.

    • At the end, the heap will contain the largest K numbers in the input.

  • Answered by AI
  • Q8. Implement LRU Cache
  • Ans. 

    LRU Cache is a data structure that stores the most recently used items and discards the least recently used items.

    • Use a doubly linked list to keep track of the order of items in the cache

    • Use a hash map to store the key-value pairs for fast access

    • When an item is accessed, move it to the front of the linked list

    • When the cache is full, remove the least recently used item from the back of the linked list and the hash map

  • Answered by AI

Interview Preparation Tips

Round: ONLINE CODING ROUND
Experience: Facebook visited our campus in July, 2012. We had an online coding round hosted on InterviewStreet. We were asked to solve just one problem. The given problem boils down to : Given a undirected graph, source and destination, write the code to find the total number of distinct nodes visited, considering all possible paths.
Tips: Those shortlisted had to fly to Delhi for a Personal Interview. There were four rounds of interview, each of 45 minutes. The questions were simple. But just solving the given problem wasn't enough.

There was much more interaction and short questions asked related to the problem

Round: Technical Interview
Experience: The above mentioned questions wer asked in the interview. For every solution I was asked to write the code on paper. The code should also include the implementation of the data structures used (I used heaps - so I was asked to implement heaps ). They are looking for someone with good problem solving skills and conceptually sound in data structures

College Name: BIT MESRA

Skills evaluated in this interview

Top Facebook Software Engineer Interview Questions and Answers

Q1. Given an “id” and a function getFriends(id) to get the list of friends of that person id, write a function that returns the list of “friends of friends” in the order of decreasing number of mutual friends, as in friend recommendations. Thes... read more
View answer (1)

Software Engineer Interview Questions asked at other Companies

Q1. Bridge and torch problem : Four people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person... read more
View answer (170)

Interview Questions & Answers

user image Anonymous

posted on 21 May 2015

Interview Questionnaire 

9 Questions

  • Q1. How do you feel on achieving this rare feat?
  • Ans. 

    I feel incredibly proud and grateful for achieving this rare feat.

    • I am overjoyed and humbled by this accomplishment.

    • It is a testament to my hard work and dedication.

    • I am grateful for the support of my team and loved ones.

    • This achievement motivates me to continue striving for excellence.

    • I feel honored to be recognized for my efforts.

  • Answered by AI
  • Q2. What other offers did you get apart from Facebook?
  • Ans. 

    I received offers from Google, Amazon, and Microsoft.

    • Received offers from top tech companies

    • Google, Amazon, and Microsoft were among the offers

    • Had multiple options to choose from

  • Answered by AI
  • Q3. Can you brief us the interview process?
  • Ans. 

    The interview process involves multiple rounds of assessments and interviews.

    • Initial screening through resume and application review

    • First round of interview with HR or hiring manager

    • Technical assessment or skills test

    • Second round of interview with team or department head

    • Final interview with senior management or executives

    • Reference and background checks

    • Job offer and negotiation

  • Answered by AI
  • Q4. Can you give us a brief account of what you felt was the toughest interview?
  • Ans. 

    The toughest interview was for a management position at a Fortune 500 company.

    • The interviewers asked challenging behavioral questions.

    • I had to provide specific examples of how I handled difficult situations.

    • The interview lasted for over two hours.

    • I had to complete a case study and present my findings to a panel of executives.

    • The competition was fierce, with several highly qualified candidates.

    • I had to demonstrate my le...

  • Answered by AI
  • Q5. What was your preparation strategy?
  • Ans. 

    I followed a structured study plan and practiced with mock tests regularly.

    • Created a study schedule with specific goals and deadlines

    • Used online resources and textbooks to supplement my learning

    • Took regular mock tests to track my progress and identify areas for improvement

    • Joined study groups to discuss difficult concepts and share study materials

  • Answered by AI
  • Q6. What kind of skills do you think helped you getting this job?
  • Ans. 

    My communication, problem-solving, and teamwork skills helped me get this job.

    • Strong communication skills helped me effectively convey my ideas and collaborate with team members.

    • Problem-solving skills allowed me to identify and address challenges in the workplace.

    • Teamwork skills helped me work effectively with colleagues and contribute to the success of the team.

    • For example, I was able to successfully lead a team proje...

  • Answered by AI
  • Q7. What resources did you consult?
  • Ans. 

    I consulted various online resources such as industry publications, academic journals, and company websites.

    • Industry publications

    • Academic journals

    • Company websites

  • Answered by AI
  • Q8. Were grades a factor in you getting selected?
  • Ans. 

    Yes, grades played a role in my selection.

    • Grades were one of the criteria for selection.

    • My academic performance was evaluated along with other factors.

    • I had to meet a certain GPA requirement to be considered.

    • For example, I had to maintain a minimum of 3.0 GPA to be eligible for the program.

  • Answered by AI
  • Q9. What’s your advice to students who are aiming for similar placement offers as yours?
  • Ans. 

    Advice for students aiming for similar placement offers

    • Focus on building practical skills through internships and projects

    • Network with professionals in your desired field

    • Stay updated with industry trends and technologies

    • Prepare well for interviews and aptitude tests

    • Maintain a good academic record

    • Be open to learning and taking feedback

    • Stay motivated and persevere through rejections

  • Answered by AI

Interview Preparation Tips

Round: HR Interview
Experience: Even if we were to search around the world, it would be a truly difficult job to find someone like Deepali. As a Computer Science Graduate of IIT Bombay, she successfully bagged a job offer from an astounding company – Facebook. Even though it’s a rare feat, she doesn’t consider it a rare one. We at TopTalent.in got a chance to interact with Deepali Adlakha from IIT Bombay about what made this possible and what others can learn from this.In case you are wondering how the resume of a Facebook recruit looks like, you can download the resume by logging in.



QUES: How do you feel on achieving this rare feat?ANS: I don’t consider it as a ‘rare’ feat, many people have got such good offers in both present and past.QUES : What other offers did you get apart from Facebook?ANS: Facebook was one among my top preferences, I got the offer from Facebook and hence I was out of the placement process. So, one does not get more than one offer.

QUES : Can you brief us the interview process?ANS: Facebook had one coding test, after which there were three rounds of interview. All the interviews tested your technical knowledge.

QUES : Can you give us a brief account of what you felt was the toughest interview?ANS : I gave interviews to Facebook, Google and Microsoft. In all interviews, the student is tested on his/her thought process, how he/she arrives at the answer rather than just the answer.

QUES : What was your preparation strategy?ANS : I practised coding, answering algorithmic design questions. I had a rough overview of all my courses, hence I didn’t spend much time revising them.

QUES : What kind of skills do you think helped you getting this job?ANS: A student should know how to code, both on paper and on the system, that is it.

QUES : What resources did you consult? Where did you practice problems from?ANS: I used Hackerrank and Codechef for practicing problems.

QUES : Were grades a factor in you getting selected?ANS: Good grades is definitely a plus point, but it is neither necessary nor sufficient.

QUES : What’s your advice to students who are aiming for similar placement offers as yours?
Tips: Relax and prepare hard.

College Name: IIT BOMBAY

Software Engineer Interview Questions & Answers

user image Deepali Adlakha

posted on 16 Mar 2015

Interview Questionnaire 

3 Questions

  • Q1. Some question on KMP
  • Q2. Simulation Question
  • Q3. Topological Sort Question

Interview Preparation Tips

Round: Test
Experience: Simple
Tips: Online Coding Questions
Duration: 60 minutes

Round: Technical Interview
Experience: Moderately difficult
Tips: Thorough understanding of all the algorithms is required.

Round: Technical Interview
Experience: Easy
Tips: Need to start a question afresh without attacking it the way you have solved questions in the past

Round: Technical Interview
Experience: Easy/moderately difficult
Tips: The idea was not that easy to click.

Skills: Coding
College Name: IIT BOMBAY
Motivation: Facebook has revolutionised social networking.

Top Facebook Software Engineer Interview Questions and Answers

Q1. Given an “id” and a function getFriends(id) to get the list of friends of that person id, write a function that returns the list of “friends of friends” in the order of decreasing number of mutual friends, as in friend recommendations. Thes... read more
View answer (1)

Software Engineer Interview Questions asked at other Companies

Q1. Bridge and torch problem : Four people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person... read more
View answer (170)
Contribute & help others!
anonymous
You can choose to be anonymous

Facebook Interview FAQs

How many rounds are there in Facebook interview?
Facebook interview process usually has 2-3 rounds. The most common rounds in the Facebook interview process are Technical, Coding Test and One-on-one Round.
How to prepare for Facebook interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Facebook. The most common topics and skills that interviewers at Facebook expect are Basic, Management, Analytical, Consulting and Product Management.
What are the top questions asked in Facebook interview?

Some of the top questions asked at the Facebook interview -

  1. Given an “id” and a function getFriends(id) to get the list of friends of t...read more
  2. Given a hashmap M which is a mapping of characters to arrays of substitute char...read more
  3. Given a list of integer numbers, a list of symbols [+,-,*,/] and a target numbe...read more
How long is the Facebook interview process?

The duration of Facebook interview process can vary, but typically it takes about 2-4 weeks to complete.

Recently Viewed

JOBS

Browse jobs

Discover jobs you love

JOBS

Browse jobs

Discover jobs you love

JOBS

Intel

No Jobs

JOBS

Cisco

No Jobs

SALARIES

LTIMindtree

JOBS

Dell

No Jobs

SALARIES

Facebook

SALARIES

IBM

DESIGNATION

Tell us how to improve this page.

Facebook Interview Process

based on 34 interviews

Interview experience

4.4
  
Good
View more

Interview Questions from Similar Companies

Amazon Interview Questions
4.1
 • 5.1k Interviews
Google Interview Questions
4.4
 • 870 Interviews
Swiggy Interview Questions
3.8
 • 436 Interviews
LinkedIn Interview Questions
4.3
 • 80 Interviews
TikTok Interview Questions
4.0
 • 23 Interviews
YouTube Interview Questions
4.5
 • 9 Interviews
Twitter Interview Questions
4.1
 • 5 Interviews
Instagram Interview Questions
4.6
 • 5 Interviews
Pinterest Interview Questions
4.8
 • 3 Interviews
Snap Inc Interview Questions
2.0
 • 2 Interviews
View all

Facebook Reviews and Ratings

based on 161 reviews

4.3/5

Rating in categories

4.2

Skill development

4.3

Work-life balance

4.5

Salary

4.0

Job security

4.4

Company culture

4.1

Promotions

4.2

Work satisfaction

Explore 161 Reviews and Ratings
Software Engineering Manager

Bangalore / Bengaluru

4-9 Yrs

Not Disclosed

Solutions Architect

Gurgaon / Gurugram

5-8 Yrs

Not Disclosed

ASIC Engineer, Design Verification

Bangalore / Bengaluru

3-7 Yrs

Not Disclosed

Explore more jobs
Software Engineer
73 salaries
unlock blur

₹47.1 L/yr - ₹102.7 L/yr

Software Developer
20 salaries
unlock blur

₹19.3 L/yr - ₹30.8 L/yr

Senior Software Engineer
19 salaries
unlock blur

₹15.4 L/yr - ₹63 L/yr

Data Scientist
17 salaries
unlock blur

₹59.9 L/yr - ₹150 L/yr

Manager
15 salaries
unlock blur

₹21 L/yr - ₹80 L/yr

Explore more salaries
Compare Facebook with

Google

4.4
Compare

Amazon

4.1
Compare

Apple

4.3
Compare

eBay

3.8
Compare
Did you find this page helpful?
Yes No
write
Share an Interview