Skip to content

Latest commit

 

History

History
451 lines (436 loc) · 16.4 KB

LeetCodeQuestionsByFrequency.md

File metadata and controls

451 lines (436 loc) · 16.4 KB

LeetCode by Company ordered by frequency

As of April 1st, 2017

Amazon (64)

No. Title Acceptance Difficulty Frequency
146 LRU Cache 16.8% Hard
1 Two Sum 32.1% Easy
297 Serialize and Deserialize Binary Tree 32.5% Hard
200 Number of Islands 33.3% Medium
460 LFU Cache 22.2% Hard
20 Valid Parentheses 32.8% Easy
138 Copy List with Random Pointer 26.5% Medium
48 Rotate Image 37.7% Medium
236 Lowest Common Ancestor of a Binary Tree 29.5% Medium
438 Find All Anagrams in a String 33.5% Easy
238 Product of Array Except Self 48.0% Medium
5 Longest Palindromic Substring 25.0% Medium
121 Best Time to Buy and Sell Stock 40.1% Easy
239 Sliding Window Maximum 32.1% Hard
380 Insert Delete GetRandom O(1) 38.9% Medium
17 Letter Combinations of a Phone Number 33.4% Medium
206 Reverse Linked List 44.4% Easy
387 First Unique Character in a String 46.1% Easy
235 Lowest Common Ancestor of a Binary Search Tree 38.4% Easy
240 Search a 2D Matrix II 38.0% Medium
127 Word Ladder 19.3% Medium
42 Trapping Rain Water 35.9% Hard
155 Min Stack 27.3% Easy
49 Group Anagrams 33.0% Medium
160 Intersection of Two Linked Lists 30.2% Easy
141 Linked List Cycle 35.5% Easy
2 Add Two Numbers 27.0% Medium
242 Valid Anagram 45.5% Easy
215 Kth Largest Element in an Array 38.3% Medium
139 Word Break 29.0% Medium
234 Palindrome Linked List 32.1% Easy
126 Word Ladder II 13.8% Hard
98 Validate Binary Search Tree 22.8% Medium
23 Merge k Sorted Lists 26.5% Hard
3 Longest Substring Without Repeating Characters 24.0% Medium
167 Two Sum II - Input array is sorted 47.4% Easy
449 Serialize and Deserialize BST 42.2% Medium
21 Merge Two Sorted Lists 38.5% Easy
15 3Sum 21.4% Medium
186 Reverse Words in a String II 27.8% Medium
78 Subsets 38.3% Medium
102 Binary Tree Level Order Traversal 38.2% Medium
73 Set Matrix Zeroes 35.5% Medium
89 Gray Code 40.1% Medium
414 Third Maximum Number 27.2% Easy
8 String to Integer (atoi) 13.9% Medium
204 Count Primes 26.3% Easy
355 Design Twitter 25.1% Medium
199 Binary Tree Right Side View 39.6% Medium
119 Pascal's Triangle II 35.8% Easy
529 Minesweeper 51.8% Medium
537 Complex Number Multiplication 66.2% Medium
517 Super Washing Machines 35.5% Hard
396 Rotate Function 31.3% Medium
516 Longest Palindromic Subsequence 42.2% Medium
508 Most Frequent Subtree Sum 51.7% Medium
535 Encode and Decode TinyURL 75.3% Medium
536 Construct Binary Tree from String 36.8% Medium
538 Convert BST to Greater Tree 53.2% Medium
459 Repeated Substring Pattern 38.4% Easy
534 Design TinyURL 0.0% Medium
451 Sort Characters By Frequency 50.3% Medium
532 K-diff Pairs in an Array 27.3% Easy
545 Boundary of Binary Tree 26.2% Medium

Google(180)

