Skip to content

Facebook

#ProblemSolution
1Merge k Sorted ListsRead solution
2Divide Two Integers—
3Next PermutationRead solution
4Multiply StringsRead solution
5Pow(x, n)Read solution
6Merge IntervalsRead solution
7Valid NumberRead solution
8Add BinaryRead solution
9Merge Sorted ArrayRead solution
10Binary Tree Maximum Path SumRead solution
11Valid Palindrome—
12Word BreakRead solution
13Read N Characters Given Read4 II - Call multiple times—
14Binary Search Tree IteratorRead solution
15Binary Tree Right Side View—
16Add and Search Word - Data structure design—
17Kth Largest Element in an ArrayRead solution
18Product of Array Except SelfRead solution
19Group Shifted Strings—
20Alien Dictionary—
21Closest Binary Search Tree Value—
22Integer to English Words—
23First Bad Version—
24Expression Add Operators—
25Serialize and Deserialize Binary TreeRead solution
26Remove Invalid Parentheses—
27Sparse Matrix Multiplication—
28Longest Substring with At Most K Distinct Characters—
29Intersection of Two Arrays—
30Random Pick Index—
31Add Strings—
32Continuous Subarray Sum—
33Random Pick with Weight—
34Diameter of Binary TreeRead solution
35Subarray Sum Equals K—
36Task Scheduler—
37Exclusive Time of Functions—
38Maximum Swap—
39Valid Palindrome II—
40Maximum Sum of 3 Non-Overlapping Subarrays—
41Accounts Merge—
42Reorganize String—
43Is Graph Bipartite?Read solution
44Similar String Groups—
45Range Sum of BST—
46Verifying an Alien Dictionary—
47K Closest Points to OriginRead solution
48Vertical Order Traversal of a Binary TreeRead solution
49Lowest Common Ancestor of Deepest Leaves—
50Minimum Remove to Make Valid Parentheses—