Companies matching "Facebook"

Facebook Interviews

www.facebook.com  /  HQ: Menlo Park, CA

740 Interviews

3.3

Average






Threadsy Interviews

www.threadsy.com  / 

0 Interviews

Not Yet Rated






Atlas Interviews

www.atlassolutions.com  /  HQ: New Orleans

0 Interviews

Not Yet Rated






Facebook Interview Questions

Sort: Popular Date
Sort: Popular Date
1 of 1 found helpful

“You have two lightbulbs and a 100-storey building. You want to find the floor at which the bulbs will break when dropped. Find the floor using the least number of drops.”

1 of 1 found helpful

“You're about to get on a plane to Seattle. You want to know if you should bring an umbrella. You call 3 random friends of yours who live there and ask each independently if it's raining. Each of your…”

“Implement a function rotateArray(vector<int> arr, int r) which rotates the array by r places. Eg 1 2 3 4 5 on being rotated by 2 gives 4 5 1 2 3.”

“Given a list of n objects, write a function that outputs the minimum set of numbers that sum to at least K. FOLLOW UP: can you beat O(n ln n)?”

“You are trying to rob houses on a street. Each house has some +ve amount of cash. Your goal is to rob houses such that you maximize the total robbed amount. The constraint is once you rob a house you…”

“Implement a function string balanceParanthesis(string s); which given a string s consisting of some parenthesis returns a string s1 in which parenthesis are balanced and differences between s and s…”

“Function to compute the number of ways to climb a flight of n steps. Taking 1, 2, or 3 steps at a time. Do it in Linear time and constant space.

n = 3.
1 1 1
1 2
2 1
3
Ans = 4”

1 of 1 found helpful

“Given an array of integers, now we want to erase all 0's (can be other value), and we want the result array condensed, meaning no empty cell in the array.”

“Find the minimum depth of binary search tree”

“Write some pseudo code to raise a number to a power.”

110 of 604 Interview Questions