Upload Button Icon Add office photos

Filter interviews by

Facebook Software Developer Intern Interview Questions, Process, and Tips

Updated 16 Sep 2021

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 define ...read more
  • Q2. 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 ...read more
  • Q3. All Prime Numbers Less Than or Equal to N Given a positive integer N , your task is to return all the prime numbers less than or equal to N . Note: 1) A prime number is ...read more
View all 6 questions

Facebook Software Developer Intern Interview Experiences

2 interviews found

I was interviewed before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 30 minutes
Round difficulty - Easy

2 easy problems for coding.

  • Q1. 

    All Prime Numbers Less Than or Equal to N

    Given a positive integer N, your task is to return all the prime numbers less than or equal to N.

    Note:

    1) A prime number is a number that has only two factors:...
  • Ans. 

    Use sieve to find prime numbers.

  • Answered Anonymously
  • Q2. 

    Running Absolute Difference in Arrays

    Given an array ARR consisting of 'N' non-negative integers, compute the running absolute difference of elements at even and odd index positions, respectively.

    Input:

    ...
  • Ans. 

    Iterate over array and calculate answers.

  • Answered Anonymously
Round 2 - Video Call 

Round duration - 30 minutes
Round difficulty - Hard

Face to face interview, design and coding involved.

Interview Preparation Tips

Professional and academic backgroundI completed Software Engineering from Delhi Technological University. I applied for the job as SDE - Intern in LondonEligibility criteriaCGPA above 7Facebook interview preparation:Topics to prepare for the interview - DBMS, Data Structures and Algorithms , OOP, Maths puzzles, Aptitude , CN, OSTime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Never leave any topic from any chapter / Subject
Tip 2 : Learn to explain your thoughts well
Tip 3 : Learn from previous experiences / interviews / problems asked.
Tip 4 : Atleast 4 projects in Resume

Application resume tips for other job seekers

Tip 1 : Atleast 4 projects on Resume
Tip 2 : Do not write false things. You always get caught. Be genuine.

Final outcome of the interviewRejected

Skills evaluated in this interview

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...

  • Ans. Brute Force

    We will iterate through the trees with the help of a nested loop. Where we will further loop for the given number of seconds ‘m’, checking for every sum that we obtain is the maximum sum or not and update the sum on each iteration if it is maximum.

     

    The algorithm will be-

    1. We will run a loop from the starting tree of the given list.
    2. Now from every tree, we will run a loop and traverse the remaining trees an...
  • Answered Anonymously
  • 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...

  • Ans.  base 58

    You can represent the integers as powers of 58 and then convert them using the above mapping.

     

    Eg: 4364 =  1 * (58 ^ 2)+ 17 * (58 ^ 1) + 14 * (58 ^ 0)

    1 in base 10 = 2 in base 58, 17 in base 10 = 2 in base J, 14 in base 10 = 2 in base F

    Therefore the answer will be: 2JF

     

    Algorithm:

    • If the number itself is 0, the answer is 1, else we do the following until the number reaches 0.
      • First, we Initiate an emp...
  • Answered Anonymously
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...

  • Ans. Brute Force

    First, we declare a variable 'COUNTPAIR’ in which we store all pairs whose sum is equal to 'TARGET’. Then, we traverse the array ‘ARR’ and assume every element as the first element of the pair. Then we again traverse the remaining array and consider every element as a second element of the pair, and check whether the sum of the two elements is equal to 'TARGET' or not. If it is equal to 'TARGET',’ then we in...

  • Answered Anonymously
  • 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...

  • Ans. Brute Force
    • The most trivial approach would be to find all triplets of the array and count all such triplets whose ‘SUM’ = 'K'.
    • We can find the answer using three nested loops for three different indexes and check if the values at those indexes sum up to 'K'.
    • Create a set  to keep the track of triplets we have visited. Run first loop from i = 0 to i = ‘N’ - 3, second loop from j = i + 1 to j = ‘N’ - 2 and third loop ...
  • Answered Anonymously

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

