Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding
Ninjas X Naukri.com

Facebook interview experience Real time questions & tips from candidates to crack your interview

Facebook

2 rounds | 4 Coding
problems

Preparation

Duration: 3 months

Topics: Linked List, Binary Search Tree ,Queue, Array ,DP ,Graph ,Recursion

Tip

Tip 1 : Practice Atleast 500 Questions

Tip 2 : Do atleast 1 good projects

Tip 3 : You should be able to explain your project

Application process

Where: Campus

Eligibility: 8 CGPA above

Resume tip

Tip 1 : Have some projects on resume.

Tip 2 : Do not put false things on resume.

01

Round

Easy

Online Coding Interview

Duration75 minutes

Interview date8 Aug 2014

Coding problem2

Timing it is around 11 am and Environment is good .

```
All trees are in a circle.
```

```
Input: N = 7 M = 3
ARR[] = { 2, 1, 3, 5, 0, 1, 4 }
Output: 9
Explanation:
She can start from tree 1 and move to tree 2 and then to tree 3.
Hence, total number of gathered fruits = 1 + 3 + 5 = 9.
```

```
Base 10 | Base 58
0 | 1
1 | 2
10 | A
20 | L
30 | W
53 | u
```

02

Round

Medium

Telephonic

Duration45 mintues

Interview date31 Aug 2014

Coding problem2

Environment was very friendly but questions asked are hard

```
1. Pair (x,y) and Pair(y,x) are considered as the same pair.
2. If there exists no such pair with sum equals to 'TARGET', then return -1.
```

```
Let ‘ARR’ = [1 2 3] and ‘TARGET’ = 4. Then, there exists only one pair in ‘ARR’ with a sum of 4 which is (1, 3). (1, 3) and (3, 1) are counted as only one pair.
```

```
1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
```

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

How do you write a single-line comment in C++?

Choose another skill to practice

Start a Discussion

Similar interview experiences

SWE Intern

2 rounds | 5 problems

Interviewed by Facebook

1047 views

0 comments

0 upvotes

SDE - Intern

2 rounds | 3 problems

Interviewed by Facebook

1325 views

0 comments

0 upvotes

SDE - 1

5 rounds | 10 problems

Interviewed by Facebook

667 views

0 comments

0 upvotes

Business Technology Analyst

1 rounds | 2 problems

Interviewed by Facebook

0 views

0 comments

0 upvotes

Companies with similar interview experiences

SDE - Intern

3 rounds | 6 problems

Interviewed by Amazon

13360 views

4 comments

0 upvotes

SDE - Intern

4 rounds | 7 problems

Interviewed by Microsoft

12384 views

1 comments

0 upvotes

SDE - Intern

2 rounds | 4 problems

Interviewed by Amazon

8919 views

2 comments

0 upvotes