A list of LeetCode questions with the corresponding companies sorted by difficulty level.
ID | Name | Difficulty.Level | Companies | Status |
---|---|---|---|---|
717 | 1-bit and 2-bit Characters | Easy | âś… | |
67 | Add Binary | Easy | Adobe, Amazon, Facebook, Google, Microsoft | âś… |
258 | Add Digits | Easy | Adobe, Apple | |
415 | Add Strings | Easy | Apple, Facebook, Google, Microsoft | |
637 | Average of Levels in Binary Tree | Easy | Amazon, Facebook | |
844 | Backspace String Compare | Easy | ||
110 | Balanced Binary Tree | Easy | Amazon, Google | |
682 | Baseball Game | Easy | Amazon | |
121 | Best Time to Buy and Sell Stock | Easy | ||
122 | Best Time to Buy and Sell Stock II | Easy | Alibaba | |
595 | Big Countries | Easy | Adobe, Amazon, Google | |
704 | Binary Search | Easy | ||
107 | Binary Tree Level Order Traversal II | Easy | Microsoft | |
257 | Binary Tree Paths | Easy | Amazon, Facebook, Microsoft | |
859 | Buddy Strings | Easy | ||
70 | Climbing Stairs | Easy | Adobe, Alibaba, Amazon, Apple, Facebook, Microsoft | |
270 | Closest Binary Search Tree Value | Easy | ||
175 | Combine Two Tables | Easy | Adobe, Amazon, Apple, Facebook, Google | |
427 | Construct Quad Tree | Easy | Apple | |
217 | Contains Duplicate | Easy | Amazon | |
219 | Contains Duplicate II | Easy | Adobe, Google | |
405 | Convert a Number to Hexadecimal | Easy | ||
538 | Convert BST to Greater Tree | Easy | Amazon | |
108 | Convert Sorted Array to Binary Search Tree | Easy | Adobe, Apple | |
38 | Count and Say | Easy | Adobe, Amazon, Google, Microsoft | |
696 | Count Binary Substrings | Easy | Adobe | |
204 | Count Primes | Easy | Adobe, Amazon, Apple, Google, Microsoft | |
183 | Customers Who Never Order | Easy | Amazon | |
237 | Delete Node in a Linked List | Easy | Apple | |
706 | Design HashMap | Easy | Adobe, Amazon, Apple, Microsoft | |
707 | Design Linked List | Easy | Amazon | |
543 | Diameter of Binary Tree | Easy | Adobe | |
690 | Employee Importance | Easy | ||
181 | Employees Earning More Than Their Managers | Easy | Amazon, Facebook | |
171 | Excel Sheet Column Number | Easy | Akuna Capital | |
168 | Excel Sheet Column Title | Easy | Akuna Capital | |
172 | Factorial Trailing Zeroes | Easy | Adobe, Microsoft | |
509 | Fibonacci Number | Easy | Adobe, Amazon, Microsoft | |
438 | Find All Anagrams in a String | Easy | Amazon, Facebook, Google | |
448 | Find All Numbers Disappeared in an Array | Easy | Apple | |
760 | Find Anagram Mappings | Easy | ||
724 | Find Pivot Index | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
997 | Find the Town Judge | Easy | Amazon | |
278 | First Bad Version | Easy | Facebook, Google | |
387 | First Unique Character in a String | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
412 | Fizz Buzz | Easy | Apple | |
832 | Flipping an Image | Easy | ||
733 | Flood Fill | Easy | Amazon, Google | |
597 | Friend Requests I: Overall Acceptance Rate | Easy | ||
824 | Goat Latin | Easy | ||
374 | Google - LeetCodeGuess Number Higher or Lower | Easy | ||
933 | Google - LeetCodeNumber of Recent Calls | Easy | ||
572 | Google - LeetCodeSubtree of Another Tree | Easy | ||
202 | Happy Number | Easy | Amazon, Apple, Facebook | |
475 | Heaters | Easy | ||
198 | House Robber | Easy | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
661 | Image Smoother | Easy | Apple | |
232 | Implement Queue using Stacks | Easy | Apple, Microsoft | |
225 | Implement Stack using Queues | Easy | Microsoft | |
28 | Implement strStr | Easy | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
897 | Increasing Order Search Tree | Easy | ||
349 | Intersection of Two Arrays | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
350 | Intersection of Two Arrays II | Easy | Amazon | |
160 | Intersection of Two Linked Lists | Easy | Amazon | |
226 | Invert Binary Tree | Easy | Adobe, Amazon, Facebook | |
751 | IP to CIDR | Easy | Airbnb | |
463 | Island Perimeter | Easy | Amazon, Apple, Facebook, Google | |
205 | Isomorphic Strings | Easy | Amazon, Google | |
771 | Jewels and Stones | Easy | Adobe, Alibaba, Amazon, Apple, Google | |
532 | K-diff Pairs in an Array | Easy | Amazon | |
703 | Kth Largest Element in a Stream | Easy | Amazon, Facebook, Google | |
872 | Leaf-Similar Trees | Easy | Facebook, Google | |
860 | Lemonade Change | Easy | Amazon | |
58 | Length of Last Word | Easy | Adobe | |
784 | Letter Case Permutation | Easy | Microsoft | |
482 | License Key Formatting | Easy | Amazon, Google | |
141 | Linked List Cycle | Easy | Adobe, Akuna Capital, Alibaba, Amazon, Apple, Facebook, Google, Microsoft | |
359 | Logger Rate Limiter | Easy | Facebook, Google | |
14 | Longest Common Prefix | Easy | Adobe, Apple, Google, Microsoft | |
674 | Longest Continuous Increasing Subsequence | Easy | ||
409 | Longest Palindrome | Easy | Amazon | |
687 | Longest Univalue Path | Easy | Amazon | |
720 | Longest Word in Dictionary | Easy | Amazon, Google | |
235 | Lowest Common Ancestor of a Binary Search Tree | Easy | Adobe | |
840 | Magic Squares In Grid | Easy | ||
169 | Majority Element | Easy | Adobe, Amazon, Apple, Google, Microsoft | |
485 | Max Consecutive Ones | Easy | Amazon | |
716 | Max Stack | Easy | ||
849 | Maximize Distance to Closest Person | Easy | ||
104 | Maximum Depth of Binary Tree | Easy | Apple, Facebook, Google | |
559 | Maximum Depth of N-ary Tree | Easy | Amazon, Google | |
628 | Maximum Product of Three Numbers | Easy | Amazon, Facebook | |
53 | Maximum Subarray | Easy | Adobe, Alibaba, Amazon, Apple, Facebook, Microsoft | |
252 | Meeting Rooms | Easy | Amazon, Facebook | |
88 | Merge Sorted Array | Easy | Adobe, Amazon, Facebook, Microsoft | |
617 | Merge Two Binary Trees | Easy | Amazon | |
21 | Merge Two Sorted Lists | Easy | Airbnb, Alibaba | |
746 | Min Cost Climbing Stairs | Easy | Amazon | |
155 | Min Stack | Easy | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
111 | Minimum Depth of Binary Tree | Easy | Adobe, Amazon, Microsoft | |
783 | Minimum Distance Between BST Nodes | Easy | Amazon | |
599 | Minimum Index Sum of Two Lists | Easy | Amazon | |
268 | Missing Number | Easy | Adobe, Amazon, Apple | |
896 | Monotonic Array | Easy | ||
819 | Most Common Word | Easy | Amazon, Google, Microsoft | |
283 | Move Zeroes | Easy | Adobe, Apple, Facebook, Google, Microsoft | |
346 | Moving Average from Data Stream | Easy | ||
429 | N-ary Tree Level Order Traversal | Easy | ||
339 | Nested List Weight Sum | Easy | Amazon | |
496 | Next Greater Element I | Easy | Amazon, Google | |
665 | Non-decreasing Array | Easy | ||
400 | Nth Digit | Easy | Adobe, Google | |
476 | Number Complement | Easy | ||
191 | Number of 1 Bits | Easy | Amazon, Apple, Google, Microsoft | |
447 | Number of Boomerangs | Easy | Amazon, Google | |
806 | Number of Lines To Write String | Easy | ||
1013 | Pairs of Songs With Total Durations Divisible by 60 | Easy | Amazon | |
234 | Palindrome Linked List | Easy | Amazon, Google | |
9 | Palindrome Number | Easy | Adobe, Alibaba, Amazon, Apple, Facebook, Google, Microsoft | |
266 | Palindrome Permutation | Easy | Amazon, Facebook, Google, Microsoft | |
118 | Pascal's Triangle | Easy | Amazon, Facebook, Google, Microsoft | |
119 | Pascal's Triangle II | Easy | Adobe, Amazon, Google | |
112 | Path Sum | Easy | Amazon | |
437 | Path Sum III | Easy | Amazon, Facebook | |
852 | Peak Index in a Mountain Array | Easy | Amazon, Google | |
507 | Perfect Number | Easy | Amazon | |
66 | Plus One | Easy | Amazon, Facebook, Google, Microsoft | |
830 | Positions of Large Groups | Easy | Adobe, Google | |
326 | Power of Three | Easy | Apple | |
231 | Power of Two | Easy | Amazon | |
157 | Read N Characters Given Read4 | Easy | Facebook, Google | |
836 | Rectangle Overlap | Easy | Adobe, Amazon, Microsoft | |
26 | Remove Duplicates from Sorted Array | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
83 | Remove Duplicates from Sorted List | Easy | Apple, Google | |
27 | Remove Element | Easy | Amazon, Google | |
203 | Remove Linked List Elements | Easy | Adobe, Amazon, Microsoft | |
937 | Reorder Log Files | Easy | Amazon | |
686 | Repeated String Match | Easy | Facebook, Google | |
190 | Reverse Bits | Easy | Amazon, Apple | |
7 | Reverse Integer | Easy | Adobe, Alibaba, Amazon, Facebook, Google, Microsoft | |
206 | Reverse Linked List | Easy | Adobe, Alibaba, Facebook, Google, Microsoft | |
917 | Reverse Only Letters | Easy | Microsoft | |
344 | Reverse String | Easy | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
541 | Reverse String II | Easy | Microsoft | |
557 | Reverse Words in a String III | Easy | Apple, Microsoft | |
657 | Robot Return to Origin | Easy | Adobe, Amazon | |
13 | Roman to Integer | Easy | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
189 | Rotate Array | Easy | Amazon | |
796 | Rotate String | Easy | Amazon | |
788 | Rotated Digits | Easy | ||
100 | Same Tree | Easy | Amazon, Apple, Facebook, Google | |
700 | Search in a Binary Search Tree | Easy | ||
35 | Search Insert Position | Easy | Adobe | |
176 | Second Highest Salary | Easy | Adobe, Apple | |
671 | Second Minimum Node In a Binary Tree | Easy | Microsoft | |
734 | Sentence Similarity | Easy | ||
821 | Shortest Distance to a Character | Easy | ||
243 | Shortest Word Distance | Easy | Amazon, Google | |
800 | Similar RGB Color | Easy | ||
136 | Single Number | Easy | Amazon | |
905 | Sort Array By Parity | Easy | Adobe, Amazon, Google, Microsoft | |
69 | Sqrt(x) | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
977 | Squares of a Sorted Array | Easy | Adobe | |
443 | String Compression | Easy | Amazon | |
246 | Strobogrammatic Number | Easy | Facebook, Google | |
811 | Subdomain Visit Count | Easy | ||
404 | Sum of Left Leaves | Easy | Amazon | |
1022 | Sum of Root To Leaf Binary Numbers | Easy | Amazon | |
371 | Sum of Two Integers | Easy | Facebook, Microsoft | |
101 | Symmetric Tree | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
195 | Tenth Line | Easy | Adobe, Apple, Google | |
414 | Third Maximum Number | Easy | Facebook, Google, Microsoft | |
709 | To Lower Case | Easy | Adobe, Amazon, Apple | |
766 | Toeplitz Matrix | Easy | Facebook, Google | |
669 | Trim a Binary Search Tree | Easy | Amazon | |
1 | Two Sum | Easy | Adobe, Aetion, Affirm, Airbnb, Alibaba, Amazon, Apple, Facebook, Google, Microsoft | |
167 | Two Sum II - Input array is sorted | Easy | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
170 | Two Sum III - Data structure design | Easy | ||
653 | Two Sum IV - Input is a BST | Easy | ||
263 | Ugly Number | Easy | Adobe | |
929 | Unique Email Addresses | Easy | Adobe, Amazon, Apple, Google, Microsoft | |
804 | Unique Morse Code Words | Easy | Apple | |
242 | Valid Anagram | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
941 | Valid Mountain Array | Easy | ||
125 | Valid Palindrome | Easy | Amazon, Apple, Facebook, Google, Microsoft | |
680 | Valid Palindrome II | Easy | ||
20 | Valid Parentheses | Easy | Adobe, Akuna Capital, Amazon, Apple, Facebook, Google, Microsoft | |
193 | Valid Phone Numbers | Easy | Adobe | |
953 | Verifying an Alien Dictionary | Easy | ||
290 | Word Pattern | Easy | Google, Microsoft | |
914 | X of a Kind in a Deck of Cards | Easy | ||
542 | 01 Matrix | Medium | ||
15 | 3Sum | Medium | Adobe, Akuna Capital, Amazon, Apple, Google, Microsoft, Alibaba | |
16 | 3Sum Closest | Medium | Amazon, Apple, Google, Microsoft | |
259 | 3Sum Smaller | Medium | ||
18 | 4Sum | Medium | Adobe, Amazon, Apple, Facebook | |
454 | 4Sum II | Medium | Amazon | |
721 | Accounts Merge | Medium | Facebook, Google | |
211 | Add and Search Word - Data structure design | Medium | ||
616 | Add Bold Tag in String | Medium | ||
2 | Add Two Numbers | Medium | Adobe, Aetion, Airbnb, Alibaba, Amazon, Apple, Facebook, Google | |
445 | Add Two Numbers II | Medium | Facebook, Amazon | |
863 | All Nodes Distance K in Binary Tree | Medium | Amazon, Google, Microsoft | |
797 | All Paths From Source to Target | Medium | Amazon | |
894 | All Possible Full Binary Trees | Medium | ||
351 | Android Unlock Patterns | Medium | ||
227 | Basic Calculator II | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
419 | Battleships in a Board | Medium | Facebook, Google, Microsoft | |
714 | Best Time to Buy and Sell Stock with Transaction Fee | Medium | ||
173 | Binary Search Tree Iterator | Medium | ||
94 | Binary Tree Inorder Traversal | Medium | Adobe, Google, Microsoft | |
102 | Binary Tree Level Order Traversal | Medium | Apple, Google | |
298 | Binary Tree Longest Consecutive Sequence | Medium | ||
549 | Binary Tree Longest Consecutive Sequence II | Medium | ||
144 | Binary Tree Preorder Traversal | Medium | ||
199 | Binary Tree Right Side View | Medium | Adobe, Google, Amazon | |
314 | Binary Tree Vertical Order Traversal | Medium | Microsoft | |
103 | Binary Tree Zigzag Level Order Traversal | Medium | Adobe, Google | |
201 | Bitwise AND of Numbers Range | Medium | Adobe | |
881 | Boats to Save People | Medium | ||
361 | Bomb Enemy | Medium | Amazon, Google | |
545 | Boundary of Binary Tree | Medium | Amazon | |
554 | Brick Wall | Medium | ||
319 | Bulb Switcher | Medium | ||
299 | Bulls and Cows | Medium | Amazon, Google | |
464 | Can I Win | Medium | ||
723 | Candy Crush | Medium | ||
1011 | Capacity To Ship Packages Within D Days | Medium | ||
853 | Car Fleet | Medium | ||
799 | Champagne Tower | Medium | ||
787 | Cheapest Flights Within K Stops | Medium | Airbnb, Microsoft | |
958 | Check Completeness of a Binary Tree | Medium | Facebook, Microsoft | |
457 | Circular Array Loop | Medium | ||
133 | Clone Graph | Medium | Amazon, Facebook | |
742 | Closest Leaf in a Binary Tree | Medium | ||
322 | Coin Change | Medium | Adobe, Airbnb, Amazon, Apple, Facebook, Microsoft | |
518 | Coin Change 2 | Medium | Amazon, Facebook, Google, Microsoft | |
39 | Combination Sum | Medium | Airbnb, Apple, Facebook, Google, Microsoft | |
40 | Combination Sum II | Medium | Microsoft | |
377 | Combination Sum IV | Medium | ||
77 | Combinations | Medium | Facebook, Google, Microsoft | |
165 | Compare Version Numbers | Medium | Amazon, Apple, Microsoft | |
180 | Consecutive Numbers | Medium | ||
1008 | Construct Binary Search Tree from Preorder | Medium | ||
106 | Construct Binary Tree from Inorder and Postorder | Medium | Microsoft | |
105 | Construct Binary Tree from Preorder and Inorder | Medium | ||
889 | Construct Binary Tree from Preorder and PostorderTraversal | Medium | Facebook, Google | |
536 | Construct Binary Tree from String | Medium | ||
11 | Container With Most Water | Medium | Airbnb, Alibaba | |
523 | Continuous Subarray Sum | Medium | Facebook, Microsoft | |
426 | Convert Binary Search Tree to Sorted Doubly LinkedList | Medium | Facebook, Google, Microsoft | |
109 | Convert Sorted List to Binary Search Tree | Medium | Facebook, Microsoft | |
138 | Copy List with Random Pointer | Medium | Alibaba, Facebook | |
222 | Count Complete Tree Nodes | Medium | Facebook, Google | |
250 | Count Univalue Subtrees | Medium | Amazon | |
338 | Counting Bits | Medium | Apple | |
207 | Course Schedule | Medium | Amazon, Facebook, Google, Microsoft | |
210 | Course Schedule II | Medium | Amazon, Facebook, Google, Microsoft | |
791 | Custom Sort String | Medium | Amazon, Facebook | |
739 | Daily Temperatures | Medium | Amazon, Google, Microsoft | |
394 | Decode String | Medium | Amazon, appdynamics, Apple, Facebook, Google, Microsoft | |
91 | Decode Ways | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
450 | Delete Node in a BST | Medium | ||
583 | Delete Operation for Two Strings | Medium | Amazon | |
184 | Department Highest Salary | Medium | Amazon | |
622 | Design Circular Queue | Medium | Amazon, Facebook | |
362 | Design Hit Counter | Medium | Amazon, Google, Microsoft | |
635 | Design Log Storage System | Medium | ||
379 | Design Phone Directory | Medium | ||
353 | Design Snake Game | Medium | Apple, Amazon, Google | |
348 | Design Tic-Tac-Toe | Medium | Apple, Facebook, Microsoft | |
498 | Diagonal Traverse | Medium | Facebook, Google | |
241 | Different Ways to Add Parentheses | Medium | ||
979 | Distribute Coins in Binary Tree | Medium | Amazon, Google, Microsoft | |
29 | Divide Two Integers | Medium | Adobe, Amazon, Facebook, Google, Microsoft | |
271 | Encode and Decode Strings | Medium | ||
535 | Encode and Decode TinyURL | Medium | Adobe | |
663 | Equal Tree Partition | Medium | ||
399 | Evaluate Division | Medium | Adobe, Amazon, Facebook, Google | |
150 | Evaluate Reverse Polish Notation | Medium | Microsoft | |
855 | Exam Room | Medium | ||
626 | Exchange Seats | Medium | Amazon | |
636 | Exclusive Time of Functions | Medium | Microsoft | |
809 | Expressive Words | Medium | ||
442 | Find All Duplicates in an Array | Medium | Amazon, Microsoft | |
833 | Find And Replace in String | Medium | ||
890 | Find and Replace Pattern | Medium | Apple | |
609 | Find Duplicate File in System | Medium | Amazon | |
652 | Find Duplicate Subtrees | Medium | ||
34 | Find First and Last Position of Element in Sorted | Medium | ||
658 | Find K Closest Elements | Medium | ||
373 | Find K Pairs with Smallest Sums | Medium | Amazon, Apple, Google, Microsoft | |
366 | Find Leaves of Binary Tree | Medium | Amazon, Google | |
153 | Find Minimum in Rotated Sorted Array | Medium | ||
162 | Find Peak Element | Medium | Amazon, Facebook, Microsoft, Google | |
277 | Find the Celebrity | Medium | Amazon, Facebook, Microsoft | |
287 | Find the Duplicate Number | Medium | Adobe, Amazon, Google, Microsoft | |
251 | Flatten 2D Vector | Medium | Airbnb | |
430 | Flatten a Multilevel Doubly Linked List | Medium | Amazon | |
114 | Flatten Binary Tree to Linked List | Medium | Adobe, Amazon, Microsoft | |
341 | Flatten Nested List Iterator | Medium | Airbnb | |
951 | Flip Equivalent Binary Trees | Medium | ||
294 | Flip Game II | Medium | ||
926 | Flip String to Monotone Increasing | Medium | ||
166 | Fraction to Recurring Decimal | Medium | ||
547 | Friend Circles | Medium | Amazon, Facebook, Microsoft | |
825 | Friends Of Appropriate Ages | Medium | ||
904 | Fruit Into Baskets | Medium | Amazon, Google | |
289 | Game of Life | Medium | Amazon, Microsoft | |
134 | Gas Station | Medium | Amazon, Google, Microsoft | |
320 | Generalized Abbreviation | Medium | ||
22 | Generate Parentheses | Medium | Adobe, Aetion | |
478 | Generate Random Point in a Circle | Medium | ||
129 | Google - LeetCodeSum Root to Leaf Numbers | Medium | ||
261 | Graph Valid Tree | Medium | Amazon, Google | |
89 | Gray Code | Medium | ||
49 | Group Anagrams | Medium | Adobe, Affirm, Alibaba, Amazon, Apple, Facebook, Google, Microsoft | |
249 | Group Shifted Strings | Medium | Apple | |
375 | Guess Number Higher or Lower II | Medium | ||
274 | H-Index | Medium | ||
846 | Hand of Straights | Medium | ||
337 | House Robber III | Medium | Amazon, Facebook, Google | |
835 | Image Overlap | Medium | ||
676 | Implement Magic Dictionary | Medium | ||
470 | Implement Rand10 Using Rand7 | Medium | ||
208 | Implement Trie (Prefix Tree) | Medium | Amazon | |
491 | Increasing Subsequences | Medium | ||
334 | Increasing Triplet Subsequence | Medium | Amazon, Google, Facebook | |
285 | Inorder Successor in BST | Medium | Facebook, Microsoft | |
510 | Inorder Successor in BST II | Medium | ||
380 | Insert Delete GetRandom O(1) | Medium | Microsoft | |
701 | Insert into a Binary Search Tree | Medium | Microsoft | |
708 | Insert into a Cyclic Sorted List | Medium | Amazon, Facebook, Google, Microsoft | |
343 | Integer Break | Medium | ||
397 | Integer Replacement | Medium | Amazon | |
12 | Integer to Roman | Medium | Adobe, Amazon, Apple, Google, Microsoft | |
986 | Interval List Intersections | Medium | Facebook, Google | |
785 | Is Graph Bipartite? | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
392 | Is Subsequence | Medium | Facebook, Google | |
55 | Jump Game | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
973 | K Closest Points to Origin | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
841 | Keys and Rooms | Medium | Amazon | |
582 | Kill Process | Medium | Apple | |
935 | Knight Dialer | Medium | Facebook, Microsoft | |
688 | Knight Probability in Chessboard | Medium | Facebook, Google, Microsoft | |
215 | Kth Largest Element in an Array | Medium | ||
230 | Kth Smallest Element in a BST | Medium | Amazon | |
378 | Kth Smallest Element in a Sorted Matrix | Medium | Apple | |
333 | Largest BST Subtree | Medium | Amazon, Google, Microsoft | |
368 | Largest Divisible Subset | Medium | Adobe, Google | |
179 | Largest Number | Medium | Amazon, Apple | |
17 | Letter Combinations of a Phone Number | Medium | Airbnb, Apple, Facebook | |
386 | Lexicographical Numbers | Medium | ||
817 | Linked List Components | Medium | ||
142 | Linked List Cycle II | Medium | Apple, Google, Microsoft | |
382 | Linked List Random Node | Medium | Apple, Facebook | |
388 | Longest Absolute File Path | Medium | ||
300 | Longest Increasing Subsequence | Medium | Adobe, Airbnb, Amazon, Apple, Facebook, Google, Microsoft | |
562 | Longest Line of Consecutive One in Matrix | Medium | ||
845 | Longest Mountain in Array | Medium | ||
516 | Longest Palindromic Subsequence | Medium | Apple, Microsoft | |
5 | Longest Palindromic Substring | Medium | Alibaba | |
424 | Longest Repeating Character Replacement | Medium | ||
395 | Longest Substring with At Least K RepeatingCharacters | Medium | Facebook, Google | |
3 | Longest Substring Without Repeating Characters | Medium | Akuna Capital, Alibaba | |
978 | Longest Turbulent Subarray | Medium | Amazon | |
524 | Longest Word in Dictionary through Deleting | Medium | ||
236 | Lowest Common Ancestor of a Binary Tree | Medium | ||
229 | Majority Element II | Medium | Amazon | |
695 | Max Area of Island | Medium | Adobe, Affirm, Alibaba, Amazon, Facebook, Google, Microsoft | |
769 | Max Chunks To Make Sorted | Medium | ||
487 | Max Consecutive Ones II | Medium | ||
1004 | Max Consecutive Ones III | Medium | ||
807 | Max Increase to Keep City Skyline | Medium | ||
221 | Maximal Square | Medium | ||
654 | Maximum Binary Tree | Medium | Amazon | |
318 | Maximum Product of Word Lengths | Medium | ||
152 | Maximum Product Subarray | Medium | Adobe | |
325 | Maximum Size Subarray Sum Equals k | Medium | ||
918 | Maximum Sum Circular Subarray | Medium | ||
670 | Maximum Swap | Medium | ||
662 | Maximum Width of Binary Tree | Medium | ||
253 | Meeting Rooms II | Medium | Amazon, Facebook, Google, Microsoft | |
56 | Merge Intervals | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
529 | Minesweeper | Medium | ||
921 | Minimum Add to Make Parentheses Valid | Medium | ||
939 | Minimum Area Rectangle | Medium | ||
983 | Minimum Cost For Tickets | Medium | Amazon | |
1007 | Minimum Domino Rotations For Equal Row | Medium | ||
931 | Minimum Falling Path Sum | Medium | ||
433 | Minimum Genetic Mutation | Medium | ||
310 | Minimum Height Trees | Medium | ||
452 | Minimum Number of Arrows to Burst Balloons | Medium | ||
64 | Minimum Path Sum | Medium | Adobe, Amazon, Google, Microsoft | |
209 | Minimum Size Subarray Sum | Medium | Google, Microsoft | |
539 | Minimum Time Difference | Medium | ||
163 | Missing Ranges | Medium | Amazon | |
508 | Most Frequent Subtree Sum | Medium | Amazon | |
947 | Most Stones Removed with Same Row or Column | Medium | ||
43 | Multiply Strings | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
729 | My Calendar I | Medium | Amazon, Google, Microsoft | |
731 | My Calendar II | Medium | Amazon, Google | |
743 | Network Delay Time | Medium | Amazon | |
681 | Next Closest Time | Medium | Facebook, Google | |
503 | Next Greater Element II | Medium | Microsoft | |
556 | Next Greater Element III | Medium | Amazon | |
1019 | Next Greater Node In Linked List | Medium | Amazon | |
31 | Next Permutation | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
435 | Non-overlapping Intervals | Medium | Apple, Google | |
177 | Nth Highest Salary | Medium | Adobe, Amazon, Apple, Facebook | |
750 | Number Of Corner Rectangles | Medium | ||
694 | Number of Distinct Islands | Medium | Amazon, Facebook, Google, Microsoft | |
200 | Number of Islands | Medium | Adobe, Affirm, Alibaba, Amazon, appdynamics, Facebook, Google, Microsoft | |
673 | Number of Longest Increasing Subsequence | Medium | Amazon, Facebook | |
792 | Number of Matching Subsequences | Medium | ||
328 | Odd Even Linked List | Medium | Amazon, Google, Microsoft | |
161 | One Edit Distance | Medium | Facebook, Microsoft | |
911 | Online Election | Medium | Apple, Google | |
752 | Open the Lock | Medium | Facebook, Google | |
544 | Output Contest Matches | Medium | ||
417 | Pacific Atlantic Water Flow | Medium | Google, Microsoft | |
131 | Palindrome Partitioning | Medium | Adobe, Amazon | |
647 | Palindromic Substrings | Medium | Adobe, Amazon, Facebook, Google, Microsoft | |
416 | Partition Equal Subset Sum | Medium | Facebook, Google, Microsoft | |
86 | Partition List | Medium | Amazon, Microsoft | |
698 | Partition to K Equal Sum Subsets | Medium | ||
113 | Path Sum II | Medium | Amazon, appdynamics, Facebook, Google | |
284 | Peeking Iterator | Medium | ||
279 | Perfect Squares | Medium | Adobe, Amazon, Facebook, Google | |
567 | Permutation in String | Medium | Facebook, Google | |
60 | Permutation Sequence | Medium | Amazon, Google | |
46 | Permutations | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
47 | Permutations II | Medium | Adobe, Amazon, Facebook | |
369 | Plus One Linked List | Medium | Amazon, Google | |
117 | Populating Next Right Pointers in Each Node II | Medium | Amazon, Facebook, Google, Microsoft | |
116 | Populating Next Right Pointers in Each Node | Medium | ||
886 | Possible Bipartition | Medium | ||
755 | Pour Water | Medium | Airbnb | |
50 | Pow(x, n) | Medium | Adobe, Alibaba, Amazon, Apple, Facebook, Microsoft | |
486 | Predict the Winner | Medium | ||
655 | Print Binary Tree | Medium | Microsoft | |
957 | Prison Cells After N Days | Medium | Amazon | |
238 | Product of Array Except Self | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
756 | Pyramid Transition Matrix | Medium | Airbnb | |
406 | Queue Reconstruction by Height | Medium | Amazon, Google | |
398 | Random Pick Index | Medium | Facebook, Google | |
528 | Random Pick with Weight | Medium | Google, Microsoft | |
497 | Random Point in Non-overlapping Rectangles | Medium | ||
370 | Range Addition | Medium | ||
938 | Range Sum of BST | Medium | ||
307 | Range Sum Query - Mutable | Medium | Facebook, Google | |
304 | Range Sum Query 2D - Immutable | Medium | Facebook, Google, Microsoft | |
178 | Rank Scores | Medium | Amazon, Apple | |
332 | Reconstruct Itinerary | Medium | Amazon, Facebook, Google, Microsoft | |
223 | Rectangle Area | Medium | Microsoft | |
684 | Redundant Connection | Medium | ||
722 | Remove Comments | Medium | Amazon, Facebook, Google, Microsoft | |
80 | Remove Duplicates from Sorted Array II | Medium | ||
82 | Remove Duplicates from Sorted List II | Medium | ||
402 | Remove K Digits | Medium | Adobe, Amazon, Facebook, Microsoft | |
19 | Remove Nth Node From End of List | Medium | ||
143 | Reorder List | Medium | Amazon, Facebook, Google, Microsoft | |
767 | Reorganize String | Medium | Amazon, Facebook, Google | |
187 | Repeated DNA Sequences | Medium | ||
93 | Restore IP Addresses | Medium | Microsoft | |
92 | Reverse Linked List II | Medium | Adobe, Alibaba, Amazon, Facebook, Google, Microsoft | |
151 | Reverse Words in a String | Medium | ||
186 | Reverse Words in a String II | Medium | Amazon, Microsoft | |
900 | RLE Iterator | Medium | Amazon, Google | |
61 | Rotate List | Medium | Amazon, Microsoft | |
74 | Search a 2D Matrix | Medium | Amazon, Facebook, Google, Microsoft | |
240 | Search a 2D Matrix II | Medium | Amazon, Facebook, Google, Microsoft | |
702 | Search in a Sorted Array of Unknown Size | Medium | ||
33 | Search in Rotated Sorted Array | Medium | Alibaba, Amazon, Apple, Facebook, Google, Microsoft | |
81 | Search in Rotated Sorted Array II | Medium | ||
418 | Sentence Screen Fitting | Medium | ||
737 | Sentence Similarity II | Medium | ||
444 | Sequence Reconstruction | Medium | ||
449 | Serialize and Deserialize BST | Medium | Amazon, Facebook, Google, Microsoft | |
73 | Set Matrix Zeroes | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
384 | Shuffle an Array | Medium | Amazon, Google, Microsoft | |
71 | Simplify Path | Medium | Adobe, Amazon, Facebook, Microsoft | |
540 | Single Element in a Sorted Array | Medium | Amazon, Google | |
137 | Single Number II | Medium | Amazon, Facebook, Google | |
260 | Single Number III | Medium | Adobe, Facebook | |
865 | Smallest Subtree with all the Deepest Nodes | Medium | ||
909 | Snakes and Ladders | Medium | Amazon | |
640 | Solve the Equation | Medium | Amazon | |
451 | Sort Characters By Frequency | Medium | Amazon, Google, Microsoft | |
75 | Sort Colors | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
148 | Sort List | Medium | Amazon, Facebook, Google, Microsoft | |
360 | Sort Transformed Array | Medium | Facebook, Google | |
311 | Sparse Matrix Multiplication | Medium | Apple | |
54 | Spiral Matrix | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
59 | Spiral Matrix II | Medium | Amazon, Google, Microsoft | |
885 | Spiral Matrix III | Medium | ||
659 | Split Array into Consecutive Subsequences | Medium | ||
548 | Split Array with Equal Sum | Medium | ||
776 | Split BST | Medium | ||
725 | Split Linked List in Parts | Medium | ||
877 | Stone Game | Medium | ||
8 | String to Integer (atoi) | Medium | Apple | |
247 | Strobogrammatic Number II | Medium | ||
713 | Subarray Product Less Than K | Medium | Akuna Capital | |
560 | Subarray Sum Equals K | Medium | Facebook, Microsoft | |
78 | Subsets | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
90 | Subsets II | Medium | Amazon | |
228 | Summary Ranges | Medium | Amazon, Google, Microsoft | |
130 | Surrounded Regions | Medium | Amazon, Google | |
777 | Swap Adjacent in LR String | Medium | ||
24 | Swap Nodes in Pairs | Medium | Adobe, Amazon, Google | |
494 | Target Sum | Medium | Facebook, Google | |
621 | Task Scheduler | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
490 | The Maze | Medium | Microsoft | |
505 | The Maze II | Medium | Amazon, Google | |
981 | Time Based Key-Value Store | Medium | ||
347 | Top K Frequent Elements | Medium | Facebook, Google, Microsoft | |
692 | Top K Frequent Words | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
477 | Total Hamming Distance | Medium | ||
120 | Triangle | Medium | Amazon, Microsoft | |
264 | Ugly Number II | Medium | ||
96 | Unique Binary Search Trees | Medium | Amazon, Google | |
95 | Unique Binary Search Trees II | Medium | Adobe, Amazon, Google | |
62 | Unique Paths | Medium | Alibaba, Amazon, Apple, Facebook, Google, Microsoft | |
63 | Unique Paths II | Medium | Amazon, Facebook, Microsoft | |
288 | Unique Word Abbreviation | Medium | ||
393 | UTF-8 Validation | Medium | Facebook, Google | |
678 | Valid Parenthesis String | Medium | ||
36 | Valid Sudoku | Medium | Amazon, Apple, Facebook, Google, Microsoft | |
794 | Valid Tic-Tac-Toe State | Medium | Microsoft | |
611 | Valid Triangle Number | Medium | Amazon | |
98 | Validate Binary Search Tree | Medium | Adobe, Amazon, Apple, Facebook, Microsoft | |
468 | Validate IP Address | Medium | Facebook, Google | |
987 | Vertical Order Traversal of a Binary Tree | Medium | Adobe, Facebook | |
286 | Walls and Gates | Medium | Amazon | |
365 | Water and Jug Problem | Medium | ||
280 | Wiggle Sort | Medium | ||
324 | Wiggle Sort II | Medium | Facebook, Airbnb, Akuna Capital | |
139 | Word Break | Medium | Adobe, Amazon, Apple, Facebook, Google, Microsoft | |
192 | Word Frequency | Medium | Adobe, Amazon, Facebook | |
127 | Word Ladder | Medium | Affirm, Airbnb, Amazon, Apple, Facebook, Google, Microsoft | |
79 | Word Search | Medium | Amazon, Apple, Facebook, Microsoft | |
6 | ZigZag Conversion | Medium | Adobe, Amazon, Apple, Facebook, Google | |
281 | Zigzag Iterator | Medium | ||
48 | Rotate Image | Medium | ||
679 | 24 Game | Hard | Google, Microsoft | |
269 | Alien Dictionary | Hard | Amazon, Google | |
432 | All Oone Data Structure | Hard | Amazon, Facebook | |
446 | Arithmetic Slices II - Subsequence | Hard | Alibaba, Facebook | |
224 | Basic Calculator | Hard | Adobe, Amazon, Facebook, Google, Microsoft | |
772 | Basic Calculator III | Hard | Amazon, Facebook, Google, Microsoft | |
770 | Basic Calculator IV | Hard | ||
296 | Best Meeting Point | Hard | Google, Facebook | |
123 | Best Time to Buy and Sell Stock III | Hard | Amazon, Microsoft | |
188 | Best Time to Buy and Sell Stock IV | Hard | Amazon, Google | |
968 | Binary Tree Cameras | Hard | ||
124 | Binary Tree Maximum Path Sum | Hard | Apple | |
145 | Binary Tree Postorder Traversal | Hard | Amazon | |
803 | Bricks Falling When Hit | Hard | ||
312 | Burst Balloons | Hard | Amazon, Google | |
815 | Bus Routes | Hard | Airbnb, Amazon, Google | |
135 | Candy | Hard | ||
913 | Cat and Mouse | Hard | ||
272 | Closest Binary Search Tree Value II | Hard | Amazon | |
472 | Concatenated Words | Hard | Amazon | |
829 | Consecutive Numbers Sum | Hard | Adobe, Airbnb | |
730 | Count Different Palindromic Subsequences | Hard | ||
315 | Count of Smaller Numbers After Self | Hard | Adobe, Apple | |
630 | Course Schedule III | Hard | ||
753 | Cracking the Safe | Hard | Amazon, Google | |
675 | Cut Off Trees for Golf Event | Hard | Amazon | |
639 | Decode Ways II | Hard | ||
185 | Department Top Three Salaries | Hard | Adobe, Amazon, Google | |
631 | Design Excel Sum Formula | Hard | Amazon | |
588 | Design In-Memory File System | Hard | Amazon | |
642 | Design Search Autocomplete System | Hard | ||
115 | Distinct Subsequences | Hard | ||
940 | Distinct Subsequences II | Hard | ||
174 | Dungeon Game | Hard | Amazon | |
72 | Edit Distance | Hard | Facebook, Adobe, Amazon, Apple, Google, Microsoft | |
759 | Employee Free Time | Hard | Airbnb, Amazon, Google, Microsoft | |
471 | Encode String with Shortest Length | Hard | ||
282 | Expression Add Operators | Hard | Google, Apple, Facebook | |
336 | Facebook - LeetCodePalindrome Pairs 30.7% | Hard | ||
579 | Find Cumulative Salary of an Employee | Hard | Amazon | |
295 | Find Median from Data Stream | Hard | Akuna Capital, Amazon, Apple, Facebook, Google, Microsoft | |
154 | Find Minimum in Rotated Sorted Array II | Hard | Facebook, Google | |
564 | Find the Closest Palindrome | Hard | Amazon, Facebook, Microsoft | |
943 | Find the Shortest Superstring | Hard | ||
41 | First Missing Positive | Hard | Amazon | |
403 | Frog Jump | Hard | Amazon, Apple, Facebook, Google | |
843 | Guess the Word | Hard | Airbnb, Amazon, Facebook, Google | |
381 | Insert Delete GetRandom O(1) - Duplicates allowed | Hard | Affirm, Amazon | |
57 | Insert Interval | Hard | Amazon, Apple, Facebook, Google, Microsoft | |
273 | Integer to English Words | Hard | Amazon | |
97 | Interleaving String | Hard | Amazon, Apple, Microsoft | |
45 | Jump Game II | Hard | Adobe, Amazon, Apple, Google | |
683 | K Empty Slots | Hard | Google, Microsoft | |
854 | K-Similar Strings | Hard | ||
668 | Kth Smallest Number in Multiplication Table | Hard | ||
479 | Largest Palindrome Product | Hard | Apple | |
84 | Largest Rectangle in Histogram | Hard | Microsoft | |
460 | LFU Cache | Hard | Amazon | |
128 | Longest Consecutive Sequence | Hard | Alibaba, Google | |
329 | Longest Increasing Path in a Matrix | Hard | ||
340 | Longest Substring with At Most K Distinct Characters | Hard | Facebook, Google | |
159 | Longest Substring with At Most Two Distinct | Hard | ||
32 | Longest Valid Parentheses | Hard | Amazon | |
146 | LRU Cache | Hard | Alibaba | |
827 | Making A Large Island | Hard | ||
768 | Max Chunks To Make Sorted II | Hard | ||
149 | Max Points on a Line | Hard | Adobe, Amazon, Google, Microsoft | |
363 | Max Sum of Rectangle No Larger Than K | Hard | ||
85 | Maximal Rectangle | Hard | Adobe, Amazon, Google, Microsoft | |
895 | Maximum Frequency Stack | Hard | Amazon | |
164 | Maximum Gap | Hard | Amazon | |
689 | Maximum Sum of 3 Non-Overlapping Subarrays | Hard | Facebook, Google | |
568 | Maximum Vacation Days | Hard | Facebook, Google, Microsoft | |
4 | Median of Two Sorted Arrays | Hard | Alibaba, Apple | |
23 | Merge k Sorted Lists | Hard | Adobe, Alibaba, Amazon, Apple, Facebook, Google, Microsoft | |
924 | Minimize Malware Spread | Hard | Amazon | |
774 | Minimize Max Distance to Gas Station | Hard | ||
857 | Minimum Cost to Hire K Workers | Hard | ||
995 | Minimum Number of K Consecutive Bit Flips | Hard | Akuna Capital | |
871 | Minimum Number of Refueling Stops | Hard | Amazon | |
727 | Minimum Window Subsequence | Hard | ||
76 | Minimum Window Substring | Hard | Airbnb | |
51 | N-Queens | Hard | Alibaba, Amazon, Facebook, Microsoft | |
726 | Number of Atoms | Hard | Adobe | |
233 | Number of Digit One | Hard | Amazon | |
711 | Number of Distinct Islands II | Hard | Amazon | |
305 | Number of Islands II | Hard | Amazon, Google | |
920 | Number of Music Playlists | Hard | ||
975 | Odd Even Jump | Hard | ||
465 | Optimal Account Balancing | Hard | ||
132 | Palindrome Partitioning II | Hard | ||
736 | Parse Lisp Expression | Hard | Affirm | |
745 | Prefix and Suffix Search | Hard | ||
793 | Preimage Size of Factorial Zeroes Function | Hard | Amazon | |
818 | Race Car | Hard | ||
710 | Random Pick with Blacklist | Hard | Amazon, Google | |
715 | Range Module | Hard | ||
308 | Range Sum Query 2D - Mutable | Hard | Facebook, Google | |
158 | Read N Characters Given Read4 II - Call multiple | Hard | ||
99 | Recover Binary Search Tree | Hard | Facebook, Google | |
850 | Rectangle Area II | Hard | ||
685 | Redundant Connection II | Hard | ||
10 | Regular Expression Matching | Hard | Alibaba, Amazon, Google | |
316 | Remove Duplicate Letters | Hard | Microsoft | |
301 | Remove Invalid Parentheses | Hard | Amazon, Google | |
25 | Reverse Nodes in k-Group | Hard | Amazon | |
493 | Reverse Pairs | Hard | Apple, Facebook, Google, Microsoft | |
489 | Robot Room Cleaner | Hard | Amazon, Google | |
354 | Russian Doll Envelopes | Hard | ||
87 | Scramble String | Hard | ||
297 | Serialize and Deserialize Binary Tree | Hard | Amazon, Facebook, Google, Microsoft | |
428 | Serialize and Deserialize N-ary Tree | Hard | ||
317 | Shortest Distance from All Buildings | Hard | Amazon | |
847 | Shortest Path Visiting All Nodes | Hard | Amazon | |
862 | Shortest Subarray with Sum at Least K | Hard | ||
773 | Sliding Puzzle | Hard | Airbnb, Amazon, Google | |
239 | Sliding Window Maximum | Hard | Apple, Microsoft | |
480 | Sliding Window Median | Hard | Amazon, Google | |
632 | Smallest Range | Hard | Facebook, Microsoft | |
302 | Smallest Rectangle Enclosing Black Pixels | Hard | ||
761 | Special Binary String | Hard | ||
410 | Split Array Largest Sum | Hard | ||
805 | Split Array With Same Average | Hard | ||
936 | Stamping The Sequence | Hard | ||
248 | Strobogrammatic Number III | Hard | ||
552 | Student Attendance Record II | Hard | ||
992 | Subarrays with K Different Integers | Hard | Amazon | |
30 | Substring with Concatenation of All Words | Hard | Adobe, Apple, Facebook, Google | |
37 | Sudoku Solver | Hard | Amazon | |
834 | Sum of Distances in Tree | Hard | ||
778 | Swim in Rising Water | Hard | Amazon | |
591 | Tag Validator | Hard | ||
68 | Text Justification | Hard | Airbnb, Amazon, Facebook, Google, Microsoft | |
42 | Trapping Rain Water | Hard | Adobe, , Amazon, Apple, Facebook, Google, Microsoft | |
407 | Trapping Rain Water II | Hard | Apple, Google, Microsoft | |
262 | Trips and Users | Hard | Adobe | |
980 | Unique Paths III | Hard | Amazon | |
65 | Valid Number | Hard | Apple, Facebook, Google, Microsoft | |
44 | Wildcard Matching | Hard | Adobe, Amazon, Facebook, Google, Microsoft | |
527 | Word Abbreviation | Hard | ||
140 | Word Break II | Hard | Amazon, Apple, Facebook | |
126 | Word Ladder II | Hard | Facebook, Google, Microsoft | |
291 | Word Pattern II | Hard | ||
212 | Word Search II | Hard | Airbnb, Amazon, Apple, Facebook, Microsoft | |
425 | Word Squares | Hard | ||
218 | The Skyline Problem | Hard |