0% found this document useful (0 votes)
9 views

Facebook Leetcode Questions 1659451503

Uploaded by

nasirkamalvns111
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Facebook Leetcode Questions 1659451503

Uploaded by

nasirkamalvns111
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

4/24/2019 Facebook - LeetCode

 Facebook

Notice
We've improved our algorithm that calculates company tags and their frequencies to be more accurate and
current.

This page updates weekly on Saturday.

You can filter the results by different time periods.

You have solved 63 / 345 problems.

Show problem tags Select time period: 1 year

# Title Acceptance Difficulty Frequency 

 301 Remove Invalid Parentheses (/problems/remove- 38.9% Hard


invalid-parentheses)

 273 Integer to English Words (/problems/integer-to- 24.2% Hard


english-words)

 253 Meeting Rooms II (/problems/meeting-rooms-ii)  42.7% Medium

67 Add Binary (/problems/add-binary) 38.7% Easy

 621 Task Scheduler (/problems/task-scheduler) 45.2% Medium

 297 Serialize and Deserialize Binary Tree 40.3% Hard


(/problems/serialize-and-deserialize-binary-tree)

 426 Convert Binary Search Tree to Sorted Doubly Linked 51.3% Medium
List (/problems/convert-binary-search-tree-to-sorted-
doubly-linked-list) 

 560 Subarray Sum Equals K (/problems/subarray-sum- 42.1% Medium


equals-k)

158 Read N Characters Given Read4 II - Call multiple 25.9% Hard


times (/problems/read-n-characters-given-read4-ii-
call-multiple-times) 

680 Valid Palindrome II (/problems/valid-palindrome-ii) 34.0% Easy

 15 3Sum (/problems/3sum) 23 8% M di
https://leetcode.com/company/facebook/ 1/19
4/24/2019 Facebook - LeetCode
 15 3Sum (/problems/3sum) 23.8% Medium
# Title Acceptance Difficulty Frequency 
 76 Minimum Window Substring (/problems/minimum- 30.5% Hard
window-substring)

 238 Product of Array Except Self (/problems/product-of- 54.6% Medium


array-except-self)

 31 Next Permutation (/problems/next-permutation) 30.3% Medium

689 Maximum Sum of 3 Non-Overlapping Subarrays 44.0% Hard


(/problems/maximum-sum-of-3-non-overlapping-
subarrays)

282 Expression Add Operators (/problems/expression- 32.6% Hard


add-operators)

173 Binary Search Tree Iterator (/problems/binary-search- 48.1% Medium


tree-iterator)

 124 Binary Tree Maximum Path Sum (/problems/binary- 29.8% Hard


tree-maximum-path-sum)

278 First Bad Version (/problems/first-bad-version) 29.6% Easy

269 Alien Dictionary (/problems/alien-dictionary)  30.7% Hard

438 Find All Anagrams in a String (/problems/find-all- 37.0% Easy


anagrams-in-a-string)

314 Binary Tree Vertical Order Traversal 40.7% Medium


(/problems/binary-tree-vertical-order-traversal) 

523 Continuous Subarray Sum (/problems/continuous- 24.2% Medium


subarray-sum)

785 Is Graph Bipartite? (/problems/is-graph-bipartite) 42.9% Medium

211 Add and Search Word - Data structure design 29.9% Medium
(/problems/add-and-search-word-data-structure-
design)

 121 Best Time to Buy and Sell Stock (/problems/best- 46.9% Easy
time-to-buy-and-sell-stock)

953 Verifying an Alien Dictionary (/problems/verifying-an- 55.8% Easy


alien-dictionary)

 215 Kth Largest Element in an Array (/problems/kth- 47.2% Medium


largest element in an array)
https://leetcode.com/company/facebook/ 2/19
4/24/2019 Facebook - LeetCode
largest-element-in-an-array)
# Title Acceptance Difficulty Frequency 
 10 Regular Expression Matching (/problems/regular- 25.2% Hard
expression-matching)

91 Decode Ways (/problems/decode-ways) 22.2% Medium

 56 Merge Intervals (/problems/merge-intervals) 35.4% Medium

125 Valid Palindrome (/problems/valid-palindrome) 30.8% Easy

543 Diameter of Binary Tree (/problems/diameter-of- 46.5% Easy


binary-tree)

304 Range Sum Query 2D - Immutable (/problems/range- 31.9% Medium


sum-query-2d-immutable)

143 Reorder List (/problems/reorder-list) 30.4% Medium

29 Divide Two Integers (/problems/divide-two-integers) 16.2% Medium

636 Exclusive Time of Functions (/problems/exclusive- 48.4% Medium


time-of-functions)

