# | Title | Solution | Difficulty |
---|---|---|---|
242 | Valid Anagram | java | easy |
241 | Different Ways to Add Parentheses | java | medium |
240 | Search a 2D Matrix II | java | medium |
239 | Sliding Window Maximum | java | hard |
238 | Product of Array Except Self | java | medium |
237 | Delete Node in a Linked List | java | easy |
236 | Lowest Common Ancestor of a Binary Tree | java | medium |
235 | Lowest Common Ancestor of a Binary Search Tree | java | easy |
234 | Palindrome Linked List | java | easy |
233 | Number of Digit One | java | medium |
232 | Implement Queue using Stacks | java | easy |
231 | Power of Two | java | easy |
230 | Kth Smallest Element in a BST | java | medium |
229 | Majority Element II | java | medium |
228 | Summary Ranges | java | easy |
227 | Basic Calculator II | java | medium |
226 | Invert Binary Tree | java | easy |
225 | Implement Stack using Queues | java | medium |
224 | Basic Calculator | java | medium |
223 | Rectangle Area | java | easy |
222 | Count Complete Tree Nodes | java | medium |
221 | Maximal Square | java | medium |
220 | Contains Duplicate III | java | medium |
219 | Contains Duplicate II | java | easy |
217 | Contains Duplicate | java | easy |
216 | Combination Sum III | java | medium |
215 | Kth Largest Element in an Array | java | medium |
213 | House Robber II | java | medium |
212 | Word Search II | java | hard |
211 | Add and Search Word - Data structure design | java | medium |
210 | Course Schedule II | java | medium |
209 | Minimum Size Subarray Sum | java | medium |
208 | Implement Trie (Prefix Tree) | java | medium |
207 | Course Schedule | java | medium |
206 | Reverse Linked List | java | easy |
205 | Isomorphic Strings | java | easy |
204 | Count Primes | java | easy |
203 | Remove Linked List Elements | java | easy |
202 | Happy Number | java | easy |
201 | Bitwise AND of Numbers Range | java | medium |
200 | Number of Islands | java | medium |
199 | Binary Tree Right Side View | java | medium |
198 | House Robber | java | easy |
191 | Number of 1 Bits | java | easy |
190 | Reverse Bits | java | easy |
189 | Rotate Array | java | easy |
187 | Repeated DNA Sequences | java | medium |
179 | Largest Number | java | medium |
174 | Dungeon Game | java | hard |
173 | Binary Search Tree Iterator | java | medium |
172 | Factorial Trailing Zeroes | java | easy |
171 | Excel Sheet Column Number | java | easy |
169 | Majority Element | java | easy |
168 | Excel Sheet Column Title | java | easy |
165 | Compare Version Numbers | java | easy |
162 | Find Peak Element | java | medium |
160 | Intersection of Two Linked Lists | java | easy |
155 | Min Stack | java | easy |
154 | Find Minimum in Rotated Sorted Array II | java | Hard |
153 | Find Minimum in Rotated Sorted Array | java | medium |
152 | Maximum Product Subarray | java | medium |
151 | Reverse Words in a String | java | medium |
150 | Evaluate Reverse Polish Notation | java | medium |
147 | Insertion Sort List | java | medium |
145 | Binary Tree Postorder Traversal | java | hard |
144 | Binary Tree Preorder Traversal | java | medium |
143 | Reorder List | java | medium |
142 | Linked List Cycle II | java | medium |
141 | Linked List Cycle | java | medium |
139 | Word Break | java | medium |
138 | Copy List with Random Pointer | java | hard |
137 | Single Number II | java | medium |
136 | Single Number | java | medium |
135 | Candy | java | hard |
134 | Gas Station | java | medium |
133 | Clone Graph | java | medium |
132 | Palindrome Partitioning II | java | hard |
131 | Palindrome Partitioning | java | medium |
130 | Surrounded Regions | java | medium |
129 | Sum Root to Leaf Numbers | java | medium |
128 | Longest Consecutive Sequence | java | hard |
127 | Word Ladder | java | medium |
125 | Valid Palindrome | java | easy |
124 | Binary Tree Maximum Path Sum | java | hard |
122 | Best Time to Buy and Sell Stock II | java | medium |
121 | Best Time to Buy and Sell Stock | java | medium |
120 | Triangle | java | medium |
119 | Pascal's Triangle II | java | easy |
118 | PPascal's Triangle | java | easy |
116 | Populating Next Right Pointers in Each Node | java | medium |
115 | Distinct Subsequences | java | hard |
114 | Flatten Binary Tree to Linked List | java | medium |
113 | Path Sum II | java | medium |
112 | Path Sum | java | easy |
111 | Minimum Depth of Binary Tree | java | easy |
110 | Balanced Binary Tree | java | easy |
108 | Convert Sorted Array to Binary Search Tree | java | medium |
107 | Binary Tree Level Order Traversal II | java | easy |
104 | Maximum Depth of Binary Tree | java | easy |
102 | Binary Tree Level Order Traversal | java | easy |
101 | Symmetric Tree | java | easy |
100 | Same Tree | java | easy |
98 | Validate Binary Search Tree | java | medium |
97 | Interleaving String | java | hard |
96 | Unique Binary Search Trees | java | medium |
95 | Unique Binary Search TreesII | java | medium |
94 | Binary Tree Inorder Traversal | java | medium |
93 | Restore IP Addresses | java | medium |
92 | Reverse Linked List II | java | medium |
91 | Decode Ways | java | medium |
90 | Subsets II | java | medium |
89 | Gray Code | java | medium |
88 | Merge Sorted Array | java | easy |
86 | Partition List | java | medium |
84 | Largest Rectangle in Histogram | java | hard |
83 | Remove Duplicates from Sorted List | java | easy |
82 | Remove Duplicates from Sorted List II | java | medium |
80 | Remove Duplicates from Sorted Array II | java | medium |
78 | Subsets | java | medium |
77 | Combinations | java | medium |
76 | Minimum Window Substring | java | hard |
75 | Sort Colors | java | medium |
74 | Search a 2D Matrix | java | medium |
73 | Set Matrix Zeroes | java | medium |
72 | Edit Distance | java | hard |
71 | Simplify Path | java | medium |
70 | Climbing Stairs | java | easy |
69 | Sqrt(x) | java | medium |
67 | Add Binary | java | easy |
66 | Plus One | java | easy |
64 | Minimum Path Sum | java | medium |
63 | Unique Paths II | java | medium |
62 | Unique Paths | java | medium |
61 | Rotate List | java | medium |
59 | Spiral Matrix II | java | medium |
58 | Length of Last Word | java | easy |
57 | Insert Interval | java | hard |
56 | Merge Intervals | java | hard |
55 | Jump Game | java | medium |
54 | Spiral Matrix | java | medium |
53 | Maximum Subarray | java | medium |
52 | N-Queens II | java | hard |
51 | N-Queens | java | hard |
50 | Pow(x, n) | java | medium |
49 | Anagrams | java | medium |
46 | Permutations | java | medium |
45 | Jump Game II | java | hard |
43 | Multiply Strings | java | medium |
42 | Trapping Rain Water | java | hard |
41 | First Missing Positive | java | hard |
40 | Combination Sum II | java | medium |
39 | Combination Sum | java | medium |
38 | Count and Say | java | easy |
36 | Valid Sudoku | java | easy |
35 | Search Insert Position | java | medium |
34 | Search for a Range | java | medium |
32 | Longest Valid Parentheses | java | hard |
31 | Next Permutation | java | medium |
29 | Divide Two Integers | java | medium |
28 | Implement strStr() | java | easy |
27 | Remove Element | java | easy |
26 | Remove Duplicates from Sorted Array | java | easy |
24 | Swap Nodes in Pairs | java | medium |
23 | Merge k Sorted Lists | java | hard |
22 | Generate Parentheses | java | medium |
21 | Merge Two Sorted Lists | java | easy |
20 | Valid Parentheses | java | easy |
19 | Remove Nth Node From End of List | java | easy |
18 | 4Sum | java | medium |
17 | Letter Combinations of a Phone Number | java | medium |
16 | 3Sum Closest | java | medium |
15 | 3Sum | java | medium |
14 | Longest Common Prefix | java | easy |
13 | Roman to Integer | java | easy |
12 | Integer to Roman | java | medium |
11 | Container With Most Water | java | medium |
9 | Palindrome Number | java | easy |
8 | String to Integer (atoi) | java | easy |
7 | Reverse Integer | java | easy |
6 | ZigZag Conversion | java | easy |
5 | Longest Palindromic Substring | java | medium |
3 | Longest Substring Without Repeating Characters | java | medium |
2 | Add Two Numbers | java | medium |
1 | Two Sum | java | medium |
mhcrnl / leetcode Goto Github PK
View Code? Open in Web Editor NEWThis project forked from adventure0123/leetcode
leetcode solution in java