Facebook · DSA
Every coding problem Facebook has asked, most frequent first. Tick them off as you go; your ticks stay in this browser.
- mostly asked
- 364
- hard
- 44
- done
- 0
364 of 364 problems
- 1Minimum Remove to Make Valid Parentheses (opens LeetCode in a new tab)String, Stack · at 8 companiesMediumFrequency 100
- 2Valid Word Abbreviation (opens LeetCode in a new tab)Two Pointers, String · at 3 companiesEasyFrequency 97
- 3Valid Palindrome II (opens LeetCode in a new tab)Two Pointers, String, Greedy · at 9 companiesEasyFrequency 96
- 4Kth Largest Element in an Array (opens LeetCode in a new tab)Array, Divide and Conquer, Sorting · at 21 companiesMediumFrequency 94
- 5Binary Tree Vertical Order Traversal (opens LeetCode in a new tab)Hash Table, Tree, Depth-First Search · at 7 companiesMediumFrequency 94
- 6Two Sum (opens LeetCode in a new tab)Array, Hash Table · at 38 companiesEasyFrequency 93
- 7Basic Calculator II (opens LeetCode in a new tab)Math, String, Stack · at 15 companiesMediumFrequency 90
- 8Subarray Sum Equals K (opens LeetCode in a new tab)Array, Hash Table, Prefix Sum · at 25 companiesMediumFrequency 88
- 9Lowest Common Ancestor of a Binary Tree III (opens LeetCode in a new tab)Hash Table, Two Pointers, Tree · at 8 companiesMediumFrequency 88
- 10Diameter of Binary Tree (opens LeetCode in a new tab)Tree, Depth-First Search, Binary Tree · at 12 companiesEasyFrequency 88
- 11Random Pick with Weight (opens LeetCode in a new tab)Array, Math, Binary Search · at 11 companiesMediumFrequency 87
- 12Merge Sorted Array (opens LeetCode in a new tab)Array, Two Pointers, Sorting · at 19 companiesEasyFrequency 87
- 13Nested List Weight Sum (opens LeetCode in a new tab)Depth-First Search, Breadth-First Search · at 6 companiesMediumFrequency 87
- 14Lowest Common Ancestor of a Binary Tree (opens LeetCode in a new tab)Tree, Depth-First Search, Binary Tree · at 14 companiesMediumFrequency 87
- 15Binary Tree Right Side View (opens LeetCode in a new tab)Tree, Depth-First Search, Breadth-First Search · at 11 companiesMediumFrequency 86
- 16Find Peak Element (opens LeetCode in a new tab)Array, Binary Search · at 19 companiesMediumFrequency 86
- 17Merge Intervals (opens LeetCode in a new tab)Array, Sorting, Quicksort · at 34 companiesMediumFrequency 85
- 18Pow(x, n) (opens LeetCode in a new tab)Math, Recursion · at 14 companiesMediumFrequency 84
- 19Best Time to Buy and Sell Stock (opens LeetCode in a new tab)Array, Dynamic Programming · at 29 companiesEasyFrequency 84
- 20Valid Palindrome (opens LeetCode in a new tab)Two Pointers, String · at 22 companiesEasyFrequency 84
- 21Simplify Path (opens LeetCode in a new tab)String, Stack · at 9 companiesMediumFrequency 84
- 22Buildings With an Ocean View (opens LeetCode in a new tab)Array, Stack, Monotonic Stack · at 3 companiesMediumFrequency 83
- 23Top K Frequent Elements (opens LeetCode in a new tab)Array, Hash Table, Divide and Conquer · at 22 companiesMediumFrequency 82
- 24Shortest Path in Binary Matrix (opens LeetCode in a new tab)Array, Breadth-First Search, Matrix · at 9 companiesMediumFrequency 80
- 25Next Permutation (opens LeetCode in a new tab)Array, Two Pointers · at 19 companiesMediumFrequency 80
- Showing 25 of 364
Mostly asked is the top quarter of the company’s list by how often a problem is reported. We don’t refresh this data often enough to show the last 30 days or 6 months. Frequency is relative within one company: 100 is its most asked problem. At N companies counts the companies in DSA Atlas that ask the problem; use Also asked at to cut a long list down to the problems many companies share. Your ticks are saved in this browser only.
Credits
These lists are the work of two open GitHub projects. Thank you to their authors.
- liquidslr/leetcode-company-wise-problems: the problem lists for each company (titles, difficulty, frequency, topics, LeetCode links).
- nishant-Tiwari24/company-wise-dsa: the focus tip and important topics shown on each company card.
Problem text stays on LeetCode; we link to it. Frequencies are relative within a company.
Last synced