No. Title Acceptance Difficulty Frequency
388 Longest Absolute File Path 35.7% Medium
340 Longest Substring with At Most K Distinct Characters 38.4% Hard
482 License Key Formatting 41.2% Medium
308 Range Sum Query 2D - Mutable 21.3% Hard
418 Sentence Screen Fitting 27.3% Medium
298 Binary Tree Longest Consecutive Sequence 40.3% Medium
425 Word Squares 42.6% Hard
281 Zigzag Iterator 49.4% Medium
361 Bomb Enemy 38.4% Medium
346 Moving Average from Data Stream 58.0% Easy
163 Missing Ranges 25.7% Medium
394 Decode String 40.9% Medium
66 Plus One 37.6% Easy
317 Shortest Distance from All Buildings 33.5% Hard
271 Encode and Decode Strings 26.2% Medium
288 Unique Word Abbreviation 15.9% Medium
351 Android Unlock Patterns 43.1% Medium
393 UTF-8 Validation 34.7% Medium
305 Number of Islands II 38.6% Hard
280 Wiggle Sort 56.1% Medium
200 Number of Islands 33.3% Medium
259 3Sum Smaller 41.0% Medium
289 Game of Life 36.5% Medium
246 Strobogrammatic Number 39.3% Easy
406 Queue Reconstruction by Height 54.7% Medium
218 The Skyline Problem 26.4% Hard
279 Perfect Squares 35.8% Medium
391 Perfect Rectangle 25.5% Hard
417 Pacific Atlantic Water Flow 33.1% Medium
345 Reverse Vowels of a String 37.9% Easy
471 Encode String with Shortest Length 42.0% Hard
286 Walls and Gates 43.3% Medium
56 Merge Intervals 29.1% Medium
399 Evaluate Division 40.2% Medium
247 Strobogrammatic Number II 39.0% Medium
320 Generalized Abbreviation 44.2% Medium
297 Serialize and Deserialize Binary Tree 32.5% Hard
465 Optimal Account Balancing 33.3% Hard
329 Longest Increasing Path in a Matrix 35.8% Hard
362 Design Hit Counter 53.2% Medium
407 Trapping Rain Water II 36.3% Hard
159 Longest Substring with At Most Two Distinct Characters 40.2% Hard
295 Find Median from Data Stream 24.8% Hard
284 Peeking Iterator 35.3% Medium
228 Summary Ranges 28.8% Medium
294 Flip Game II 45.8% Medium
146 LRU Cache 16.8% Hard
411 Minimum Unique Word Abbreviation 31.6% Hard
359 Logger Rate Limiter 58.8% Easy
341 Flatten Nested List Iterator 40.1% Medium
293 Flip Game 54.7% Easy
380 Insert Delete GetRandom O(1) 38.9% Medium
42 Trapping Rain Water 35.9% Hard
315 Count of Smaller Numbers After Self 34.0% Hard
276 Paint Fence 34.1% Easy
484 Find Permutation 52.1% Medium
274 H-Index 32.6% Medium
360 Sort Transformed Array 43.4% Medium
389 Find the Difference 51.3% Easy
239 Sliding Window Maximum 32.1% Hard
401 Binary Watch 44.6% Easy
249 Group Shifted Strings 40.1% Medium
269 Alien Dictionary 22.6% Hard
253 Meeting Rooms II 38.6% Medium
212 Word Search II 22.8% Hard
400 Nth Digit 30.2% Easy
318 Maximum Product of Word Lengths 43.1% Medium
128 Longest Consecutive Sequence 35.9% Hard
490 The Maze 42.2% Medium
270 Closest Binary Search Tree Value 38.8% Easy
463 Island Perimeter 56.6% Easy
505 The Maze II 35.8% Medium
230 Kth Smallest Element in a BST 42.8% Medium
139 Word Break 29.0% Medium
20 Valid Parentheses 32.8% Easy
162 Find Peak Element 36.5% Medium
369 Plus One Linked List 53.7% Medium
158 Read N Characters Given Read4 II - Call multiple times 24.3% Hard
358 Rearrange String k Distance Apart 31.8% Hard
266 Palindrome Permutation 56.1% Easy
373 Find K Pairs with Smallest Sums 30.3% Medium
415 Add Strings 41.2% Easy
10 Regular Expression Matching 23.9% Hard
4 Median of Two Sorted Arrays 21.2% Hard
327 Count of Range Sum 29.2% Hard
155 Min Stack 27.3% Easy
409 Longest Palindrome 44.9% Easy
332 Reconstruct Itinerary 28.5% Medium
23 Merge k Sorted Lists 26.5% Hard
166 Fraction to Recurring Decimal 17.1% Medium
421 Maximum XOR of Two Numbers in an Array 44.3% Medium
324 Wiggle Sort II 25.5% Medium
240 Search a 2D Matrix II 38.0% Medium
422 Valid Word Square 36.1% Easy
460 LFU Cache 22.2% Hard
336 Palindrome Pairs 25.4% Hard
140 Word Break II 22.7% Hard
348 Design Tic-Tac-Toe 45.6% Medium
133 Clone Graph 25.1% Medium
173 Binary Search Tree Iterator 40.1% Medium
231 Power of Two 39.7% Easy
57 Insert Interval 26.9% Hard
54 Spiral Matrix 25.1% Medium
22 Generate Parentheses 43.1% Medium
31 Next Permutation 28.5% Medium
382 Linked List Random Node 46.5% Medium
224 Basic Calculator 26.2% Hard
17 Letter Combinations of a Phone Number 33.4% Medium
251 Flatten 2D Vector 39.6% Medium
50 Pow(x, n) 26.7% Medium
402 Remove K Digits 26.1% Medium
272 Closest Binary Search Tree Value II 38.2% Hard
309 Best Time to Buy and Sell Stock with Cooldown 40.1% Medium
444 Sequence Reconstruction 19.7% Medium
44 Wildcard Matching 19.5% Hard
379 Design Phone Directory 31.2% Medium
375 Guess Number Higher or Lower II 35.6% Medium
353 Design Snake Game 26.1% Medium
302 Smallest Rectangle Enclosing Black Pixels 44.7% Hard
354 Russian Doll Envelopes 32.0% Hard
356 Line Reflection 30.3% Medium
408 Valid Word Abbreviation 27.5% Easy
397 Integer Replacement 29.6% Medium
282 Expression Add Operators 29.2% Hard
368 Largest Divisible Subset 33.5% Medium
363 Max Sum of Rectangle No Larger Than K 32.5% Hard
208 Implement Trie (Prefix Tree) 26.7% Medium
214 Shortest Palindrome 23.5% Hard
451 Sort Characters By Frequency 50.3% Medium
261 Graph Valid Tree 37.2% Medium
313 Super Ugly Number 37.3% Medium
459 Repeated Substring Pattern 38.4% Easy
321 Create Maximum Number 24.2% Hard
378 Kth Smallest Element in a Sorted Matrix 43.7% Medium
377 Combination Sum IV 41.7% Medium
331 Verify Preorder Serialization of a Binary Tree 35.6% Medium
326 Power of Three 39.7% Easy
374 Guess Number Higher or Lower 34.3% Easy
257 Binary Tree Paths 36.6% Easy
310 Minimum Height Trees 28.6% Medium
487 Max Consecutive Ones II 44.2% Medium
493 Reverse Pairs 18.6% Hard
494 Target Sum 43.9% Medium
330 Patching Array 31.7% Hard
498 Diagonal Traverse 46.5% Medium
447 Number of Boomerangs 43.6% Easy
501 Find Mode in Binary Search Tree 38.7% Easy
503 Next Greater Element II 46.8% Medium
448 Find All Numbers Disappeared in an Array 52.8% Easy
506 Relative Ranks 47.4% Easy
370 Range Addition 54.4% Medium
514 Freedom Trail 33.4% Hard
546 Remove Boxes 27.0% Hard
520 Detect Capital 52.7% Easy
545 Boundary of Binary Tree 26.2% Medium
316 Remove Duplicate Letters 29.0% Hard
524 Longest Word in Dictionary through Deleting 40.5% Medium
526 Beautiful Arrangement 53.6% Medium
527 Word Abbreviation 34.0% Hard
530 Minimum Absolute Difference in BST 48.0% Easy
469 Convex Polygon 30.2% Medium
531 Lonely Pixel I 50.7% Medium
474 Ones and Zeroes 37.5% Medium
533 Lonely Pixel II 39.0% Medium
357 Count Numbers with Unique Digits 45.5% Medium
534 Design TinyURL 0.0% Medium
535 Encode and Decode TinyURL 75.3% Medium
475 Heaters 29.6% Easy
541 Reverse String II 44.1% Easy
314 Binary Tree Vertical Order Traversal 36.1% Medium
481 Magical String 45.1% Medium
483 Smallest Good Base 31.1% Hard
542 01 Matrix 33.4% Medium
323 Number of Connected Components in an Undirected Graph 47.3% Medium
485 Max Consecutive Ones 54.5% Easy
312 Burst Balloons 42.0% Hard
543 Diameter of Binary Tree 42.5% Easy
486 Predict the Winner 44.2% Medium
544 Output Contest Matches 73.5% Medium
480 Sliding Window Median 31.2% Hard