721 Accounts Merge (/problems/accounts-merge) 39.8% Medium

 317 Shortest Distance from All Buildings 37.4% Hard


(/problems/shortest-distance-from-all-buildings) 

 98 Validate Binary Search Tree (/problems/validate- 25.6% Medium


binary-search-tree)

157 Read N Characters Given Read4 (/problems/read-n- 29.1% Easy


characters-given-read4) 

 1 Two Sum (/problems/two-sum) 43.5% Easy

65 Valid Number (/problems/valid-number) 13.9% Hard

349 Intersection of Two Arrays (/problems/intersection-of- 54.1% Easy


two-arrays)

 146 LRU Cache (/problems/lru-cache) 25.0% Hard

133 Clone Graph (/problems/clone-graph) 26.1% Medium

 236 Lowest Common Ancestor of a Binary Tree 36.6% Medium


(/problems/lowest-common-ancestor-of-a-binary-tree)

 23 Merge k Sorted Lists (/problems/merge-k-sorted-lists) 34.0% Hard

https://leetcode.com/company/facebook/ 3/19
4/24/2019 Facebook - LeetCode

199
# Binary
Title Tree Right Side View (/problems/binary-tree- 47.5%
Acceptance Medium
Difficulty Frequency 
right-side-view)

 88 Merge Sorted Array (/problems/merge-sorted-array) 35.4% Easy

973 K Closest Points to Origin (/problems/k-closest- 63.2% Medium


points-to-origin)

277 Find the Celebrity (/problems/find-the-celebrity)  36.4% Medium

257 Binary Tree Paths (/problems/binary-tree-paths) 45.6% Easy

286 Walls and Gates (/problems/walls-and-gates)  49.1% Medium

283 Move Zeroes (/problems/move-zeroes) 54.1% Easy

350 Intersection of Two Arrays II (/problems/intersection- 47.4% Easy


of-two-arrays-ii)

 161 One Edit Distance (/problems/one-edit-distance)  31.6% Medium

 200 Number of Islands (/problems/number-of-islands) 41.1% Medium

162 Find Peak Element (/problems/find-peak-element) 41.1% Medium

340 Longest Substring with At Most K Distinct Characters 39.4% Hard


(/problems/longest-substring-with-at-most-k-distinct-
characters) 

 42 Trapping Rain Water (/problems/trapping-rain-water) 42.7% Hard

 33 Search in Rotated Sorted Array (/problems/search-in- 32.8% Medium


rotated-sorted-array)

247 Strobogrammatic Number II 44.0% Medium


(/problems/strobogrammatic-number-ii) 

50 Pow(x, n) (/problems/powx-n) 27.8% Medium

825 Friends Of Appropriate Ages (/problems/friends-of- 35.9% Medium


appropriate-ages)

34 Find First and Last Position of Element in Sorted 33.4% Medium


Array (/problems/find-first-and-last-position-of-
element-in-sorted-array)

 20 Valid Parentheses (/problems/valid-parentheses) 36.3% Easy

43 Multiply Strings (/problems/multiply-strings) 30.4% Medium

336 Palindrome Pairs (/problems/palindrome-pairs) 30 7% Hard


https://leetcode.com/company/facebook/ 4/19
4/24/2019 Facebook - LeetCode
336 Palindrome Pairs (/problems/palindrome pairs) 30.7% Hard
# Title Acceptance Difficulty Frequency 
 32 Longest Valid Parentheses (/problems/longest-valid- 25.3% Hard
parentheses)

468 Validate IP Address (/problems/validate-ip-address) 21.2% Medium

708 Insert into a Cyclic Sorted List (/problems/insert-into- 28.7% Medium


a-cyclic-sorted-list) 

 139 Word Break (/problems/word-break) 35.0% Medium

674 Longest Continuous Increasing Subsequence 44.1% Easy


(/problems/longest-continuous-increasing-
subsequence)

567 Permutation in String (/problems/permutation-in- 38.1% Medium


string)

347 Top K Frequent Elements (/problems/top-k-frequent- 54.4% Medium


elements)

