Skip to content

abhishekMuge/Leetcode_company_frequency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

List of Questions

The questions in the pdfs inside folder are sorted by frequency of appearance. For locked premium questions, please search the problems in lintcode website which are available for free.

This repo is a collection of coding problems from leetcode premium.

The PDFs have leetcode companies tagged. Those problems are good practice to be familar with company's mostly asked problems.

Leetcode Company Tag

The collection of each company's tagged questions on Leetcode.

Table of Company

-Google
-Facebook
-Microsoft
-Amazon
-Uber
-Bloomberg
-Linkedin

Google

#TitleAcceptance
1007Minimum Domino Rotations For Equal Row50.90%
929Unique Email Addresses68.20%
975Odd Even Jump44.60%
904Fruit Into Baskets41.90%
947Most Stones Removed with Same Row or Column54.90%
410Split Array Largest Sum43.40%
843Guess the Word45.30%
482License Key Formatting42.20%
1Two Sum44.80%
222Count Complete Tree Nodes39.00%
844Backspace String Compare46.80%
399Evaluate Division49.30%
753Cracking the Safe48.90%
489Robot Room Cleaner67.10%
777Swap Adjacent in LR String34.20%
809Expressive Words45.70%
939Minimum Area Rectangle51.70%
1057Campus Bikes58.30%
527Word Abbreviation52.10%
158Read N Characters Given Read4 II - Call multiple times29.40%
308Range Sum Query 2D - Mutable33.60%
913Cat and Mouse30.00%
299Bulls and Cows40.90%
837New 21 Game33.20%
253Meeting Rooms II44.10%
642Design Search Autocomplete System41.30%
833Find And Replace in String48.40%
731My Calendar II46.90%
359Logger Rate Limiter67.60%
315Count of Smaller Numbers After Self40.00%
1055Shortest Way to Form String57.40%
727Minimum Window Subsequence39.60%
67924 Game44.30%
465Optimal Account Balancing44.90%
1170Compare Strings by Frequency of the Smallest Character58.30%
163Missing Ranges23.60%
943Find the Shortest Superstring41.00%
247Strobogrammatic Number II45.90%
552Student Attendance Record II34.60%
818Race Car37.20%
900RLE Iterator51.90%
1096Brace Expansion II60.90%
205Isomorphic Strings38.60%
246Strobogrammatic Number43.50%
394Decode String47.20%
774Minimize Max Distance to Gas Station44.20%
770Basic Calculator IV46.30%
271Encode and Decode Strings29.00%
616Add Bold Tag in String40.50%
524Longest Word in Dictionary through Deleting47.20%
736Parse Lisp Expression45.70%
1011Capacity To Ship Packages Within D Days55.80%
659Split Array into Consecutive Subsequences42.30%
963Minimum Area Rectangle II48.10%
329Longest Increasing Path in a Matrix41.50%
849Maximize Distance to Closest Person41.80%
1088Confusing Number II39.40%
951Flip Equivalent Binary Trees65.20%
363Max Sum of Rectangle No Larger Than K35.90%
846Hand of Straights50.70%
801Minimum Swaps To Make Sequences Increasing36.90%
56Merge Intervals37.30%
981Time Based Key-Value Store51.90%
288Unique Word Abbreviation20.90%
857Minimum Cost to Hire K Workers48.80%
743Network Delay Time44.80%
788Rotated Digits55.80%
681Next Closest Time43.50%
734Sentence Similarity41.30%
354Russian Doll Envelopes34.70%
4Median of Two Sorted Arrays27.80%
200Number of Islands43.80%
1153String Transforms Into Another String33.80%
42Trapping Rain Water45.80%
803Bricks Falling When Hit29.50%
248Strobogrammatic Number III38.00%
1110Delete Nodes And Return Forest64.60%
767Reorganize String45.10%
2Add Two Numbers32.30%
57Insert Interval32.20%
528Random Pick with Weight43.30%
1066Campus Bikes II53.00%
702Search in a Sorted Array of Unknown Size62.80%
353Design Snake Game32.20%
471Encode String with Shortest Length45.90%
1032Stream of Characters45.50%
562Longest Line of Consecutive One in Matrix44.70%
729My Calendar I49.30%
686Repeated String Match31.90%
708Insert into a Sorted Circular Linked List31.10%
685Redundant Connection II31.70%
317Shortest Distance from All Buildings39.60%
855Exam Room40.50%
722Remove Comments32.50%
346Moving Average from Data Stream68.20%
640Solve the Equation41.00%
853Car Fleet41.50%
457Circular Array Loop28.20%
591Tag Validator33.40%
34Find First and Last Position of Element in Sorted Array34.60%
208Implement Trie (Prefix Tree)42.20%
497Random Point in Non-overlapping Rectangles36.90%
660Remove 953.00%
380Insert Delete GetRandom O(1)44.50%
850Rectangle Area II46.20%
124Binary Tree Maximum Path Sum31.70%
551Student Attendance Record I46.20%
737Sentence Similarity II44.60%
430Flatten a Multilevel Doubly Linked List46.20%
221Maximal Square34.70%
304Range Sum Query 2D - Immutable35.20%
792Number of Matching Subsequences45.70%
772Basic Calculator III41.00%
135Candy29.80%
360Sort Transformed Array47.50%
911Online Election48.70%
852Peak Index in a Mountain Array70.50%
31Next Permutation31.40%
146LRU Cache28.60%
889Construct Binary Tree from Preorder and Postorder Traversal62.90%
68Text Justification25.00%
1087Brace Expansion60.90%
76Minimum Window Substring32.60%
159Longest Substring with At Most Two Distinct Characters48.30%
157Read N Characters Given Read431.50%
941Valid Mountain Array35.30%
688Knight Probability in Chessboard46.40%
298Binary Tree Longest Consecutive Sequence45.40%
334Increasing Triplet Subsequence39.70%
280Wiggle Sort62.10%
340Longest Substring with At Most K Distinct Characters41.80%
3Longest Substring Without Repeating Characters29.20%
85Maximal Rectangle35.20%
742Closest Leaf in a Binary Tree41.40%
23Merge k Sorted Lists37.10%
1231Divide Chocolate50.60%
973K Closest Points to Origin61.40%
210Course Schedule II37.20%
710Random Pick with Blacklist32.40%
132Palindrome Partitioning II28.70%
55Jump Game32.90%
683K Empty Slots34.90%
484Find Permutation59.10%
982Triples with Bitwise AND Equal To Zero54.90%
1168Optimize Water Distribution in a Village57.80%
766Toeplitz Matrix62.90%
218The Skyline Problem32.90%
723Candy Crush66.00%
979Distribute Coins in Binary Tree68.00%
475Heaters32.50%
1145Binary Tree Coloring Game49.30%
379Design Phone Directory44.50%
835Image Overlap54.70%
332Reconstruct Itinerary33.30%
53Maximum Subarray45.10%
1074Number of Submatrices That Sum to Target59.60%
776Split BST53.70%
150Evaluate Reverse Polish Notation34.00%
187Repeated DNA Sequences37.30%
433Minimum Genetic Mutation39.70%
894All Possible Full Binary Trees72.40%
1219Path with Maximum Gold61.80%
684Redundant Connection54.40%
444Sequence Reconstruction21.10%
43Multiply Strings32.10%
149Max Points on a Line16.30%
799Champagne Tower34.80%
295Find Median from Data Stream39.90%
284Peeking Iterator42.50%
285Inorder Successor in BST37.20%
351Android Unlock Patterns47.10%
398Random Pick Index52.10%
817Linked List Components55.90%
302Smallest Rectangle Enclosing Black Pixels50.30%
920Number of Music Playlists44.80%
310Minimum Height Trees31.10%
375Guess Number Higher or Lower II39.00%
239Sliding Window Maximum40.10%
726Number of Atoms46.30%
155Min Stack39.80%
632Smallest Range Covering Elements from K Lists49.90%
771Jewels and Stones84.10%
739Daily Temperatures61.30%
44Wildcard Matching23.70%
358Rearrange String k Distance Apart33.90%
386Lexicographical Numbers48.60%
773Sliding Puzzle55.50%
224Basic Calculator34.70%
212Word Search II31.00%
480Sliding Window Median34.60%
1146Snapshot Array34.50%
87Scramble String32.50%
241Different Ways to Add Parentheses52.40%
568Maximum Vacation Days39.00%
895Maximum Frequency Stack58.80%
173Binary Search Tree Iterator51.80%
250Count Univalue Subtrees50.60%
558Quad Tree Intersection42.70%
924Minimize Malware Spread41.10%
1056Confusing Number50.70%
366Find Leaves of Binary Tree68.30%

