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

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 (197)
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Company Website and was interviewed in Jun 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. What you have technical improvement in codes?
  • Ans. 

    I have implemented various technical improvements in codes to enhance performance and functionality.

    • Implemented caching mechanisms to reduce load times

    • Optimized database queries for faster retrieval of data

    • Introduced error handling techniques to improve code reliability

    • Utilized design patterns to make the codebase more maintainable

    • Refactored legacy code to adhere to best practices

  • Answered by AI
  • Q2. What is your excitment about fresh job?

Interview Preparation Tips

Interview preparation tips for other job seekers - every time doing work well

Business Development Executive Interview Questions asked at other Companies

Q1. scenario based: if I am a teacher in a government school and my child is getting +90% marks, then why should i buy byjus course
View answer (14)
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via LinkedIn and was interviewed in Jul 2024. There was 1 interview round.

Round 1 - HR 

(2 Questions)

  • Q1. Why you want to join facebook?
  • Ans. 

    I want to join Facebook because of its innovative technology, global impact, and opportunities for growth.

    • Innovative technology: Facebook is known for its cutting-edge technology and constant innovation.

    • Global impact: Working at Facebook would allow me to contribute to a platform that connects billions of people worldwide.

    • Opportunities for growth: Facebook offers a dynamic and fast-paced work environment with ample opp...

  • Answered by AI
  • Q2. Whats the best feature you like in Facebook?
  • Ans. 

    I appreciate the personalized news feed feature on Facebook.

    • Personalized news feed shows content based on user interests

    • Helps users stay updated on relevant information

    • Allows users to engage with content they are interested in

  • Answered by AI

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 (42)
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via AmbitionBox and was interviewed before Oct 2023. There were 8 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. What is your technical don't comparison anybody anything because in the and their five fingers of different sizes of different shape and different quality whatever you want you take and utilise yourself th...
  • Q2. Do you know technical of technology yes. Ham diploma in electrical and mechanical diploma in acupuncture and Varma
Round 2 - Technical 

(2 Questions)

  • Q1. From technical as different category of different types what I know I submit AC fridge washing machine in water or water purified water heater all kind of home appliances need for everyone that I do very w...
  • Q2. For teaching of yoga and meditation for spirituality for everyone have body mind and soul without be cannot live in this earth so very well for body for development flexibility immunity and flexibility tha...
Round 3 - Technical 

(2 Questions)

  • Q1. How do you know about body.. a body as three layers physical body metaphysical body and circuit body and from 3 NH systems biopotential energy boamagnetic energy bio kinetic energy and et cetera
  • Q2. Tell me the more details of body... Yes the body have from the spinal cord 33 disc and 7 chakras with invisible it is working we called non material science like soul mind and more 72000 systems parade we ...
Round 4 - Technical 

(2 Questions)

  • Q1. What do you know mind.... Ye mind like a mirror whatever we've in this character to applying the face of exposing like my mirror remind physical mind super conscious mind subconscious mind and conscious mi...
  • Q2. What could you like to teach for each everyone.... For teaching of yoga and meditation for spirituality for a body in around outer condition change in development of next generation human being...
  • Ans. 

    I would like to teach a holistic approach to yoga and meditation that focuses on spiritual growth, physical well-being, and personal development for the next generation.

    • Incorporate mindfulness practices to cultivate self-awareness and inner peace

    • Teach asanas (yoga postures) for physical strength, flexibility, and balance

    • Guide students in pranayama (breath control) techniques for energy and relaxation

    • Introduce meditatio...

  • Answered by AI
Round 5 - Technical 

(2 Questions)

  • Q1. Where are any other companies for office work in Burma Glory flight containing limited from production planning control department from PPC
  • Q2. What is your life what are doing.... Your life is very beautiful of very fastest in this world. It is attached for body and mind live your life of soul
Round 6 - Group Discussion 

Whatever we know we have to discuss for each and every one to analyse the elements has different of quality of different of uses like that as I am a sky

Round 7 - Group Discussion 

Every person has come different places of different situation different area of different educations and different relationships so discussion of group is each and everyone to develop in self

Round 8 - HR 

(2 Questions)

  • Q1. It's highly qualified for HR department even they also do some mistakes but with weird to co-ordinate for knowledge of friendly relationship
  • Q2. There is a meaning question there is answer many answer there is a no question from this world from this world as a different type of person of different knowledge if it is for thank you

Interview Preparation Tips

Interview preparation tips for other job seekers - The human has research and development for teaching of yoga meditation for spirituality for a body and mind in a outer condition changing a new development of a next generation for a SOL development is must from this world for material things and earning money that and all not a life is spiritual life as to be done to combined to utilise of basic level to higher level