Software Developer Intern Interview Questions Asked at Other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in CommVault
Q2. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
asked in Amazon
Q3. Fish Eater Problem Statement In a river where water flows from le ... read more
Q4. Find K Closest Elements Given a sorted array 'A' of length 'N', a ... read more
asked in Groww
Q5. Minimum and Maximum Candy Cost Problem Ram is in Ninjaland, visit ... read more

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in Sep 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Easy Questions- Can be done with decent practice

Round 2 - Technical 

(2 Questions)

  • Q1. Array question - basic knowledge sufficient
  • Q2. Maths questions + stack implementation
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Job Fair and was interviewed in Jul 2024. There were 2 interview rounds.

Round 1 - Coding Test 

More focus on dp,graphs.

Round 2 - Technical 

(2 Questions)

  • Q1. Focus on backend concepts,routing.
  • Q2. Question on flood fill algo,backtracking.
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Mar 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Graphs ,arrays , Hashmaps and Heaps

Round 2 - One-on-one 

(2 Questions)

  • Q1. Graphs related dfs
  • Q2. Changes on graph structure
  • Ans. 

    Changes on graph structure involve adding, removing, or modifying nodes and edges.

    • Adding a new node to the graph

    • Removing an existing node from the graph

    • Modifying the weight of an edge in the graph

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via campus placement at Institute of Technical Education and Research, Bhuvaneshwar and was interviewed in Jun 2023. There were 4 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

Average difficulty basic questions

Round 3 - Technical 

(1 Question)

  • Q1. 2 codes 1 subquery OOPS DBMS Linux data structures
Round 4 - Technical 

(1 Question)

  • Q1. Based on understanding of OOPS and DBMS .In depth knowledge required.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via campus placement at Malviya National Institute of Technology (NIT), Jaipur and was interviewed before Sep 2022. There were 3 interview rounds.

Round 1 - Coding Test 

This round had first questions about behavior, team work and hr type mcq questions.
Then there were 10 computer science mcqs. Then two coding questions.

Round 2 - Technical 

(1 Question)

  • Q1. This was of 1 hour. He asked about 2-3 dsa questions and some hr questions in last part.
Round 3 - Technical 

(1 Question)

  • Q1. This was also a similar round like round 2. In this he asked 2 medium dsa questions and some hr questions at last.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
-
Result
Not Selected
Round 1 - Coding Test 

Coding test had 2 medium level coding questions

Round 2 - One-on-one 

(2 Questions)

  • Q1. The first question was of sliding window plus DP
  • Q2. The second was of trees

I was interviewed in Jan 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 65 minutes
Round difficulty - Hard

Timing (6pm - 8pm)
Environment was user friendly
As usual the online round had three coding questions and 20 MCQs. This was a pretty easy round and it’s duration was 65 minutes. The round consisted of questions from various domains like Algorithm, Data Structure, Operating System and Aptitude.

  • Q1. 

    Determine Count of Good Triplets

    You are given two arrays ARR1 and ARR2, containing N and M elements respectively. There are two types of 'good triplets' that need to be identified in these arrays.

    Type ...

  • Ans. Brute Force

    A simple method is to generate all possible triplets and check for each triplet if the triplet follows the given conditions.

    Our approach will be to traverse through ARR1 and in each iteration, we will consider all pairs from ARR2 and check if the element from ARR1 and the pair from ARR2 follow the given conditions of type 1 triplet.

    To obtain type 2 triplets, we will traverse through ARR2 and we will consider...

  • Answered Anonymously
  • Q2. 

    Split the String Problem Statement

    You are given a string str consisting of N lowercase alphabets. Your task is to determine if it is possible to divide the string into three non-empty substrings such tha...

  • Ans. Brute-force

    The idea here is to check all possible ways to divide a string into 3 substrings and check if there is a string that is a substring of the other two parts. We can divide a string into 3 non-empty substrings:

    • A non-empty prefix
    • A non-empty suffix
    • And a non-empty middle string that is between the ending point of the 1st string and starting point of the 2nd string.

     

    Algorithm:

     

    • Run a loop from i = 1 to ‘N’...
  • Answered Anonymously