Facebook

#TitleAcceptance
621Task Scheduler47.00%
56Merge Intervals37.30%
350Intersection of Two Arrays II49.70%
153Sum25.30%
10Regular Expression Matching25.90%
674Longest Continuous Increasing Subsequence45.10%
121Best Time to Buy and Sell Stock48.80%
314Binary Tree Vertical Order Traversal42.60%
69Sqrt(x)32.50%
257Binary Tree Paths48.10%
51N-Queens42.50%
42Trapping Rain Water45.80%
173Binary Search Tree Iterator51.80%
151Reverse Words in a String18.60%
43Multiply Strings32.10%
38Count and Say42.30%
273Integer to English Words25.40%
91Decode Ways23.20%
138Copy List with Random Pointer30.60%
283Move Zeroes55.70%
236Lowest Common Ancestor of a Binary Tree41.10%
253Meeting Rooms II44.10%
449Serialize and Deserialize BST49.60%
133Clone Graph30.00%
49Group Anagrams50.90%
31Next Permutation31.40%
339Nested List Weight Sum70.70%
29Divide Two Integers16.20%
114Flatten Binary Tree to Linked List45.20%
301Remove Invalid Parentheses41.00%
1Two Sum44.80%
98Validate Binary Search Tree26.70%
88Merge Sorted Array37.50%
242Valid Anagram54.30%
642Design Search Autocomplete System41.30%
139Word Break37.40%
560Subarray Sum Equals K43.20%
212Word Search II31.00%
297Serialize and Deserialize Binary Tree43.90%
102Binary Tree Level Order Traversal51.10%
325Maximum Size Subarray Sum Equals k45.80%
378Kth Smallest Element in a Sorted Matrix51.40%
348Design Tic-Tac-Toe51.80%
4Median of Two Sorted Arrays27.80%
278First Bad Version32.10%
76Minimum Window Substring32.60%
65Valid Number14.50%
32Longest Valid Parentheses26.80%
8String to Integer (atoi)14.90%
215Kth Largest Element in an Array51.00%
772Basic Calculator III41.00%
17Letter Combinations of a Phone Number43.90%
567Permutation in String39.60%
5Longest Palindromic Substring28.40%
636Exclusive Time of Functions50.20%
349Intersection of Two Arrays58.00%
295Find Median from Data Stream39.90%
13Roman to Integer53.80%
380Insert Delete GetRandom O(1)44.50%
277Find the Celebrity39.10%
282Expression Add Operators34.20%
122Best Time to Buy and Sell Stock II53.70%
341Flatten Nested List Iterator50.30%
285Inorder Successor in BST37.20%
44Wildcard Matching23.70%
20Valid Parentheses37.60%
270Closest Binary Search Tree Value45.40%
57Insert Interval32.20%
67Add Binary41.40%
680Valid Palindrome II35.40%
200Number of Islands43.80%
3Longest Substring Without Repeating Characters29.20%
146LRU Cache28.60%
158Read N Characters Given Read4 II - Call multiple times29.40%
125Valid Palindrome33.20%
157Read N Characters Given Read431.50%
127Word Ladder26.50%
211Add and Search Word - Data structure design32.90%
34Find First and Last Position of Element in Sorted Array34.60%
477Total Hamming Distance50.00%
111Minimum Depth of Binary Tree36.20%
23Merge k Sorted Lists37.10%
37Sudoku Solver39.70%
336Palindrome Pairs32.30%
249Group Shifted Strings50.60%
694Number of Distinct Islands53.20%
124Binary Tree Maximum Path Sum31.70%
543Diameter of Binary Tree47.80%
22Generate Parentheses58.30%
468Validate IP Address21.90%
105Construct Binary Tree from Preorder and Inorder Traversal44.40%
235Lowest Common Ancestor of a Binary Search Tree47.10%
206Reverse Linked List58.10%
438Find All Anagrams in a String39.40%
317Shortest Distance from All Buildings39.60%
9Palindrome Number45.70%
252Meeting Rooms53.40%
126Word Ladder II19.70%
304Range Sum Query 2D - Immutable35.20%
247Strobogrammatic Number II45.90%
209Minimum Size Subarray Sum36.00%
143Reorder List33.30%
399Evaluate Division49.30%
647Palindromic Substrings58.50%
11Container With Most Water47.80%
128Longest Consecutive Sequence43.20%
227Basic Calculator II35.20%
145Binary Tree Postorder Traversal51.20%
2Add Two Numbers32.30%
785Is Graph Bipartite?45.40%
50Pow(x, n)28.80%
825Friends Of Appropriate Ages40.30%
53Maximum Subarray45.10%
381Insert Delete GetRandom O(1) - Duplicates allowed33.00%
21Merge Two Sorted Lists50.10%
238Product of Array Except Self57.50%
387First Unique Character in a String51.00%
81Search in Rotated Sorted Array II32.80%
408Valid Word Abbreviation30.00%
688Knight Probability in Chessboard46.40%
494Target Sum46.00%
103Binary Tree Zigzag Level Order Traversal44.20%
239Sliding Window Maximum40.10%
162Find Peak Element42.20%
241Different Ways to Add Parentheses52.40%
437Path Sum III44.30%
94Binary Tree Inorder Traversal59.60%
113Path Sum II43.20%
110Balanced Binary Tree42.10%
75Sort Colors43.90%
129Sum Root to Leaf Numbers44.60%
46Permutations58.70%
445Add Two Numbers II52.00%
691Stickers to Spell Word40.50%
246Strobogrammatic Number43.50%
721Accounts Merge44.10%
28Implement strStr()33.30%
347Top K Frequent Elements57.60%
33Search in Rotated Sorted Array33.40%
286Walls and Gates51.40%
208Implement Trie (Prefix Tree)42.20%
78Subsets56.40%
14Longest Common Prefix34.40%
79Word Search33.00%
269Alien Dictionary33.30%
300Longest Increasing Subsequence41.70%
678Valid Parenthesis String33.50%
19Remove Nth Node From End of List34.60%
74Search a 2D Matrix35.50%
210Course Schedule II37.20%
230Kth Smallest Element in a BST54.50%
26Remove Duplicates from Sorted Array42.60%
224Basic Calculator34.70%
218The Skyline Problem32.90%
415Add Strings45.30%
689Maximum Sum of 3 Non-Overlapping Subarrays44.80%
73Set Matrix Zeroes41.40%
670Maximum Swap41.20%
39Combination Sum51.90%
140Word Break II28.90%
36Valid Sudoku45.70%
68Text Justification25.00%
112Path Sum39.20%
791Custom Sort String63.80%
311Sparse Matrix Multiplication58.40%
549Binary Tree Longest Consecutive Sequence II45.60%
496Next Greater Element I61.30%
47Permutations II43.20%
435Non-overlapping Intervals41.90%
498Diagonal Traverse46.40%
12Integer to Roman52.80%
505The Maze II45.80%
523Continuous Subarray Sum24.40%
7Reverse Integer25.60%
340Longest Substring with At Most K Distinct Characters41.80%
161One Edit Distance32.10%
159Longest Substring with At Most Two Distinct Characters48.30%
692Top K Frequent Words48.00%
207Course Schedule40.00%
463Island Perimeter62.20%
824Goat Latin59.80%
266Palindrome Permutation60.80%
398Random Pick Index52.10%
597Friend Requests I: Overall Acceptance Rate40.50%
443String Compression39.00%
844Backspace String Compare46.80%
490The Maze49.40%
393UTF-8 Validation36.60%
104Maximum Depth of Binary Tree63.00%
332Reconstruct Itinerary33.30%
24Swap Nodes in Pairs47.30%
199Binary Tree Right Side View50.50%
394Decode String47.20%
419Battleships in a Board67.20%
153Find Minimum in Rotated Sorted Array43.90%
426Convert Binary Search Tree to Sorted Doubly Linked List55.70%
489Robot Room Cleaner67.10%
767Reorganize String45.10%
298Binary Tree Longest Consecutive Sequence45.40%
308Range Sum Query 2D - Mutable33.60%

