0% found this document useful (0 votes)
64 views2 pages

2 TopFacebookQuestions

This document lists 50 top Facebook interview questions that are drawn from LeetCode.com. The questions cover a range of algorithm and data structure topics such as merging sorted lists, binary trees, strings, arrays, and graph problems. They involve tasks like permutations, searching, sorting, tree and graph traversals, and data structure design.

Uploaded by

DIVYANSHU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views2 pages

2 TopFacebookQuestions

This document lists 50 top Facebook interview questions that are drawn from LeetCode.com. The questions cover a range of algorithm and data structure topics such as merging sorted lists, binary trees, strings, arrays, and graph problems. They involve tasks like permutations, searching, sorting, tree and graph traversals, and data structure design.

Uploaded by

DIVYANSHU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

##Top

Facebook Questions

1. Merge k Sorted Lists (https://leetcode.com/problems/merge-k-sorted-lists)


2. Divide Two Integers (https://leetcode.com/problems/divide-two-integers)
3. Next Permutation (https://leetcode.com/problems/next-permutation)
4. Multiply Strings (https://leetcode.com/problems/multiply-strings)
5. Pow(x, n) (https://leetcode.com/problems/powx-n)
6. Merge Intervals (https://leetcode.com/problems/merge-intervals)
7. Valid Number (https://leetcode.com/problems/valid-number)
8. Add Binary (https://leetcode.com/problems/add-binary)
9. Merge Sorted Array (https://leetcode.com/problems/merge-sorted-array)
10. Binary Tree Maximum Path Sum (https://leetcode.com/problems/binary-tree-maximum-
path-sum)
11. Valid Palindrome (https://leetcode.com/problems/valid-palindrome)
12. Word Break (https://leetcode.com/problems/word-break)
13. Read N Characters Given Read4 II - Call multiple times
(https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times)
14. Binary Search Tree Iterator (https://leetcode.com/problems/binary-search-tree-iterator)
15. Binary Tree Right Side View (https://leetcode.com/problems/binary-tree-right-side-view)
16. Add and Search Word - Data structure design (https://leetcode.com/problems/add-and-
search-word-data-structure-design)
17. Kth Largest Element in an Array (https://leetcode.com/problems/kth-largest-element-in-
an-array)
18. Product of Array Except Self (https://leetcode.com/problems/product-of-array-except-
self)
19. Group Shifted Strings (https://leetcode.com/problems/group-shifted-strings)
20. Alien Dictionary (https://leetcode.com/problems/alien-dictionary)
21. Closest Binary Search Tree Value (https://leetcode.com/problems/closest-binary-search-
tree-value)
22. Integer to English Words (https://leetcode.com/problems/integer-to-english-words)
23. First Bad Version (https://leetcode.com/problems/first-bad-version)
24. Expression Add Operators (https://leetcode.com/problems/expression-add-operators)
25. Serialize and Deserialize Binary Tree (https://leetcode.com/problems/serialize-and-
deserialize-binary-tree)
26. Remove Invalid Parentheses (https://leetcode.com/problems/remove-invalid-
parentheses)
27. Sparse Matrix Multiplication (https://leetcode.com/problems/sparse-matrix-
multiplication)
28. Longest Substring with At Most K Distinct Characters
(https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters)
29. Intersection of Two Arrays (https://leetcode.com/problems/intersection-of-two-arrays)
30. Random Pick Index (https://leetcode.com/problems/random-pick-index)
31. Add Strings (https://leetcode.com/problems/add-strings)
32. Continuous Subarray Sum (https://leetcode.com/problems/continuous-subarray-sum)
33. Random Pick with Weight (https://leetcode.com/problems/random-pick-with-weight)
34. Diameter of Binary Tree (https://leetcode.com/problems/diameter-of-binary-tree)
35. Subarray Sum Equals K (https://leetcode.com/problems/subarray-sum-equals-k)
36. Task Scheduler (https://leetcode.com/problems/task-scheduler)
37. Exclusive Time of Functions (https://leetcode.com/problems/exclusive-time-of-functions)
38. Maximum Swap (https://leetcode.com/problems/maximum-swap)
39. Valid Palindrome II (https://leetcode.com/problems/valid-palindrome-ii)
40. Maximum Sum of 3 Non-Overlapping Subarrays
(https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays)
41. Accounts Merge (https://leetcode.com/problems/accounts-merge)
42. Reorganize String (https://leetcode.com/problems/reorganize-string)
43. Is Graph Bipartite? (https://leetcode.com/problems/is-graph-bipartite)
44. Similar String Groups (https://leetcode.com/problems/similar-string-groups)
45. Range Sum of BST (https://leetcode.com/problems/range-sum-of-bst)
46. Verifying an Alien Dictionary (https://leetcode.com/problems/verifying-an-alien-
dictionary)
47. K Closest Points to Origin (https://leetcode.com/problems/k-closest-points-to-origin)
48. Vertical Order Traversal of a Binary Tree (https://leetcode.com/problems/vertical-order-
traversal-of-a-binary-tree)
49. Lowest Common Ancestor of Deepest Leaves (https://leetcode.com/problems/lowest-
common-ancestor-of-deepest-leaves)
50. Minimum Remove to Make Valid Parentheses (https://leetcode.com/problems/minimum-
remove-to-make-valid-parentheses)

You might also like