Round 2 - Video Call 

(2 Questions)

Round duration - 40 minutes
Round difficulty - Medium

  • Q1. 

    Check if Two Trees are Mirror

    Given two arbitrary binary trees, your task is to determine whether these two trees are mirrors of each other.

    Explanation:

    Two trees are considered mirror of each other if...

  • Ans. Recursive Approach

    Traverse the tree T in preorder fashion and treat every node of the given tree T as the root, treat it as a subtree and compare the corresponding subtree with the given subtree S for equality. For checking the equality, we can compare all the nodes of the two subtrees.

     

    For two trees ‘S’ and ‘T’ to be mirror images, the following three conditions must be true:

    1. Their root node’s data must be the sam...
  • Answered Anonymously
  • Q2. 

    Snake and Ladder Problem Statement

    Given a 'Snake and Ladder' board with N rows and N columns, where positions are numbered from 1 to (N*N) starting from the bottom left, alternating direction each row, f...

  • Ans. BFS

    We will use Breadth-First Search to find the shortest path from cellNumber 1 to cellNumber N*N.

    1. We will maintain a queue of cellNumber where the front of the queue will always contain a cell which can be reached by minimum dice throw from starting cell (cellNumber = 1).
    2. Create a minDiceThrow array of size N*N initialise it with the maximum value (INT_MAX)
    3. Start with pushing cellNumber 1 and updating minDiceThrow[1] = 0...
  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Malaviya National Institute of Technology Jaipur. I applied for the job as SDE - Intern in HyderabadEligibility criteriaAll students were allowedLinkedIn interview preparation:Topics to prepare for the interview - Arrays, recursion, DP, trees and graphs, stack, queueTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Must do questions from GFG.
Tip 2 : SDE sheet of striver can be helpful.

Application resume tips for other job seekers

Tip 1 : Do at least 3 major web dev project
Tip 2 : should be precise and descriptive
Tip 3 : also add your past experiences in the resume

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed in Dec 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Easy

This round had 2 coding problems and we had to code it on hackerearth only.
The use of Outside IDE was forbidden.
The timing of test was 12:00 PM to 1:30 PM.

  • Q1. 

    Meeting Rescheduling Challenge

    Ninja is tasked with organizing a meeting in an office that starts at time ‘0’ and ends at time ‘LAST’. There are ‘N’ presentations scheduled with given start and end times....

  • Ans. Brute Force Approach

    Algorithm:

     

    • The idea here is to find the maximum sum subarray of size ‘K+1’, where the array will contain empty slots.
    • First, we create an array named emptySlots[], to store the time duration in which there is no presentation.
    • Run a loop to traverse all presentations, and in each iteration, add START[i] - END[i-1] (which gives a free slot between the ith presentation) into the array emptySlots[].
    • N...
  • Answered Anonymously
  • Q2. 

    Total Unique Paths Problem Statement

    You are located at point ‘A’, the top-left corner of an M x N matrix, and your target is point ‘B’, the bottom-right corner of the same matrix. Your task is to calcula...

  • Ans. Recursive Approach

    We can easily count the total number of paths by making a recursive algorithm.

     

    The steps are as follows:

     

    1. We are given a function UNIQUEPATHS(), which takes two integers ‘M’ and ‘N’ as parameters and returns a single integer. This will be the definition of our recursive function too.
    2. As our base condition, we will check if our number of rows (‘M’) or a number of columns (‘N’) is equal to 1. If...
  • Answered Anonymously
Round 2 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