Microsoft

#TitleAcceptance
146LRU Cache28.60%
151Reverse Words in a String18.60%
103Binary Tree Zigzag Level Order Traversal44.20%
138Copy List with Random Pointer30.60%
165Compare Version Numbers25.30%
1Two Sum44.80%
54Spiral Matrix32.10%
42Trapping Rain Water45.80%
445Add Two Numbers II52.00%
5Longest Palindromic Substring28.40%
348Design Tic-Tac-Toe51.80%
428Serialize and Deserialize N-ary Tree56.40%
88Merge Sorted Array37.50%
200Number of Islands43.80%
794Valid Tic-Tac-Toe State31.60%
253Meeting Rooms II44.10%
53Maximum Subarray45.10%
443String Compression39.00%
22Generate Parentheses58.30%
402Remove K Digits27.20%
557Reverse Words in a String III66.40%
186Reverse Words in a String II40.30%
297Serialize and Deserialize Binary Tree43.90%
236Lowest Common Ancestor of a Binary Tree41.10%
240Search a 2D Matrix II42.00%
206Reverse Linked List58.10%
33Search in Rotated Sorted Array33.40%
2Add Two Numbers32.30%
105Construct Binary Tree from Preorder and Inorder Traversal44.40%
805Split Array With Same Average25.50%
285Inorder Successor in BST37.20%
23Merge k Sorted Lists37.10%
273Integer to English Words25.40%
44Wildcard Matching23.70%
535Encode and Decode TinyURL78.20%
21Merge Two Sorted Lists50.10%
218The Skyline Problem32.90%
10Regular Expression Matching25.90%
98Validate Binary Search Tree26.70%
8String to Integer (atoi)14.90%
25Reverse Nodes in k-Group38.70%
79Word Search33.00%
75Sort Colors43.90%
3Longest Substring Without Repeating Characters29.20%
67924 Game44.30%
232Implement Queue using Stacks45.90%
36Valid Sudoku45.70%
93Restore IP Addresses33.00%
20Valid Parentheses37.60%
470Implement Rand10() Using Rand7()45.50%
224Basic Calculator34.70%
155Min Stack39.80%
121Best Time to Buy and Sell Stock48.80%
706Design HashMap58.00%
688Knight Probability in Chessboard46.40%
269Alien Dictionary33.30%
17Letter Combinations of a Phone Number43.90%
48Rotate Image51.90%
295Find Median from Data Stream39.90%
72Edit Distance40.30%
114Flatten Binary Tree to Linked List45.20%
234Palindrome Linked List37.40%
322Coin Change32.60%
347Top K Frequent Elements57.60%
37Sudoku Solver39.70%
239Sliding Window Maximum40.10%
68Text Justification25.00%
13Roman to Integer53.80%
935Knight Dialer42.90%
362Design Hit Counter61.20%
612Shortest Distance in a Plane56.50%
238Product of Array Except Self57.50%
225Implement Stack using Queues41.70%
143Reorder List33.30%
450Delete Node in a BST41.10%
153Sum25.30%
4Median of Two Sorted Arrays27.80%
39Combination Sum51.90%
431Encode N-ary Tree to Binary Tree67.40%
407Trapping Rain Water II40.30%
134Gas Station35.70%
636Exclusive Time of Functions50.20%
528Random Pick with Weight43.30%
46Permutations58.70%
73Set Matrix Zeroes41.40%
30Substring with Concatenation of All Words24.40%
277Find the Celebrity39.10%
449Serialize and Deserialize BST49.60%
1185Day of the Week64.20%
836Rectangle Overlap47.80%
328Odd Even Linked List51.10%
31Next Permutation31.40%
94Binary Tree Inorder Traversal59.60%
333Largest BST Subtree34.30%
51N-Queens42.50%
99Recover Binary Search Tree36.50%
125Valid Palindrome33.20%
43Multiply Strings32.10%
419Battleships in a Board67.20%
74Search a 2D Matrix35.50%
102Binary Tree Level Order Traversal51.10%
346Moving Average from Data Stream68.20%
24Swap Nodes in Pairs47.30%
153Find Minimum in Rotated Sorted Array43.90%
516Longest Palindromic Subsequence49.40%
117Populating Next Right Pointers in Each Node II36.30%
227Basic Calculator II35.20%
917Reverse Only Letters56.60%
863All Nodes Distance K in Binary Tree51.10%
560Subarray Sum Equals K43.20%
210Course Schedule II37.20%
204Count Primes30.20%
286Walls and Gates51.40%
92Reverse Linked List II36.60%
354Russian Doll Envelopes34.70%
116Populating Next Right Pointers in Each Node40.40%
41First Missing Positive30.20%
768Max Chunks To Make Sorted II47.20%
287Find the Duplicate Number51.70%
160Intersection of Two Linked Lists36.60%
139Word Break37.40%
49Group Anagrams50.90%
344Reverse String64.80%
317Shortest Distance from All Buildings39.60%
127Word Ladder26.50%
242Valid Anagram54.30%
123Best Time to Buy and Sell Stock III35.40%
289Game of Life49.50%
642Design Search Autocomplete System41.30%
110Balanced Binary Tree42.10%
979Distribute Coins in Binary Tree68.00%
150Evaluate Reverse Polish Notation34.00%
141Linked List Cycle38.80%
969Pancake Sorting63.40%
632Smallest Range Covering Elements from K Lists49.90%
56Merge Intervals37.30%
162Find Peak Element42.20%
729My Calendar I49.30%
722Remove Comments32.50%
545Boundary of Binary Tree37.00%
76Minimum Window Substring32.60%
417Pacific Atlantic Water Flow38.80%
529Minesweeper55.60%
676Implement Magic Dictionary52.60%
958Check Completeness of a Binary Tree50.50%
168Excel Sheet Column Title29.90%
572Subtree of Another Tree43.00%
235Lowest Common Ancestor of a Binary Search Tree47.10%
510Inorder Successor in BST II55.80%
189Rotate Array32.20%
71Simplify Path30.30%
83Remove Duplicates from Sorted List43.80%
493Reverse Pairs24.00%
397Integer Replacement32.10%
212Word Search II31.00%
300Longest Increasing Subsequence41.70%
208Implement Trie (Prefix Tree)42.20%
173Binary Search Tree Iterator51.80%
142Linked List Cycle II34.30%
784Letter Case Permutation60.30%
721Accounts Merge44.10%
724Find Pivot Index42.30%
378Kth Smallest Element in a Sorted Matrix51.40%
416Partition Equal Subset Sum41.90%
540Single Element in a Sorted Array57.60%
316Remove Duplicate Letters33.80%
171Excel Sheet Column Number52.80%
61Rotate List28.40%
406Queue Reconstruction by Height61.70%
158Read N Characters Given Read4 II - Call multiple times29.40%
692Top K Frequent Words48.00%
380Insert Delete GetRandom O(1)44.50%
26Remove Duplicates from Sorted Array42.60%
28Implement strStr()33.30%
78Subsets56.40%
97Interleaving String29.50%
229Majority Element II33.60%
694Number of Distinct Islands53.20%
611Valid Triangle Number46.80%
383Ransom Note51.00%
647Palindromic Substrings58.50%
622Design Circular Queue41.40%
283Move Zeroes55.70%
490The Maze49.40%
575Distribute Candies60.30%
1239Maximum Length of a Concatenated String with Unique Characters41.90%
739Daily Temperatures61.30%
40Combination Sum II44.50%
426Convert Binary Search Tree to Sorted Doubly Linked List55.70%
135Candy29.80%
85Maximal Rectangle35.20%
415Add Strings45.30%
670Maximum Swap41.20%
215Kth Largest Element in an Array51.00%
468Validate IP Address21.90%
268Missing Number49.60%
518Coin Change 245.10%
214Shortest Palindrome28.50%
384Shuffle an Array51.30%
63Unique Paths II33.80%