432 All O`one Data Structure (/problems/all-oone-data- 29.2% Hard


structure)

246 Strobogrammatic Number 42.1% Easy


(/problems/strobogrammatic-number) 

227 Basic Calculator II (/problems/basic-calculator-ii) 33.1% Medium

896 Monotonic Array (/problems/monotonic-array) 55.0% Easy

348 Design Tic-Tac-Toe (/problems/design-tic-tac-toe)  49.3% Medium

251 Flatten 2D Vector (/problems/flatten-2d-vector)  43.6% Medium

325 Maximum Size Subarray Sum Equals k 44.6% Medium


(/problems/maximum-size-subarray-sum-equals-k)

463 Island Perimeter (/problems/island-perimeter) 60.7% Easy

528 Random Pick with Weight (/problems/random-pick- 42.7% Medium


with-weight)

 17 Letter Combinations of a Phone Number 41.2% Medium


(/problems/letter-combinations-of-a-phone-number)

415 Add Strings (/problems/add-strings) 43.5% Easy

https://leetcode.com/company/facebook/ 5/19
4/24/2019 Facebook - LeetCode

#
408 Valid Word Abbreviation (/problems/valid-word-
Title Acceptance
29.4% Difficulty
Easy Frequency 
abbreviation) 

 114 Flatten Binary Tree to Linked List (/problems/flatten- 41.9% Medium


binary-tree-to-linked-list)

311 Sparse Matrix Multiplication (/problems/sparse-matrix- 56.0% Medium


multiplication) 

536 Construct Binary Tree from String 44.5% Medium


(/problems/construct-binary-tree-from-string) 

824 Goat Latin (/problems/goat-latin) 57.3% Easy

403 Frog Jump (/problems/frog-jump) 35.8% Hard

622 Design Circular Queue (/problems/design-circular- 38.7% Medium


queue)

398 Random Pick Index (/problems/random-pick-index) 49.6% Medium

 632 Smallest Range (/problems/smallest-range) 46.6% Hard

597 Friend Requests I: Overall Acceptance Rate 39.5% Easy


(/problems/friend-requests-i-overall-acceptance-rate)

300 Longest Increasing Subsequence (/problems/longest- 40.6% Medium


increasing-subsequence)

791 Custom Sort String (/problems/custom-sort-string) 61.5% Medium

986 Interval List Intersections (/problems/interval-list- 62.5% Medium


intersections)

 270 Closest Binary Search Tree Value (/problems/closest- 43.6% Easy


binary-search-tree-value) 

477 Total Hamming Distance (/problems/total-hamming- 48.8% Medium


distance)

51 N-Queens (/problems/n-queens) 38.7% Hard

 138 Copy List with Random Pointer (/problems/copy-list- 26.6% Medium


with-random-pointer)

678 Valid Parenthesis String (/problems/valid-parenthesis- 32.5% Medium


string)
https://leetcode.com/company/facebook/ 6/19
4/24/2019 Facebook - LeetCode

#
25 Reverse Nodes in k-Group (/problems/reverse-nodes-
Title Acceptance
36.0% Difficulty
Hard Frequency 
in-k-group)

393 UTF-8 Validation (/problems/utf-8-validation) 35.7% Medium

 3 Longest Substring Without Repeating Characters 28.2% Medium


(/problems/longest-substring-without-repeating-
characters)

387 First Unique Character in a String (/problems/first- 49.7% Easy


unique-character-in-a-string)

57 Insert Interval (/problems/insert-interval) 31.1% Hard

332 Reconstruct Itinerary (/problems/reconstruct-itinerary) 31.2% Medium

99 Recover Binary Search Tree (/problems/recover- 34.3% Hard


binary-search-tree)

 239 Sliding Window Maximum (/problems/sliding-window- 37.8% Hard


maximum)

862 Shortest Subarray with Sum at Least K 21.9% Hard


(/problems/shortest-subarray-with-sum-at-least-k)

 128 Longest Consecutive Sequence (/problems/longest- 41.4% Hard


consecutive-sequence)

416 Partition Equal Subset Sum (/problems/partition- 40.3% Medium


equal-subset-sum)

8 String to Integer (atoi) (/problems/string-to-integer- 14.6% Medium


atoi)

449 Serialize and Deserialize BST (/problems/serialize- 46.7% Medium


and-deserialize-bst)

658 Find K Closest Elements (/problems/find-k-closest- 37.8% Medium


elements)

13 Roman to Integer (/problems/roman-to-integer) 52.1% Easy

548 Split Array with Equal Sum (/problems/split-array- 43.1% Medium


with-equal-sum) 

 329 Longest Increasing Path in a Matrix 39.7% Hard


(/problems/longest-increasing-path-in-a-matrix)
https://leetcode.com/company/facebook/ 7/19
4/24/2019 Facebook - LeetCode

 #
489 Robot Room Cleaner (/problems/robot-room-cleaner)
Title Acceptance
63.8% Difficulty
Hard Frequency 

248 Strobogrammatic Number III 36.3% Hard


(/problems/strobogrammatic-number-iii) 

360 Sort Transformed Array (/problems/sort-transformed- 46.7% Medium


array) 

75 Sort Colors (/problems/sort-colors) 41.9% Medium

252 Meeting Rooms (/problems/meeting-rooms)  51.9% Easy

 692 Top K Frequent Words (/problems/top-k-frequent- 45.4% Medium


words)

78 Subsets (/problems/subsets) 52.2% Medium

266 Palindrome Permutation (/problems/palindrome- 59.9% Easy


permutation) 

419 Battleships in a Board (/problems/battleships-in-a- 65.5% Medium


board)

71 Simplify Path (/problems/simplify-path) 28.5% Medium

494 Target Sum (/problems/target-sum) 45.0% Medium

 2 Add Two Numbers (/problems/add-two-numbers) 31.0% Medium

688 Knight Probability in Chessboard (/problems/knight- 43.8% Medium


probability-in-chessboard)

44 Wildcard Matching (/problems/wildcard-matching) 22.7% Hard

958 Check Completeness of a Binary Tree 46.6% Medium


(/problems/check-completeness-of-a-binary-tree)

105 Construct Binary Tree from Preorder and Inorder 40.5% Medium
Traversal (/problems/construct-binary-tree-from-
preorder-and-inorder-traversal)

767 Reorganize String (/problems/reorganize-string) 41.8% Medium

843 Guess the Word (/problems/guess-the-word) 42.8% Hard

865 Smallest Subtree with all the Deepest Nodes 55.1% Medium
(/problems/smallest-subtree-with-all-the-deepest-
nodes)
https://leetcode.com/company/facebook/ 8/19
4/24/2019 Facebook - LeetCode
nodes)
# Title Acceptance Difficulty Frequency 
53 Maximum Subarray (/problems/maximum-subarray) 43.3% Easy

296 Best Meeting Point (/problems/best-meeting-point) 54.5% Hard


639 Decode Ways II (/problems/decode-ways-ii) 24.9% Hard

206 Reverse Linked List (/problems/reverse-linked-list) 54.0% Easy

341 Flatten Nested List Iterator (/problems/flatten-nested- 47.5% Medium


list-iterator)

 430 Flatten a Multilevel Doubly Linked List 41.6% Medium


(/problems/flatten-a-multilevel-doubly-linked-list)

 381 Insert Delete GetRandom O(1) - Duplicates allowed 31.7% Hard


(/problems/insert-delete-getrandom-o1-duplicates-
allowed)

 394 Decode String (/problems/decode-string) 44.5% Medium

564 Find the Closest Palindrome (/problems/find-the- 18.6% Hard


closest-palindrome)

21 Merge Two Sorted Lists (/problems/merge-two- 46.8% Easy


sorted-lists)

 126 Word Ladder II (/problems/word-ladder-ii) 17.4% Hard

491 Increasing Subsequences (/problems/increasing- 41.8% Medium


subsequences)

663 Equal Tree Partition (/problems/equal-tree-partition) 37.9% Medium


885 Spiral Matrix III (/problems/spiral-matrix-iii) 63.7% Medium

694 Number of Distinct Islands (/problems/number-of- 50.9% Medium


distinct-islands) 

346 Moving Average from Data Stream 65.9% Easy


(/problems/moving-average-from-data-stream) 

 207 Course Schedule (/problems/course-schedule) 37.4% Medium

 79 Word Search (/problems/word-search) 31.0% Medium

209 Minimum Size Subarray Sum (/problems/minimum- 34.6% Medium


size-subarray-sum)
https://leetcode.com/company/facebook/ 9/19
4/24/2019 Facebook - LeetCode
size subarray sum)
# Title Acceptance Difficulty Frequency 
305 Number of Islands II (/problems/number-of-islands-ii) 42.1% Hard

308 Range Sum Query 2D - Mutable (/problems/range- 31.6% Hard


sum-query-2d-mutable) 

399 Evaluate Division (/problems/evaluate-division) 47.3% Medium

446 Arithmetic Slices II - Subsequence 29.8% Hard


(/problems/arithmetic-slices-ii-subsequence)

490 The Maze (/problems/the-maze)  47.1% Medium

 46 Permutations (/problems/permutations) 54.6% Medium

 568 Maximum Vacation Days (/problems/maximum- 37.9% Hard


vacation-days) 

192 Word Frequency (/problems/word-frequency) 26.8% Medium

772 Basic Calculator III (/problems/basic-calculator-iii)  43.8% Hard

49 Group Anagrams (/problems/group-anagrams) 46.0% Medium

498 Diagonal Traverse (/problems/diagonal-traverse) 45.2% Medium

 210 Course Schedule II (/problems/course-schedule-ii) 34.4% Medium

5 Longest Palindromic Substring (/problems/longest- 27.1% Medium


palindromic-substring)

26 Remove Duplicates from Sorted Array 40.3% Easy


(/problems/remove-duplicates-from-sorted-array)

117 Populating Next Right Pointers in Each Node II 34.0% Medium


(/problems/populating-next-right-pointers-in-each-
node-ii)

153 Find Minimum in Rotated Sorted Array 42.8% Medium


(/problems/find-minimum-in-rotated-sorted-array)

208 Implement Trie (Prefix Tree) (/problems/implement- 37.9% Medium


trie-prefix-tree)

 92 Reverse Linked List II (/problems/reverse-linked-list-ii) 34.6% Medium

480 Sliding Window Median (/problems/sliding-window- 32.0% Hard


median)
https://leetcode.com/company/facebook/ 10/19
4/24/2019 Facebook - LeetCode
median)
# Title Acceptance Difficulty Frequency 
127 Word Ladder (/problems/word-ladder) 23.6% Medium

116 Populating Next Right Pointers in Each Node 37.5% Medium


(/problems/populating-next-right-pointers-in-each-
node)

445 Add Two Numbers II (/problems/add-two-numbers-ii) 49.8% Medium

339 Nested List Weight Sum (/problems/nested-list- 67.8% Easy


weight-sum) 

380 Insert Delete GetRandom O(1) (/problems/insert- 42.5% Medium


delete-getrandom-o1)

556 Next Greater Element III (/problems/next-greater- 29.9% Medium


element-iii)

703 Kth Largest Element in a Stream (/problems/kth- 46.2% Easy


largest-element-in-a-stream)

478 Generate Random Point in a Circle 36.3% Medium


(/problems/generate-random-point-in-a-circle)

529 Minesweeper (/problems/minesweeper) 52.4% Medium

493 Reverse Pairs (/problems/reverse-pairs) 22.9% Hard

647 Palindromic Substrings (/problems/palindromic- 56.5% Medium


substrings)

224 Basic Calculator (/problems/basic-calculator) 32.3% Hard

670 Maximum Swap (/problems/maximum-swap) 39.5% Medium

673 Number of Longest Increasing Subsequence 33.3% Medium


(/problems/number-of-longest-increasing-
subsequence)

 285 Inorder Successor in BST (/problems/inorder- 34.3% Medium


successor-in-bst) 

452 Minimum Number of Arrows to Burst Balloons 46.1% Medium


(/problems/minimum-number-of-arrows-to-burst-
balloons)

752 Open the Lock (/problems/open-the-lock) 45.4% Medium

602 Friend Requests II: Who Has the Most Friends 44 5% M di


https://leetcode.com/company/facebook/ 11/19
4/24/2019 Facebook - LeetCode
602 Friend Requests II: Who Has the Most Friends 44.5% Medium
# Title
(/problems/friend-requests-ii-who-has-the-most- Acceptance Difficulty Frequency 
friends) 

921 Minimum Add to Make Parentheses Valid 69.9% Medium


(/problems/minimum-add-to-make-parentheses-valid)

642 Design Search Autocomplete System 37.0% Hard


(/problems/design-search-autocomplete-system) 

392 Is Subsequence (/problems/is-subsequence) 46.6% Medium

886 Possible Bipartition (/problems/possible-bipartition) 40.4% Medium

 212 Word Search II (/problems/word-search-ii) 28.2% Hard

518 Coin Change 2 (/problems/coin-change-2) 42.2% Medium

102 Binary Tree Level Order Traversal (/problems/binary- 48.0% Medium


tree-level-order-traversal)

30 Substring with Concatenation of All Words 23.4% Hard


(/problems/substring-with-concatenation-of-all-words)

137 Single Number II (/problems/single-number-ii) 45.7% Medium

148 Sort List (/problems/sort-list) 34.8% Medium

 844 Backspace String Compare (/problems/backspace- 45.7% Easy


string-compare)

81 Search in Rotated Sorted Array II (/problems/search- 32.6% Medium


in-rotated-sorted-array-ii)

230 Kth Smallest Element in a BST (/problems/kth- 50.9% Medium


smallest-element-in-a-bst)

291 Word Pattern II (/problems/word-pattern-ii)  40.6% Hard

981 Time Based Key-Value Store (/problems/time-based- 50.7% Medium


key-value-store)

987 Vertical Order Traversal of a Binary Tree 32.4% Medium


(/problems/vertical-order-traversal-of-a-binary-tree)

151 Reverse Words in a String (/problems/reverse-words- 16.4% Medium


in-a-string)

163 Missing Ranges (/problems/missing-ranges)  23.1% Medium

716 Max Stack (/problems/max-stack)  39 8% Easy


https://leetcode.com/company/facebook/ 12/19
4/24/2019 Facebook - LeetCode
716 Max Stack (/problems/max stack)  39.8% Easy
# Title Acceptance Difficulty Frequency 
 123 Best Time to Buy and Sell Stock III (/problems/best- 33.4% Hard
time-to-buy-and-sell-stock-iii)

443 String Compression (/problems/string-compression) 37.4% Easy

378 Kth Smallest Element in a Sorted Matrix 49.1% Medium


(/problems/kth-smallest-element-in-a-sorted-matrix)

281 Zigzag Iterator (/problems/zigzag-iterator)  55.7% Medium

260 Single Number III (/problems/single-number-iii) 56.7% Medium

315 Count of Smaller Numbers After Self 37.8% Hard


(/problems/count-of-smaller-numbers-after-self)

 94 Binary Tree Inorder Traversal (/problems/binary-tree- 56.1% Medium


inorder-traversal)

 110 Balanced Binary Tree (/problems/balanced-binary- 40.7% Easy


tree)

18 4Sum (/problems/4sum) 30.2% Medium

 103 Binary Tree Zigzag Level Order Traversal 41.3% Medium


(/problems/binary-tree-zigzag-level-order-traversal)

382 Linked List Random Node (/problems/linked-list- 49.0% Medium


random-node)

437 Path Sum III (/problems/path-sum-iii) 42.5% Easy

 554 Brick Wall (/problems/brick-wall) 47.5% Medium

918 Maximum Sum Circular Subarray 31.3% Medium


(/problems/maximum-sum-circular-subarray)

68 Text Justification (/problems/text-justification) 23.0% Hard

298 Binary Tree Longest Consecutive Sequence 43.8% Medium


(/problems/binary-tree-longest-consecutive-
sequence) 

722 Remove Comments (/problems/remove-comments) 30.9% Medium

428 Serialize and Deserialize N-ary Tree 53.4% Hard


(/problems/serialize-and-deserialize-n-ary-tree) 

14 Longest Common Prefix (/problems/longest-common- 33.3% Easy


prefix)
https://leetcode.com/company/facebook/ 13/19
4/24/2019 Facebook - LeetCode

#
189 Title Array (/problems/rotate-array)
Rotate Acceptance
29.7% Difficulty
Easy Frequency 

101 Symmetric Tree (/problems/symmetric-tree) 43.2% Easy

889 Construct Binary Tree from Preorder and Postorder 59.3% Medium
Traversal (/problems/construct-binary-tree-from-
preorder-and-postorder-traversal)

249 Group Shifted Strings (/problems/group-shifted- 48.5% Medium


strings) 

319 Bulb Switcher (/problems/bulb-switcher) 43.8% Medium

295 Find Median from Data Stream (/problems/find- 36.0% Hard


median-from-data-stream)

935 Knight Dialer (/problems/knight-dialer) 39.7% Medium

37 Sudoku Solver (/problems/sudoku-solver) 36.4% Hard

 122 Best Time to Buy and Sell Stock II (/problems/best- 51.6% Easy
time-to-buy-and-sell-stock-ii)

405 Convert a Number to Hexadecimal 41.8% Easy


(/problems/convert-a-number-to-hexadecimal)

572 Subtree of Another Tree (/problems/subtree-of- 41.6% Easy


another-tree)

 4 Median of Two Sorted Arrays (/problems/median-of- 26.1% Hard


two-sorted-arrays)

 22 Generate Parentheses (/problems/generate- 54.3% Medium


parentheses)

 55 Jump Game (/problems/jump-game) 31.7% Medium

547 Friend Circles (/problems/friend-circles) 53.3% Medium

170 Two Sum III - Data structure design (/problems/two- 30.1% Easy
sum-iii-data-structure-design) 

7 Reverse Integer (/problems/reverse-integer) 25.2% Easy

240 Search a 2D Matrix II (/problems/search-a-2d-matrix- 40.7% Medium


ii)

 681 Next Closest Time (/problems/next-closest-time)  42.4% Medium

73 Set Matrix Zeroes (/problems/set-matrix-zeroes) 39.5% Medium

https://leetcode.com/company/facebook/ 14/19
4/24/2019 Facebook - LeetCode

863
# All Nodes Distance K in Binary Tree (/problems/all-
Title 46.5%
Acceptance Medium
Difficulty Frequency 
nodes-distance-k-in-binary-tree)

47 Permutations II (/problems/permutations-ii) 40.0% Medium

66 Plus One (/problems/plus-one) 41.0% Easy

359 Logger Rate Limiter (/problems/logger-rate-limiter) 64.8% Easy


109 Convert Sorted List to Binary Search Tree 40.4% Medium


(/problems/convert-sorted-list-to-binary-search-tree)

140 Word Break II (/problems/word-break-ii) 27.1% Hard

167 Two Sum II - Input array is sorted (/problems/two- 50.0% Easy


sum-ii-input-array-is-sorted)

 280 Wiggle Sort (/problems/wiggle-sort)  60.9% Medium

371 Sum of Two Integers (/problems/sum-of-two-integers) 51.0% Easy

724 Find Pivot Index (/problems/find-pivot-index) 40.9% Easy

939 Minimum Area Rectangle (/problems/minimum-area- 50.1% Medium


rectangle)

1004 Max Consecutive Ones III (/problems/max- 52.2% Medium


consecutive-ones-iii)

307 Range Sum Query - Mutable (/problems/range-sum- 28.2% Medium


query-mutable)

395 Longest Substring with At Least K Repeating 38.4% Medium


Characters (/problems/longest-substring-with-at-least-
k-repeating-characters)

714 Best Time to Buy and Sell Stock with Transaction Fee 50.1% Medium
(/problems/best-time-to-buy-and-sell-stock-with-
transaction-fee)

69 Sqrt(x) (/problems/sqrtx) 31.1% Easy

 159 Longest Substring with At Most Two Distinct 46.7% Hard


Characters (/problems/longest-substring-with-at-most-
two-distinct-characters) 

166 Fraction to Recurring Decimal (/problems/fraction-to- 19.4% Medium


recurring-decimal)

111 Minimum Depth of Binary Tree (/problems/minimum 35 1% E


https://leetcode.com/company/facebook/ 15/19
4/24/2019 Facebook - LeetCode
111 Minimum Depth of Binary Tree (/problems/minimum- 35.1% Easy
# Title
depth-of-binary-tree) Acceptance Difficulty Frequency 

145 Binary Tree Postorder Traversal (/problems/binary- 47.9% Hard


tree-postorder-traversal)

176 Second Highest Salary (/problems/second-highest- 26.8% Easy


salary)

287 Find the Duplicate Number (/problems/find-the- 49.2% Medium


duplicate-number)

743 Network Delay Time (/problems/network-delay-time) 41.3% Medium

977 Squares of a Sorted Array (/problems/squares-of-a- 72.4% Easy


sorted-array)

24 Swap Nodes in Pairs (/problems/swap-nodes-in-pairs) 44.2% Medium

235 Lowest Common Ancestor of a Binary Search Tree 44.2% Easy


(/problems/lowest-common-ancestor-of-a-binary-
search-tree)

654 Maximum Binary Tree (/problems/maximum-binary- 75.7% Medium


tree)

261 Graph Valid Tree (/problems/graph-valid-tree)  39.7% Medium

324 Wiggle Sort II (/problems/wiggle-sort-ii) 27.8% Medium

218 The Skyline Problem (/problems/the-skyline-problem) 31.5% Hard

377 Combination Sum IV (/problems/combination-sum-iv) 43.7% Medium

48 Rotate Image (/problems/rotate-image) 47.9% Medium

72 Edit Distance (/problems/edit-distance) 37.2% Hard

852 Peak Index in a Mountain Array (/problems/peak- 69.5% Easy


index-in-a-mountain-array)

279 Perfect Squares (/problems/perfect-squares) 41.6% Medium

6 ZigZag Conversion (/problems/zigzag-conversion) 31.4% Medium

39 Combination Sum (/problems/combination-sum) 47.8% Medium

74 Search a 2D Matrix (/problems/search-a-2d-matrix) 34.8% Medium

402 Remove K Digits (/problems/remove-k-digits) 26.4% Medium

516 Longest Palindromic Subsequence 46.1% Medium


https://leetcode.com/company/facebook/ 16/19
4/24/2019 Facebook - LeetCode
g q
# (/problems/longest-palindromic-subsequence)
Title Acceptance Difficulty Frequency 

160 Intersection of Two Linked Lists 33.3% Easy


(/problems/intersection-of-two-linked-lists)

686 Repeated String Match (/problems/repeated-string- 31.3% Easy


match)

334 Increasing Triplet Subsequence 39.5% Medium


(/problems/increasing-triplet-subsequence)

897 Increasing Order Search Tree (/problems/increasing- 63.9% Easy


order-search-tree)

93 Restore IP Addresses (/problems/restore-ip- 31.2% Medium


addresses)

180 Consecutive Numbers (/problems/consecutive- 33.0% Medium


numbers)

414 Third Maximum Number (/problems/third-maximum- 28.9% Easy


number)

637 Average of Levels in Binary Tree (/problems/average- 58.4% Easy


of-levels-in-binary-tree)

36 Valid Sudoku (/problems/valid-sudoku) 42.6% Medium

154 Find Minimum in Rotated Sorted Array II 39.2% Hard


(/problems/find-minimum-in-rotated-sorted-array-ii)

450 Delete Node in a BST (/problems/delete-node-in-a- 39.7% Medium


bst)

628 Maximum Product of Three Numbers 45.8% Easy


(/problems/maximum-product-of-three-numbers)

337 House Robber III (/problems/house-robber-iii) 47.8% Medium

1008 Construct Binary Search Tree from Preorder 72.7% Medium


Traversal (/problems/construct-binary-search-tree-
from-preorder-traversal)

28 Implement strStr() (/problems/implement-strstr) 31.7% Easy

766 Toeplitz Matrix (/problems/toeplitz-matrix) 61.4% Easy

872 Leaf-Similar Trees (/problems/leaf-similar-trees) 62.9% Easy

19 Remove Nth Node From End of List 34.2% Medium


(/problems/remove-nth-node-from-end-of-list)
https://leetcode.com/company/facebook/ 17/19
4/24/2019 Facebook - LeetCode
(/problems/remove nth node from end of list)
# Title Acceptance Difficulty Frequency 
38 Count and Say (/problems/count-and-say) 40.2% Easy

136 Single Number (/problems/single-number) 59.7% Easy

177 Nth Highest Salary (/problems/nth-highest-salary) 25.8% Medium

11 Container With Most Water (/problems/container-with- 43.8% Medium


most-water)

 54 Spiral Matrix (/problems/spiral-matrix) 30.1% Medium

118 Pascal's Triangle (/problems/pascals-triangle) 45.5% Easy

226 Invert Binary Tree (/problems/invert-binary-tree) 57.8% Easy

695 Max Area of Island (/problems/max-area-of-island) 56.8% Medium

222 Count Complete Tree Nodes (/problems/count- 32.7% Medium


complete-tree-nodes)

 322 Coin Change (/problems/coin-change) 29.9% Medium

77 Combinations (/problems/combinations) 47.1% Medium

 84 Largest Rectangle in Histogram (/problems/largest- 30.8% Hard


rectangle-in-histogram)

129 Sum Root to Leaf Numbers (/problems/sum-root-to- 42.1% Medium


leaf-numbers)

181 Employees Earning More Than Their Managers 47.6% Easy


(/problems/employees-earning-more-than-their-
managers)

9 Palindrome Number (/problems/palindrome-number) 42.9% Easy

107 Binary Tree Level Order Traversal II 46.3% Easy


(/problems/binary-tree-level-order-traversal-ii)

448 Find All Numbers Disappeared in an Array 53.1% Easy


(/problems/find-all-numbers-disappeared-in-an-array)

63 Unique Paths II (/problems/unique-paths-ii) 33.4% Medium

113 Path Sum II (/problems/path-sum-ii) 40.2% Medium

202 Happy Number (/problems/happy-number) 44.9% Easy

234 Palindrome Linked List (/problems/palindrome-linked- 35.8% Easy


list)
https://leetcode.com/company/facebook/ 18/19
4/24/2019 Facebook - LeetCode
list)
# Title Acceptance Difficulty Frequency 
617 Merge Two Binary Trees (/problems/merge-two- 69.8% Easy
binary-trees)

62 Unique Paths (/problems/unique-paths) 47.2% Medium

100 Same Tree (/problems/same-tree) 49.8% Easy

175 Combine Two Tables (/problems/combine-two-tables) 50.8% Easy

155 Min Stack (/problems/min-stack) 36.5% Easy

198 House Robber (/problems/house-robber) 40.9% Easy

242 Valid Anagram (/problems/valid-anagram) 51.7% Easy

70 Climbing Stairs (/problems/climbing-stairs) 43.9% Easy

141 Linked List Cycle (/problems/linked-list-cycle) 36.5% Easy

104 Maximum Depth of Binary Tree (/problems/maximum- 60.1% Easy


depth-of-binary-tree)

344 Reverse String (/problems/reverse-string) 63.1% Easy

Copyright © 2019 LeetCode


Help Center (/support/) | Terms (/terms/) | Privacy Policy (/privacy/)
United States (/region/)

https://leetcode.com/company/facebook/ 19/19

You might also like