Facebook(94)

No. Title Acceptance Difficulty Frequency
283 Move Zeroes 48.8% Easy
325 Maximum Size Subarray Sum Equals k 42.0% Medium
301 Remove Invalid Parentheses 34.9% Hard
67 Add Binary 31.3% Easy
311 Sparse Matrix Multiplication 50.6% Medium
314 Binary Tree Vertical Order Traversal 36.1% Medium
273 Integer to English Words 21.6% Hard
278 First Bad Version 24.7% Easy
17 Letter Combinations of a Phone Number 33.4% Medium
253 Meeting Rooms II 38.6% Medium
91 Decode Ways 19.2% Medium
10 Regular Expression Matching 23.9% Hard
15 3Sum 21.4% Medium
277 Find the Celebrity 35.5% Medium
158 Read N Characters Given Read4 II - Call multiple times 24.3% Hard
297 Serialize and Deserialize Binary Tree 32.5% Hard
200 Number of Islands 33.3% Medium
282 Expression Add Operators 29.2% Hard
76 Minimum Window Substring 24.5% Hard
257 Binary Tree Paths 36.6% Easy
23 Merge k Sorted Lists 26.5% Hard
161 One Edit Distance 30.9% Medium
157 Read N Characters Given Read4 29.2% Easy
285 Inorder Successor in BST 36.0% Medium
211 Add and Search Word - Data structure design 21.2% Medium
341 Flatten Nested List Iterator 40.1% Medium
121 Best Time to Buy and Sell Stock 40.1% Easy
56 Merge Intervals 29.1% Medium
139 Word Break 29.0% Medium
1 Two Sum 32.0% Easy
173 Binary Search Tree Iterator 40.1% Medium
125 Valid Palindrome 25.8% Easy
75 Sort Colors 37.2% Medium
78 Subsets 38.3% Medium
98 Validate Binary Search Tree 22.8% Medium
206 Reverse Linked List 44.4% Easy
43 Multiply Strings 26.4% Medium
133 Clone Graph 25.1% Medium
252 Meeting Rooms 46.4% Easy
218 The Skyline Problem 26.4% Hard
236 Lowest Common Ancestor of a Binary Tree 29.5% Medium
49 Group Anagrams 33.0% Medium
79 Word Search 25.9% Medium
238 Product of Array Except Self 48.0% Medium
38 Count and Say 33.4% Easy
215 Kth Largest Element in an Array 38.3% Medium
209 Minimum Size Subarray Sum 29.5% Medium
57 Insert Interval 26.9% Hard
71 Simplify Path 24.6% Medium
13 Roman to Integer 44.5% Easy
33 Search in Rotated Sorted Array 32.1% Medium
146 LRU Cache 16.8% Hard
380 Insert Delete GetRandom O(1) 38.9% Medium
208 Implement Trie (Prefix Tree) 26.7% Medium
377 Combination Sum IV 41.7% Medium
90 Subsets II 34.9% Medium
44 Wildcard Matching 19.5% Hard
128 Longest Consecutive Sequence 35.9% Hard
102 Binary Tree Level Order Traversal 38.2% Medium
88 Merge Sorted Array 31.7% Easy
28 Implement strStr() 27.4% Easy
494 Target Sum 43.9% Medium
334 Increasing Triplet Subsequence 38.5% Medium
398 Random Pick Index 41.6% Medium
127 Word Ladder 19.3% Medium
50 Pow(x, n) 26.7% Medium
269 Alien Dictionary 22.6% Hard
20 Valid Parentheses 32.8% Easy
286 Walls and Gates 43.3% Medium
235 Lowest Common Ancestor of a Binary Search Tree 38.4% Easy
69 Sqrt(x) 27.4% Easy
117 Populating Next Right Pointers in Each Node II 33.6% Medium
68 Text Justification 18.5% Hard
221 Maximal Square 27.8% Medium
274 H-Index 32.6% Medium
85 Maximal Rectangle 26.8% Hard
210 Course Schedule II 26.6% Medium
25 Reverse Nodes in k-Group 30.2% Hard
234 Palindrome Linked List 32.1% Easy
261 Graph Valid Tree 37.2% Medium
410 Split Array Largest Sum 34.7% Hard
404 Sum of Left Leaves 46.4% Easy
275 H-Index II 33.8% Medium
535 Encode and Decode TinyURL 75.3% Medium
265 Paint House II 37.6% Hard
26 Remove Duplicates from Sorted Array 35.5% Easy
461 Hamming Distance 70.6% Easy
80 Remove Duplicates from Sorted Array II 35.3% Medium
477 Total Hamming Distance 46.0% Medium
523 Continuous Subarray Sum 21.6% Medium
525 Contiguous Array 34.9% Medium
168 Excel Sheet Column Title 25.1% Easy
534 Design TinyURL 0.0% Medium
543 Diameter of Binary Tree 42.5% Easy