Amazon

#TitleAcceptance
1Two Sum44.80%
146LRU Cache28.60%
200Number of Islands43.80%
937Reorder Data in Log Files53.90%
973K Closest Points to Origin61.40%
5Longest Palindromic Substring28.40%
138Copy List with Random Pointer30.60%
1192Critical Connections in a Network48.50%
819Most Common Word43.20%
20Valid Parentheses37.60%
42Trapping Rain Water45.80%
23Merge k Sorted Lists37.10%
2Add Two Numbers32.30%
297Serialize and Deserialize Binary Tree43.90%
127Word Ladder26.50%
295Find Median from Data Stream39.90%
21Merge Two Sorted Lists50.10%
103Binary Tree Zigzag Level Order Traversal44.20%
48Rotate Image51.90%
763Partition Labels73.00%
273Integer to English Words25.40%
236Lowest Common Ancestor of a Binary Tree41.10%
121Best Time to Buy and Sell Stock48.80%
126Word Ladder II19.70%
17Letter Combinations of a Phone Number43.90%
140Word Break II28.90%
3Longest Substring Without Repeating Characters29.20%
675Cut Off Trees for Golf Event32.90%
165Compare Version Numbers25.30%
572Subtree of Another Tree43.00%
4Median of Two Sorted Arrays27.80%
155Min Stack39.80%
239Sliding Window Maximum40.10%
212Word Search II31.00%
139Word Break37.40%
240Search a 2D Matrix II42.00%
269Alien Dictionary33.30%
957Prison Cells After N Days38.40%
238Product of Array Except Self57.50%
12Integer to Roman52.80%
588Design In-Memory File System42.40%
33Search in Rotated Sorted Array33.40%
253Meeting Rooms II44.10%
347Top K Frequent Elements57.60%
153Sum25.30%
348Design Tic-Tac-Toe51.80%
56Merge Intervals37.30%
206Reverse Linked List58.10%
642Design Search Autocomplete System41.30%
49Group Anagrams50.90%
53Maximum Subarray45.10%
45Jump Game II29.20%
79Word Search33.00%
76Minimum Window Substring32.60%
387First Unique Character in a String51.00%
438Find All Anagrams in a String39.40%
472Concatenated Words38.70%
54Spiral Matrix32.10%
98Validate Binary Search Tree26.70%
124Binary Tree Maximum Path Sum31.70%
11Container With Most Water47.80%
460LFU Cache31.30%
207Course Schedule40.00%
380Insert Delete GetRandom O(1)44.50%
215Kth Largest Element in an Array51.00%
235Lowest Common Ancestor of a Binary Search Tree47.10%
341Flatten Nested List Iterator50.30%
105Construct Binary Tree from Preorder and Inorder Traversal44.40%
314Binary Tree Vertical Order Traversal42.60%
102Binary Tree Level Order Traversal51.10%
13Roman to Integer53.80%
909Snakes and Ladders36.50%
116Populating Next Right Pointers in Each Node40.40%
208Implement Trie (Prefix Tree)42.20%
505The Maze II45.80%
117Populating Next Right Pointers in Each Node II36.30%
218The Skyline Problem32.90%
545Boundary of Binary Tree37.00%
149Max Points on a Line16.30%
210Course Schedule II37.20%
25Reverse Nodes in k-Group38.70%
322Coin Change32.60%
50Pow(x, n)28.80%
84Largest Rectangle in Histogram32.80%
490The Maze49.40%
277Find the Celebrity39.10%
93Restore IP Addresses33.00%
695Max Area of Island59.60%
692Top K Frequent Words48.00%
733Flood Fill52.40%
994Rotting Oranges46.40%
362Design Hit Counter61.20%
224Basic Calculator34.70%
22Generate Parentheses58.30%
281Zigzag Iterator57.10%
234Palindrome Linked List37.40%
8String to Integer (atoi)14.90%
289Game of Life49.50%
711Number of Distinct Islands II48.00%
449Serialize and Deserialize BST49.60%
62Unique Paths50.20%
133Clone Graph30.00%
78Subsets56.40%
1000Minimum Cost to Merge Stones37.00%
101Symmetric Tree45.00%
160Intersection of Two Linked Lists36.60%
694Number of Distinct Islands53.20%
55Jump Game32.90%
863All Nodes Distance K in Binary Tree51.10%
284Peeking Iterator42.50%
417Pacific Atlantic Water Flow38.80%
384Shuffle an Array51.30%
543Diameter of Binary Tree47.80%
72Edit Distance40.30%
535Encode and Decode TinyURL78.20%
167Two Sum II - Input array is sorted51.90%
99Recover Binary Search Tree36.50%
682Baseball Game61.90%
134Gas Station35.70%
153Find Minimum in Rotated Sorted Array43.90%
91Decode Ways23.20%
151Reverse Words in a String18.60%
88Merge Sorted Array37.50%
74Search a 2D Matrix35.50%
228Summary Ranges37.40%
445Add Two Numbers II52.00%
173Binary Search Tree Iterator51.80%
141Linked List Cycle38.80%
31Next Permutation31.40%
150Evaluate Reverse Polish Notation34.00%
199Binary Tree Right Side View50.50%
122Best Time to Buy and Sell Stock II53.70%
631Design Excel Sum Formula30.30%
64Minimum Path Sum49.60%
653Two Sum IV - Input is a BST53.80%
221Maximal Square34.70%
96Unique Binary Search Trees48.70%
252Meeting Rooms53.40%
32Longest Valid Parentheses26.80%
10Regular Expression Matching25.90%
123Best Time to Buy and Sell Stock III35.40%
317Shortest Distance from All Buildings39.60%
227Basic Calculator II35.20%
71Simplify Path30.30%
983Minimum Cost For Tickets57.90%
70Climbing Stairs45.60%
703Kth Largest Element in a Stream47.50%
285Inorder Successor in BST37.20%
143Reorder List33.30%
270Closest Binary Search Tree Value45.40%
59Spiral Matrix II50.00%
261Graph Valid Tree40.80%
135Candy29.80%
120Triangle41.50%
179Largest Number26.90%
336Palindrome Pairs32.30%
560Subarray Sum Equals K43.20%
57Insert Interval32.20%
323Number of Connected Components in an Undirected Graph53.40%
169Majority Element54.90%
373Find K Pairs with Smallest Sums34.90%
185Department Top Three Salaries29.70%
340Longest Substring with At Most K Distinct Characters41.80%
895Maximum Frequency Stack58.80%
152Maximum Product Subarray30.40%
394Decode String47.20%
24Swap Nodes in Pairs47.30%
232Implement Queue using Stacks45.90%
268Missing Number49.60%
866Prime Palindrome21.80%
315Count of Smaller Numbers After Self40.00%
759Employee Free Time63.40%
113Path Sum II43.20%
346Moving Average from Data Stream68.20%
353Design Snake Game32.20%
652Find Duplicate Subtrees47.80%
46Permutations58.70%
39Combination Sum51.90%
538Convert BST to Greater Tree52.90%
106Construct Binary Tree from Inorder and Postorder Traversal42.00%
300Longest Increasing Subsequence41.70%
75Sort Colors43.90%
36Valid Sudoku45.70%
787Cheapest Flights Within K Stops36.70%
68Text Justification25.00%
529Minesweeper55.60%
136Single Number62.10%
28Implement strStr()33.30%
188Best Time to Buy and Sell Stock IV27.10%
97Interleaving String29.50%
73Set Matrix Zeroes41.40%
772Basic Calculator III41.00%
678Valid Parenthesis String33.50%
286Walls and Gates51.40%
92Reverse Linked List II36.60%
333Largest BST Subtree34.30%
503Next Greater Element II52.90%
516Longest Palindromic Subsequence49.40%
564Find the Closest Palindrome19.20%

