Press Control+F(or Command+F on the Mac) to search anything you want.
# | Solution | Tags | Difficulty | Remark |
---|---|---|---|---|
0001 | Two Sum | Array ,Hash Table |
Easy | |
0002 | Add Two Numbers | Recursion ,Linked List ,Math |
Medium | |
0003 | Longest Substring Without Repeating Characters | Hash Table ,String ,Sliding Window |
Medium | |
0004 | Median of Two Sorted Arrays | Array ,Binary Search ,Divide and Conquer |
Hard | |
0005 | Longest Palindromic Substring | String ,Two Pointers ,Dynamic Programming |
Medium | |
0006 | Zigzag Conversion | String |
Medium | |
0007 | Reverse Integer | Math |
Medium | |
0008 | String to Integer (atoi) | String |
Medium | |
0009 | Palindrome Number | Math |
Easy | |
0010 | Regular Expression Matching | Recursion ,String ,Dynamic Programming |
Hard | |
0011 | Container With Most Water | Greedy ,Array ,Two Pointers |
Medium | |
0012 | Integer to Roman | Hash Table ,Math ,String |
Medium | |
0013 | Roman to Integer | Hash Table ,Math ,String |
Easy | |
0014 | Longest Common Prefix | Trie ,String |
Easy | |
0015 | 3Sum | Array ,Two Pointers ,Sorting |
Medium | |
0016 | 3Sum Closest | Array ,Two Pointers ,Sorting |
Medium | |
0017 | Letter Combinations of a Phone Number | Hash Table ,String ,Backtracking |
Medium | |
0018 | 4Sum | Array ,Two Pointers ,Sorting |
Medium | |
0019 | Remove Nth Node From End of List | Linked List ,Two Pointers |
Medium | |
0020 | Valid Parentheses | Stack ,String |
Easy | |
0021 | Merge Two Sorted Lists | Recursion ,Linked List |
Easy | |
0022 | Generate Parentheses | String ,Dynamic Programming ,Backtracking |
Medium | |
0023 | Merge k Sorted Lists | Linked List ,Divide and Conquer ,Heap (Priority Queue) ,Merge Sort |
Hard | |
0024 | Swap Nodes in Pairs | Recursion ,Linked List |
Medium | |
0025 | Reverse Nodes in k-Group | Recursion ,Linked List |
Hard | |
0026 | Remove Duplicates from Sorted Array | Array ,Two Pointers |
Easy | |
0027 | Remove ELement from an Array | Array ,Two Pointers |
Easy | |
0028 | Remove ELement from an Array | Array ,Two Pointers |
Easy | |
0029 | Divide Two Integers | Math ,Bit Manipulation |
Medium | |
0035 | Search Insert Position | Array ,Binary Search |
Easy | |
0039 | Combination Sum | Array ,Backtracking |
Medium | |
0046 | Permutations | Array ,Backtracking |
Medium | |
0050 | Pow(x, n) | Math ,Recursion |
Medium | |
0058 | Length Of Last Word | String |
Easy | |
0023 | Merge k Sorted Lists | Linked List ,Divide and Conquer ,Heap (Priority Queue) ,Merge Sort |
Hard | |
0024 | Swap Nodes in Pairs | Recursion ,Linked List |
Medium | |
0025 | Reverse Nodes in k-Group | Recursion ,Linked List |
Hard | |
0023 | Merge k Sorted Lists | Linked List ,Divide and Conquer ,Heap (Priority Queue) |
Hard | |
0025 | Reverse Nodes in k-Group | Recursion ,Linked List |
Hard | |
0036 | Valid Sudoku | Array ,Hash Table ,Matrix |
Medium | |
0049 | Group Anagrams | Array ,Hash Table ,String , Sorting |
Medium | |
0069 | Sqrt(x) | Math ,Binary Search |
Easy | |
0078 | Subsets | Array ,Backtracking ,Bit Manipulation |
Medium | |
0083 | Remove Duplicates from Sorted List | Linked List |
Easy | |
0136 | Single Number | Array , Bit Manipulation |
Easy | |
0151 | Reverse Words in a String | Two Pointers , Strings |
Medium | |
0169 | Majority Element | Array , Hash Table , Sorting , Divide and Conquer , Counting |
Easy | |
0175 | Combine Two Tables | Database |
Easy | |
0181 | Employees Earning More Than Their Managers | Database |
Easy | |
0182 | Duplicate Emails | Database |
Easy | |
0183 | Customers Who Never Order | Database |
Easy | |
0184 | Duplicate Emails | Database |
Easy | |
0185 | Customers Who Never Order | Database |
Easy | |
0193 | Valid Phone Numbers | Shell |
Easy | |
0200 | Number of Islands | Array , Depth-First Search , Breadth-First Search , Matrix |
Medium | |
0231 | Power of Two | Math , Recursion , Bit Manipulation |
Easy | |
0258 | Add Digits | Math , Simulation , Number Theory |
Easy | |
0279 | Perfect Squares | Math , Dynamic Programming ,Breadth-First Search |
Medium | |
0349 | Intersection of Two Array | Array , Hash Table , Two POinters , Binary Search , Sorting |
Easy | |
0463 | Island Perimeter | Array , Depth-First Search , Breadth-First Search , Matrix |
Easy | |
0506 | Relative Ranks | Array , Sorting , Heap(Priority Queue) |
Easy | |
0507 | Perfect Number | Math |
Easy | |
0509 | Fibonacci Number | Array , Dynamic Programming , Breadth-First Search , Matrix |
Easy | |
0709 | To Lower Case | String |
Easy | |
0728 | Self Dividing Numbers | Math |
Easy | |
0905 | Sort Array By Parity | Array , Two Pointers ,Sorting |
Easy | |
1207 | Unique Number of Occurrences | Array ,Hash Table , |
Easy | |
1208 | Get Equal Substrings Within Budget | Strings ,Binary Search ,Sliding Window , Prefix Sum |
Medium | |
1219 | Path with Maximum Gold | Array ,Backtracking ,Matrix |
Medium | |
1700 | Number of Students Unable to Eat Lunch | Array ,Stack ,Queue ,Simulation |
Easy | |
1791 | Find Center of Star Graph | Graph |
Medium | |
2309 | Greatest English Letter in Upper and Lower Case | Hash Table , String , Enumeration |
Easy | |
2406 | Divide Intervals Into Minimum Number of Groups | Array ,Greedy ,Sorting ,Two Pointers ,Heap ,Prefix Sum |
Medium | |
2670 | Find the Distinct Difference Array | Array ,Hash Table |
Easy | |
2707 | Extra Characters in a String | Array , Hash Table , String , Dynamic Programming , Trie |
Medium | |
3034 | Find the K-th Character in String Game I | Math ,Bit Manipulation ,Recursion , Simulation |
Easy | |
3065 | Minimum Operations to Exceed Threshold Value | Array |
Easy | |
3074 | Apple Redistribution into Boxes | Array ,Greedy ,Sorting |
Medium | |
3075 | Maximize Happiness of Selected Children | Array ,Greedy ,Sorting |
Medium | |
3309 | Maximum Possible Number by Binary Concatenation | Array ,Bit Manipulation ,Enumeration |
Medium |