Microsoft(84)

No. Title Acceptance Difficulty Frequency
206 Reverse Linked List 44.4% Easy
138 Copy List with Random Pointer 26.5% Medium
419 Battleships in a Board 60.8% Medium
273 Integer to English Words 21.6% Hard
348 Design Tic-Tac-Toe 45.6% Medium
445 Add Two Numbers II 46.2% Medium
54 Spiral Matrix 25.1% Medium
171 Excel Sheet Column Number 46.0% Easy
235 Lowest Common Ancestor of a Binary Search Tree 38.4% Easy
200 Number of Islands 33.3% Medium
88 Merge Sorted Array 31.7% Easy
236 Lowest Common Ancestor of a Binary Tree 29.5% Medium
48 Rotate Image 37.7% Medium
268 Missing Number 43.9% Easy
186 Reverse Words in a String II 27.8% Medium
218 The Skyline Problem 26.4% Hard
1 Two Sum 32.0% Easy
53 Maximum Subarray 39.1% Easy
151 Reverse Words in a String 15.7% Medium
103 Binary Tree Zigzag Level Order Traversal 33.2% Medium
116 Populating Next Right Pointers in Each Node 36.9% Medium
75 Sort Colors 37.2% Medium
297 Serialize and Deserialize Binary Tree 32.5% Hard
73 Set Matrix Zeroes 35.5% Medium
238 Product of Array Except Self 48.0% Medium
237 Delete Node in a Linked List 45.9% Easy
121 Best Time to Buy and Sell Stock 40.1% Easy
141 Linked List Cycle 35.5% Easy
168 Excel Sheet Column Title 25.1% Easy
13 Roman to Integer 44.5% Easy
20 Valid Parentheses 32.8% Easy
98 Validate Binary Search Tree 22.8% Medium
117 Populating Next Right Pointers in Each Node II 33.6% Medium
21 Merge Two Sorted Lists 38.5% Easy
2 Add Two Numbers 27.0% Medium
174 Dungeon Game 23.2% Hard
8 String to Integer (atoi) 13.9% Medium
146 LRU Cache 16.8% Hard
212 Word Search II 22.8% Hard
208 Implement Trie (Prefix Tree) 26.7% Medium
33 Search in Rotated Sorted Array 32.1% Medium
232 Implement Queue using Stacks 35.7% Easy
153 Find Minimum in Rotated Sorted Array 39.2% Medium
24 Swap Nodes in Pairs 37.6% Medium
191 Number of 1 Bits 38.9% Easy
4 Median of Two Sorted Arrays 21.2% Hard
160 Intersection of Two Linked Lists 30.2% Easy
26 Remove Duplicates from Sorted Array 35.5% Easy
102 Binary Tree Level Order Traversal 38.2% Medium
215 Kth Largest Element in an Array 38.3% Medium
189 Rotate Array 23.9% Easy
71 Simplify Path 24.6% Medium
5 Longest Palindromic Substring 25.0% Medium
106 Construct Binary Tree from Inorder and Postorder Traversal 31.4% Medium
204 Count Primes 26.3% Easy
173 Binary Search Tree Iterator 40.1% Medium
387 First Unique Character in a String 46.1% Easy
15 3Sum 21.4% Medium
25 Reverse Nodes in k-Group 30.2% Hard
23 Merge k Sorted Lists 26.5% Hard
270 Closest Binary Search Tree Value 38.8% Easy
285 Inorder Successor in BST 36.0% Medium
79 Word Search 25.9% Medium
46 Permutations 41.8% Medium
165 Compare Version Numbers 19.6% Medium
94 Binary Tree Inorder Traversal 45.0% Medium
258 Add Digits 50.6% Easy
101 Symmetric Tree 37.7% Easy
91 Decode Ways 19.2% Medium
28 Implement strStr() 27.4% Easy
162 Find Peak Element 36.5% Medium
300 Longest Increasing Subsequence 37.7% Medium
124 Binary Tree Maximum Path Sum 25.4% Hard
125 Valid Palindrome 25.8% Easy
56 Merge Intervals 29.1% Medium
112 Path Sum 33.4% Easy
114 Flatten Binary Tree to Linked List 34.1% Medium
47 Permutations II 31.7% Medium
55 Jump Game 29.3% Medium
365 Water and Jug Problem 26.6% Medium
333 Largest BST Subtree 30.1% Medium
213 House Robber II 33.4% Medium
513 Find Bottom Left Tree Value 55.6% Medium
452 Minimum Number of Arrows to Burst Balloons 43.0% Medium