Uber

#TitleAcceptance
427Construct Quad Tree59.30%
529Minesweeper55.60%
332Reconstruct Itinerary33.30%
741Cherry Pickup32.50%
668Kth Smallest Number in Multiplication Table43.70%
773Sliding Puzzle55.50%
986Interval List Intersections64.60%
291Word Pattern II42.30%
227Basic Calculator II35.20%
267Palindrome Permutation II34.80%
465Optimal Account Balancing44.90%
655Print Binary Tree53.00%
528Random Pick with Weight43.30%
166Fraction to Recurring Decimal20.40%
365Water and Jug Problem29.70%
567Permutation in String39.60%
977Squares of a Sorted Array71.90%
253Meeting Rooms II44.10%
855Exam Room40.50%
224Basic Calculator34.70%
36Valid Sudoku45.70%
301Remove Invalid Parentheses41.00%
317Shortest Distance from All Buildings39.60%
837New 21 Game33.20%
361Bomb Enemy44.60%
34Find First and Last Position of Element in Sorted Array34.60%
863All Nodes Distance K in Binary Tree51.10%
772Basic Calculator III41.00%
221Maximal Square34.70%
56Merge Intervals37.30%
32Longest Valid Parentheses26.80%
340Longest Substring with At Most K Distinct Characters41.80%
297Serialize and Deserialize Binary Tree43.90%
780Reaching Points28.40%
76Minimum Window Substring32.60%
486Predict the Winner47.20%
740Delete and Earn47.40%
146LRU Cache28.60%
305Number of Islands II40.80%
128Longest Consecutive Sequence43.20%
759Employee Free Time63.40%
359Logger Rate Limiter67.60%
210Course Schedule II37.20%
262Trips and Users27.90%
49Group Anagrams50.90%
207Course Schedule40.00%
671Second Minimum Node In a Binary Tree43.10%
20Valid Parentheses37.60%
658Find K Closest Elements39.20%
200Number of Islands43.80%
341Flatten Nested List Iterator50.30%
68Text Justification25.00%
286Walls and Gates51.40%
218The Skyline Problem32.90%
140Word Break II28.90%
118Pascal's Triangle48.90%
1091Shortest Path in Binary Matrix36.50%
3Longest Substring Without Repeating Characters29.20%
4Median of Two Sorted Arrays27.80%
791Custom Sort String63.80%
127Word Ladder26.50%
212Word Search II31.00%
149Max Points on a Line16.30%
295Find Median from Data Stream39.90%
399Evaluate Division49.30%
79Word Search33.00%
449Serialize and Deserialize BST49.60%
173Binary Search Tree Iterator51.80%
347Top K Frequent Elements57.60%
239Sliding Window Maximum40.10%
162Find Peak Element42.20%
1Two Sum44.80%
346Moving Average from Data Stream68.20%
85Maximal Rectangle35.20%
380Insert Delete GetRandom O(1)44.50%
131Palindrome Partitioning43.60%
518Coin Change 245.10%
706Design HashMap58.00%
17Letter Combinations of a Phone Number43.90%
10Regular Expression Matching25.90%
348Design Tic-Tac-Toe51.80%
42Trapping Rain Water45.80%
130Surrounded Regions24.60%
121Best Time to Buy and Sell Stock48.80%
31Next Permutation31.40%
230Kth Smallest Element in a BST54.50%
547Friend Circles56.00%
269Alien Dictionary33.30%
279Perfect Squares43.50%
560Subarray Sum Equals K43.20%
62Unique Paths50.20%
91Decode Ways23.20%
739Daily Temperatures61.30%
40Combination Sum II44.50%
198House Robber41.50%
122Best Time to Buy and Sell Stock II53.70%
45Jump Game II29.20%
23Merge k Sorted Lists37.10%
101Symmetric Tree45.00%
692Top K Frequent Words48.00%
54Spiral Matrix32.10%
152Maximum Product Subarray30.40%
55Jump Game32.90%
2Add Two Numbers32.30%
24Swap Nodes in Pairs47.30%
5Longest Palindromic Substring28.40%
973K Closest Points to Origin61.40%
22Generate Parentheses58.30%
139Word Break37.40%
283Move Zeroes55.70%
344Reverse String64.80%
70Climbing Stairs45.60%
26Remove Duplicates from Sorted Array42.60%
21Merge Two Sorted Lists50.10%