Yoga and Meditation Teacher Interview Questions asked at other Companies

Q1. What type of technical of your certified refrigerator air conditioner fridge washing machine inverter RO water purified all kind of home appliances servicing repairing sales and troubleshooting work very well
View answer (1)

Facebook interview questions for popular designations

 Software Engineer

 (6)

 Software Developer

 (5)

 Senior Software Engineer

 (2)

 Software Developer Intern

 (2)

 Program Manager

 (2)

 Data Scientist

 (1)

 People Relations

 (1)

 Java Developer

 (1)

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed in May 2024. There was 1 interview round.

Round 1 - Coding Test 

Write program to sort data

Java Developer Interview Questions asked at other Companies

Q1. Sort 0 and 1 Problem Statement Given an integer array ARR of size N containing only integers 0 and 1, implement a function to sort this array. The solution should scan the array only once without using any additional arrays. Input: The firs... read more
View answer (3)

Get interview-ready with Top Facebook Interview Questions

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

DSA round was there it was good

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 (42)

Jobs at Facebook

View all
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Job Portal and was interviewed in Dec 2023. There was 1 interview round.

Round 1 - One-on-one 

(5 Questions)

  • Q1. About working skills
  • Q2. Content creator
  • Q3. Work experience
  • Q4. Where do you work from
  • Q5. Expected salary

Interview Preparation Tips

Interview preparation tips for other job seekers - successfully start your goals

Content Creator Interview Questions asked at other Companies

Q1. What is the age difference between the price of one ethereum coin and the price of the best 👌
View answer (1)
Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Company Website and was interviewed in Dec 2023. There were 2 interview rounds.

Round 1 - Case Study 

All models should be made available or their complete information should be given in fresher training.

Round 2 - Technical 

(2 Questions)

  • Q1. Social media marketing
  • Ans. Yes I have worked for a few months
  • Answered by Kajal
  • Q2. I don't have any questions, just get my work done.

Interview Preparation Tips

Topics to prepare for Facebook Software Development Engineer interview:
  • Social Media Marketing
  • Network marketing
Interview preparation tips for other job seekers - Facebook

Software Development Engineer Interview Questions asked at other Companies

Q1. Given an acyclic graph of a city where each edge represents a road in the city and each vertex represents an crossing. Write an algo to find out the minimum number of vertices at which a policemen will be kept so that all the roads are cove... read more
View answer (2)
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - HR 

(1 Question)

  • Q1. Tell me about yourself

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 (197)
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. How you came here?
  • Ans. 

    I applied for the position online and went through multiple rounds of interviews before being selected.

    • Applied online through company website

    • Participated in multiple rounds of interviews

    • Received offer after final interview

  • Answered by AI
  • Q2. What is your ambition?
  • Ans. 

    My ambition is to become a leading expert in embedded systems development, constantly pushing the boundaries of technology.

    • To continuously enhance my skills and knowledge in embedded systems design and development

    • To work on cutting-edge projects that challenge me and allow me to innovate

    • To eventually lead a team of talented engineers in creating groundbreaking embedded solutions

  • Answered by AI

Embedded Engineer Interview Questions asked at other Companies

Q1. What is the difference between sensors and actuators
View answer (1)
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. MVVM architecture
  • Q2. Draw architecture design pattern
  • Ans. 

    MVC (Model-View-Controller) architecture design pattern separates an application into three main components.

    • Model: Represents the data and business logic of the application

    • View: Represents the UI components of the application

    • Controller: Acts as an intermediary between Model and View, handling user input and updating the Model accordingly

  • Answered by AI

Android App Developer Interview Questions asked at other Companies

Q1. Activity launch modes Activity lifecycle Program to find second largest number in an array Singleton implementation
View answer (1)

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.

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
 • 5k Interviews
Google Interview Questions
4.4
 • 824 Interviews
Swiggy Interview Questions
3.8
 • 426 Interviews
LinkedIn Interview Questions
4.3
 • 65 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.4
 • 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 Engineer - AI Transport

Bangalore / Bengaluru

0-5 Yrs

Not Disclosed

Software Engineer - Host networking

Bangalore / Bengaluru

1-4 Yrs

Not Disclosed

ASIC Design Engineer

Bangalore / Bengaluru

2-6 Yrs

Not Disclosed

Explore more jobs
Software Engineer
73 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Software Developer
20 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Software Engineer
19 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Data Scientist
17 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Manager
15 salaries
unlock blur

₹0 L/yr - ₹0 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