This round was coding round with discussion .
The interviewer tried to trick the questions and wanted to test how we respond if something is asked out of preparation.
The code we ran on Google Docs was checked on Online IDE if it ran for sample inputs.
Timing : 12:00 PM to 1:30 PM

  • Q1. 

    Minimum Operations to Connect a Graph

    You are given a graph with 'N' vertices labeled from 1 to 'N' and 'M' edges. In one operation, you can shift an edge from being between two directly connected vertice...

  • Ans. Breadth First Search.

    For a graph with ‘N’ vertices to be connected, there must be at least ‘N’ - 1 edges in the graph. If a graph has less than ‘N' - 1 edges it is impossible to make the graph connected. Otherwise, it is always possible to make graph connected. As we need to find the minimum number of operations to make the graph connected we will think greedily. We will find the total number of connected components in...

  • Answered Anonymously
  • Q2. 

    Snake and Ladder Problem Statement

    Given a 'Snake and Ladder' board with N rows and N columns, where positions are numbered from 1 to (N*N) starting from the bottom left, alternating direction each row, f...

  • Ans. BFS

    We will use Breadth-First Search to find the shortest path from cellNumber 1 to cellNumber N*N.

    1. We will maintain a queue of cellNumber where the front of the queue will always contain a cell which can be reached by minimum dice throw from starting cell (cellNumber = 1).
    2. Create a minDiceThrow array of size N*N initialise it with the maximum value (INT_MAX)
    3. Start with pushing cellNumber 1 and updating minDiceThrow[1] = 0...
  • Answered Anonymously
Round 3 - Coding Test 

(1 Question)

Round duration - 75 minutes
Round difficulty - Hard

This was a problem solving round and lasted for 75 minutes. The interviewer gave me a very complicated question.
The round was held on Google Meet and I was supposed to tell him the approach and write code on shared Google Docs.

  • Q1. 

    XOR Query Problem Statement

    Assume you initially have an empty array called ARR. You are required to return the updated array after executing Q number of queries on this array.

    There are two types of que...

  • Ans. Brute Force

    Approach:

    • It is a brute force approach where we will create an empty array initially of size 10^5 + 1.
    • Now, whenever we have a query of type 1 we will insert the value of VAL in the array. And when the query of type 2 comes then we will iterate through our array and perform an XOR operation with VAL to every value present in our array.
    • Finally, we will return our array.

     

    Algorithm:

    • Create an array ans.
    • Now it...
  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BangaloreEligibility criteriaAbove 6 CGPAUber interview preparation:Topics to prepare for the interview - Dynamic Programming, OOPs, Computer Network, Operating System, Game TheoryTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : prepare all Topics from Coding Ninjas of Course Competitive Programming. Also I practiced atleast one question everyday from sites like Leetcode,Interviewbit and also took part in Codeforces Contest.
Tip 2 : Though Data Structure is the base for any tech interview, one must know some other subjects as well like Operating System, Networking, and Database Management System for which I took help from Coding Ninja’s notes and from GeeksforGeeks.

Application resume tips for other job seekers

Tip 1 : Keep your resume up to date and mention 2-3 good level projects which will give a good impression to the interviewer .
Tip 2 : Don't put false things on the resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

Tell us how to improve this page.

Facebook Software Developer Intern Reviews and Ratings

based on 1 review

5.0/5

Rating in categories

5.0

Skill development

4.0

Work-life balance

5.0

Salary

4.0

Job security

5.0

Company culture

4.0

Promotions

5.0

Work satisfaction

Explore 1 Review and Rating
Software Engineer
72 salaries
unlock blur

₹45.7 L/yr - ₹103.1 L/yr

Software Developer
19 salaries
unlock blur

₹32.6 L/yr - ₹59.5 L/yr

Client Solution Manager
16 salaries
unlock blur

₹22 L/yr - ₹74.8 L/yr

Manager
15 salaries
unlock blur

₹21 L/yr - ₹80 L/yr

Data Scientist
14 salaries
unlock blur

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