Bloomberg

#TitleAcceptance
430Flatten a Multilevel Doubly Linked List46.20%
723Candy Crush66.00%
1169Invalid Transactions28.80%
394Decode String47.20%
1029Two City Scheduling55.20%
146LRU Cache28.60%
797All Paths From Source to Target72.50%
390Elimination Game44.00%
33Search in Rotated Sorted Array33.40%
200Number of Islands43.80%
611Valid Triangle Number46.80%
116Populating Next Right Pointers in Each Node40.40%
253Meeting Rooms II44.10%
380Insert Delete GetRandom O(1)44.50%
1223Dice Roll Simulation42.40%
399Evaluate Division49.30%
2Add Two Numbers32.30%
582Kill Process58.10%
451Sort Characters By Frequency57.90%
117Populating Next Right Pointers in Each Node II36.30%
387First Unique Character in a String51.00%
1105Filling Bookcase Shelves57.00%
1Two Sum44.80%
328Odd Even Linked List51.10%
1047Remove All Adjacent Duplicates In String65.50%
978Longest Turbulent Subarray46.00%
139Word Break37.40%
155Min Stack39.80%
1060Missing Element in Sorted Array52.90%
445Add Two Numbers II52.00%
269Alien Dictionary33.30%
727Minimum Window Subsequence39.60%
1209Remove All Adjacent Duplicates in String II56.50%
987Vertical Order Traversal of a Binary Tree33.60%
173Binary Search Tree Iterator51.80%
250Count Univalue Subtrees50.60%
652Find Duplicate Subtrees47.80%
98Validate Binary Search Tree26.70%
79Word Search33.00%
283Move Zeroes55.70%
662Maximum Width of Binary Tree39.60%
153Sum25.30%
12Integer to Roman52.80%
138Copy List with Random Pointer30.60%
199Binary Tree Right Side View50.50%
22Generate Parentheses58.30%
140Word Break II28.90%
3Longest Substring Without Repeating Characters29.20%
716Max Stack41.50%
993Cousins in Binary Tree51.90%
532K-diff Pairs in an Array30.60%
103Binary Tree Zigzag Level Order Traversal44.20%
295Find Median from Data Stream39.90%
97Interleaving String29.50%
114Flatten Binary Tree to Linked List45.20%
162Find Peak Element42.20%
46Permutations58.70%
692Top K Frequent Words48.00%
242Valid Anagram54.30%
88Merge Sorted Array37.50%
252Meeting Rooms53.40%
503Next Greater Element II52.90%
10Regular Expression Matching25.90%
1114Print in Order60.90%
81Search in Rotated Sorted Array II32.80%
8String to Integer (atoi)14.90%
42Trapping Rain Water45.80%
23Merge k Sorted Lists37.10%
301Remove Invalid Parentheses41.00%
31Next Permutation31.40%
332Reconstruct Itinerary33.30%
44Wildcard Matching23.70%
160Intersection of Two Linked Lists36.60%
21Merge Two Sorted Lists50.10%
437Path Sum III44.30%
695Max Area of Island59.60%
5Longest Palindromic Substring28.40%
72Edit Distance40.30%
232Implement Queue using Stacks45.90%
128Longest Consecutive Sequence43.20%
96Unique Binary Search Trees48.70%
102Binary Tree Level Order Traversal51.10%
41First Missing Positive30.20%
163Sum Closest45.70%
105Construct Binary Tree from Preorder and Inorder Traversal44.40%
9Palindrome Number45.70%
50Pow(x, n)28.80%
39Combination Sum51.90%
75Sort Colors43.90%
76Minimum Window Substring32.60%
69Sqrt(x)32.50%
127Word Ladder26.50%
202Happy Number47.50%
543Diameter of Binary Tree47.80%
78Subsets56.40%
124Binary Tree Maximum Path Sum31.70%
560Subarray Sum Equals K43.20%
236Lowest Common Ancestor of a Binary Tree41.10%
20Valid Parentheses37.60%
322Coin Change32.60%
198House Robber41.50%
17Letter Combinations of a Phone Number43.90%
125Valid Palindrome33.20%
28Implement strStr()33.30%
56Merge Intervals37.30%
49Group Anagrams50.90%
136Single Number62.10%
344Reverse String64.80%
70Climbing Stairs45.60%
104Maximum Depth of Binary Tree63.00%
121Best Time to Buy and Sell Stock48.80%
53Maximum Subarray45.10%

Linkedin

#TitleAcceptance
364Nested List Weight Sum II60.20%
244Shortest Word Distance II50.10%
432All O'one Data Structure30.90%
272Closest Binary Search Tree Value II47.70%
716Max Stack41.50%
366Find Leaves of Binary Tree68.30%
605Can Place Flowers31.50%
170Two Sum III - Data structure design32.10%
150Evaluate Reverse Polish Notation34.00%
243Shortest Word Distance59.10%
256Paint House50.60%
156Binary Tree Upside Down53.10%
254Factor Combinations45.50%
339Nested List Weight Sum70.70%
373Find K Pairs with Smallest Sums34.90%
76Minimum Window Substring32.60%
671Second Minimum Node In a Binary Tree43.10%
265Paint House II43.00%
235Lowest Common Ancestor of a Binary Search Tree47.10%
53Maximum Subarray45.10%
636Exclusive Time of Functions50.20%
72Edit Distance40.30%
297Serialize and Deserialize Binary Tree43.90%
698Partition to K Equal Sum Subsets44.10%
152Maximum Product Subarray30.40%
611Valid Triangle Number46.80%
273Integer to English Words25.40%
149Max Points on a Line16.30%
57Insert Interval32.20%
65Valid Number14.50%
277Find the Celebrity39.10%
730Count Different Palindromic Subsequences40.30%
50Pow(x, n)28.80%
68Text Justification25.00%
380Insert Delete GetRandom O(1)44.50%
715Range Module37.10%
464Can I Win28.20%
261Graph Valid Tree40.80%
655Print Binary Tree53.00%
200Number of Islands43.80%
127Word Ladder26.50%
205Isomorphic Strings38.60%
516Longest Palindromic Subsequence49.40%
215Kth Largest Element in an Array51.00%
236Lowest Common Ancestor of a Binary Tree41.10%
1028Recover a Tree From Preorder Traversal69.30%
47Permutations II43.20%
744Find Smallest Letter Greater Than Target44.60%
56Merge Intervals37.30%
33Search in Rotated Sorted Array33.40%
367Valid Perfect Square40.60%
706Design HashMap58.00%
1117Building H2O48.90%
126Word Ladder II19.70%
46Permutations58.70%
460LFU Cache31.30%
1148Article Views I72.50%
341Flatten Nested List Iterator50.30%
528Random Pick with Weight43.30%
69Sqrt(x)32.50%
449Serialize and Deserialize BST49.60%
104Maximum Depth of Binary Tree63.00%
739Daily Temperatures61.30%
187Repeated DNA Sequences37.30%
1Two Sum44.80%
20Valid Parentheses37.60%
34Find First and Last Position of Element in Sorted Array34.60%
61Rotate List28.40%
362Design Hit Counter61.20%
88Merge Sorted Array37.50%
349Intersection of Two Arrays58.00%
721Accounts Merge44.10%
987Vertical Order Traversal of a Binary Tree33.60%
12Integer to Roman52.80%
8String to Integer (atoi)14.90%
412Fizz Buzz60.50%
102Binary Tree Level Order Traversal51.10%
785Is Graph Bipartite?45.40%
39Combination Sum51.90%
40Combination Sum II44.50%
113Path Sum II43.20%
173Binary Search Tree Iterator51.80%
142Linked List Cycle II34.30%
146LRU Cache28.60%
13Roman to Integer53.80%
54Spiral Matrix32.10%
350Intersection of Two Arrays II49.70%
103Binary Tree Zigzag Level Order Traversal44.20%
973K Closest Points to Origin61.40%
198House Robber41.50%
125Valid Palindrome33.20%
141Linked List Cycle38.80%
23Merge k Sorted Lists37.10%

About

Collection of leetcode company tag problems. Periodically updating.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published