Skip to content

Java Solutions to problems on LintCode/LeetCode

Notifications You must be signed in to change notification settings

mieuf/LintCode

 
 

Repository files navigation

Java Algorithm Problems

程序员的一天

从开始这个Github已经有将近两年时间, 很高兴这个repo可以帮到有需要的人. 我一直认为, 知识本身是无价的, 因此每逢闲暇, 我就会来维护这个repo, 给刷题的朋友们一些我的想法和见解. 下面来简单介绍一下这个repo:

README.md: 所有所做过的题目

ReviewPage.md: 所有题目的总结和归纳(不断完善中)

KnowledgeHash2.md: 对所做过的知识点的一些笔记

SystemDesign.md: 对系统设计的一些笔记

Future Milestone: 我准备将一些有意思的题目,做成视频的形式给大家参考

希望大家学习顺利, 对未来充满希望(程序员也是找到好老板的!) 有问题可以给我写邮件([email protected]), 或者在GitHub上发issue给我.

Squence Problem Level Language Tags Video Tutorial
0 Anagrams.java Medium Java []
1 Binary Representation.java Hard Java []
2 Binary Tree Level Order Traversal II.java Medium Java []
3 Binary Tree Level Order Traversal.java Medium Java []
4 Binary Tree Longest Consecutive Sequence.java Medium Java []
5 Binary Tree Maximum Path Sum II.java Medium Java []
6 Binary Tree Right Side View.java Medium Java []
7 Binary Tree Serialization.java Medium Java []
8 Binary Tree Zigzag Level Order Traversal.java Medium Java []
9 ColorGrid.java Medium Java []
10 Combination Sum II.java Medium Java []
11 Combination Sum.java Medium Java []
12 Combinations.java Medium Java []
13 Construct Binary Tree from Inorder and Postorder Traversal.java Medium Java []
14 Container With Most Water.java Medium Java []
15 Convert Binary Search Tree to Doubly Linked List.java Medium Java [BST]
16 Copy List with Random Pointer.java Medium Java []
17 Count of Smaller Number before itself.java Hard Java []
18 Count of Smaller Number.java Medium Java []
19 Delete Digits.java Medium Java []
20 Encode and Decode Strings.java Medium Java []
21 Fast Power.java Medium Java []
22 Fibonacci.java Easy Java []
23 Find the Connected Component in the Undirected Graph.java Medium Java []
24 Find the Weak Connected Component in the Directed Graph.java Medium Java []
25 Flatten 2D Vector.java Medium Java []
26 Fraction to Recurring Decimal.java Medium Java []
27 Generate Parentheses.java Medium Java []
28 Gray Code.java Medium Java []
29 Group Shifted Strings.java Easy Java []
30 H-Index II.java Medium Java []
31 H-Index.java Medium Java []
32 Hamming Distance.java Easy Java []
33 Happy Number.java Easy Java []
34 Hash Function.java Easy Java []
35 HashHeap.java Hard Java []
36 HashWithArray.java Easy Java []
37 HashWithCustomizedClass(LinkedList).java Medium Java []
38 Heapify.java Medium Java []
39 Heaters.java Easy Java []
40 Identical Binary Tree.java Easy Java []
41 Implement Stack by Two Queues.java Easy Java []
42 Implement Stack using Queues.java Easy Java []
43 Implement Stack.java Easy Java []
44 Implement Trie (Prefix Tree).java Medium Java []
45 IndexMatch.java Easy Java []
46 Inorder Successor in Binary Search Tree.java Medium Java [BST]
47 Insert Interval.java Easy Java []
48 Insert Node in a Binary Search Tree .java Easy Java [BST]
49 Intersection of Two Arrays.java Easy Java []
50 Intersection of Two Linked Lists.java Easy Java []
51 Interval Minimum Number.java Medium Java []
52 Interval Sum II.java Hard Java []
53 Interval Sum.java Medium Java []
54 Invert Binary Tree.java Easy Java []
55 Isomorphic Strings.java Easy Java []
56 Jewels and Stones.java Easy Java [Hash Table]
57 Kth Largest Element.java Medium Java []
58 Kth Smallest Element in a BST.java Medium Java [BST]
59 Kth Smallest Sum In Two Sorted Arrays.java Hard Java []
60 Longest Common Prefix.java Medium Java []
61 Longest Palindromic Substring.java Medium Java []
62 Longest Univalue Path.java Easy Java []
63 Longest Word in Dictionary.java Easy Java []
64 Lowest Common Ancestor II.java Easy Java []
65 Lowest Common Ancestor of a Binary Search Tree.java Medium Java []
66 Lowest Common Ancestor.java Easy Java []
67 LRU Cache.java Hard Java []
68 Majority Number II.java Medium Java []
69 Majority Number III.java Medium Java []
70 Matrix Zigzag Traversal.java Easy Java []
71 Max Area of Island.java Easy Java []
72 Maximum Depth of Binary Tree.java Easy Java []
73 Maximum Subarray III.java Hard Java []
74 Median of two Sorted Arrays.java Hard Java []
75 Merge Intervals.java Easy Java []
76 Merge k Sorted Arrays.java Medium Java []
77 Merge k Sorted Lists.java Medium Java []
78 Merge Sorted Array II.java N/A Java []
79 Merge Two Binary Trees.java Easy Java []
80 Merge Two Sorted Lists.java Easy Java []
81 Minimum Absolute Difference in BST.java Easy Java [BST]
82 Minimum Height Trees.java Medium Java []
83 Minimum Subarray.java N/A Java []
84 MinimumDepthOfBinaryTree.java Easy Java []
85 Missing Ranges.java Medium Java []
86 Multiply Strings.java Medium Java []
87 Next Permutation.java Medium Java []
88 Nth to Last Node in List.java N/A Java []
89 Number Triangles.java N/A Java []
90 O(1) Check Power of 2.java N/A Java []
91 Paint Fence.java Easy Java []
92 Palindrome Linked List.java Easy Java []
93 Palindrome Permutation II.java Medium Java []
94 Palindrome Permutation.java Easy Java []
95 Partition Array by Odd and Even.java N/A Java []
96 Partition Array.java N/A Java []
97 Partition List.java Medium Java []
98 Pascal's Triangle II.java Easy Java []
99 Peeking Iterator.java Medium Java [BST]
100 Permutation Index.java Easy Java []
101 Permutation Sequence.java Medium Java []
102 Permutations.java Medium Java []
103 Populating Next Right Pointers in Each Node II.java Hard Java []
104 Product of Array Exclude Itself.java N/A Java []
105 QuickSort.java Easy Java []
106 Recover Rotated Sorted Array.java N/A Java []
107 Rehashing.java Medium Java []
108 Remove Duplicates from Sorted Array.java Easy Java []
109 Remove Duplicates from Sorted List II.java Medium Java []
110 Remove Duplicates from Sorted List.java Easy Java []
111 Remove Duplicates from Unsorted List.java N/A Java []
112 Remove Invalid Parentheses.java Hard Java []
113 Remove Node in Binary Search Tree.java Hard Java [BST]
114 Reorder List.java Medium Java []
115 Reshape the Matrix.java Easy Java []
116 Restore IP Addresses.java Medium Java []
117 Reverse Linked List II .java Medium Java []
118 Reverse Linked List.java Easy Java []
119 Reverse String.java Easy Java []
120 Reverse Words in a String II.java Medium Java []
121 Reverse Words in a String.java Medium Java []
122 Roman to Integer.java Easy Java []
123 Rotate Image.java Medium Java []
124 Rotate List.java Medium Java []
125 Rotate String.java Easy Java []
126 Search a 2D Matrix II.java Medium Java []
127 Search a 2D Matrix.java Medium Java []
128 Search for a Range.java Medium Java []
129 Search Insert Position.java Easy Java []
130 Search Range in Binary Search Tree .java Medium Java [BST]
131 Search Rotated in Sorted Array II.java N/A Java []
132 Search Rotated in Sorted Array.java Hard Java []
133 Segment Tree Build II.java Medium Java []
134 Segment Tree Build.java Medium Java []
135 Segment Tree Modify.java Medium Java []
136 Segment Tree Query II.java Medium Java []
137 Segment Tree Query.java Medium Java []
138 Serilization and Deserialization Of Binary Tree.java N/A Java []
139 Shortest Word Distance.java Easy Java []
140 Single Number II.java Medium Java []
141 Single Number III.java Medium Java []
142 Single Number.java Easy Java []
143 Sliding Window Maximum.java Hard Java []
144 Sort Color.java Medium Java []
145 Sort Colors II.java N/A Java []
146 Sort Letters by Case.java N/A Java []
147 Sort List.java Medium Java []
148 Space Replacement.java N/A Java []
149 Stone Game.java N/A Java []
150 String Permutation.java Easy Java []
151 String to Integer(atoi).java Easy Java []
152 Strobogrammatic Number II.java Medium Java []
153 Strobogrammatic Number.java Easy Java []
154 Subarray Sum Closest.java Medium Java []
155 Subarray Sum.java Easy Java []
156 Subset.java Medium Java []
157 Subsets II.java Medium Java []
158 Subtree.java Easy Java []
159 Summary Ranges.java Medium Java []
160 Symmetric Binary Tree.java Easy Java []
161 The Smallest Difference.java N/A Java []
162 Top K Frequent Elements.java Medium Java []
163 Top K Frequent Words.java Medium Java []
164 Topological Sorting.java Medium Java []
165 Total Occurrence of Target.java N/A Java []
166 Trailing Zeros.java N/A Java []
167 Tweaked Identical Binary Tree.java Easy Java []
168 Two Lists Sum.java N/A Java []
169 Two Strings Are Anagrams.java Easy Java []
170 Ugly Number II.java Medium Java []
171 Ugly Number.java Medium Java []
172 Unique Binary Search Tree II.java Medium Java [BST]
173 Unique Characters.java N/A Java []
174 Unique Word Abbreviation.java Medium Java []
175 Valid Palindrome.java Easy Java []
176 Valid Parentheses.java Easy Java []
177 Valid Sudoku.java Easy Java []
178 Word Break.java Medium Java []
179 Word Ladder II.java Hard Java []
180 Word Ladder.java Medium Java []
181 Word Pattern.java Easy Java []
182 Zigzag Iterator.java Medium Java [BST]
183 Find Anagram Mappings.java Easy Java [Hash Table]
184 Judge Route Circle.java Easy Java [String]
185 Island Perimeter.java Easy Java [Hash Table]
186 First Unique Character in a String.java Easy Java [Hash Table, String]
187 Power of Three.java Easy Java [Math]
188 Plus One.java Easy Java [Array, Math]
189 Power of Two.java Easy Java [Bit Manipulation, Math]
190 Reverse Vowels of a String.java Easy Java [String, Two Pointers]
191 Guess Number Higher or Lower.java Easy Java [Binary Search]
192 Encode and Decode TinyURL.java Medium Java [Hash Table, Math]
193 Wiggle Sort.java Medium Java [Array, Sort]
194 Queue Reconstruction by Height.java Medium Java [Greedy]
195 2 Sum.java Easy Java [Array, Hash Table]
196 2 Sum II - Input array is sorted.java Medium Java [Array, Binary Search, Two Pointers]
197 2 Sum II.java Medium Java [Array, Binary Search, Two Pointers]
198 Coin Change.java Medium Java [DP, Memoization, Sequence DP]
199 Maximum Product Subarray.java Medium Java [Array, DP]
200 3 Sum Closest.java Medium Java [Array, Two Pointers]
201 Triangle Count.java Medium Java [Array]
202 3 Sum.java Medium Java [Array, Two Pointers]
203 4 Sum.java Medium Java [Hash Table]
204 k Sum.java Hard Java [DP]
205 Longest Increasing Subsequence.java Medium Java [Binary Search, Coordinate DP, DP, Memoization, Sequence DP]
206 Unique Binary Search Tree.java Medium Java [BST, DP, Tree]
207 Trim a Binary Search Tree.java Easy Java [BST, Tree]
208 Unique Paths II.java Medium Java [Array, Coordinate DP, DP]
209 Bomb Enemy.java Medium Java [Coordinate DP, DP]
210 3 Sum Smaller.java Medium Java [Array, Two Pointers]
211 Array Partition I.java Easy Java [Array]
212 1-bit and 2-bit Characters.java Easy Java [Array]
213 Non-decreasing Array.java Easy Java [Array]
214 Max Consecutive Ones.java Easy Java [Array]
215 Find All Numbers Disappeared in an Array.java Easy Java [Array]
216 Maximum Average Subarray I.java Easy Java [Array]
217 Largest Number At Least Twice of Others.java Easy Java [Array]
218 Toeplitz Matrix.java Easy Java [Array]
219 Sum of Two Integers.java Easy Java [Bit Manipulation]
220 Swap Bits.java Easy Java [Bit Manipulation]
221 Update Bits.java Medium Java [Bit Manipulation]
222 Maximum XOR of Two Numbers in an Array.java Medium Java [Bit Manipulation, Trie]
223 Perfect Squares.java Medium Java [BFS, DP, Math, Partition DP]
224 Backpack VI.java Medium Java [Backpack DP, DP]
225 Copy Books.java Hard Java [Binary Search, DP, Partition DP]
226 Valid Perfect Square.java Review Java [Binary Search, Math]
227 Intersection of Two Arrays II.java Easy Java [Binary Search, Hash Table, Sort, Two Pointers]
228 Longest Palindromic Subsequence.java Medium Java [DP, Interval DP, Memoization]
229 Scramble String.java Hard Java [DP, Interval DP, String]
230 Binary Search Tree Iterator.java Medium Java [BST, Design, Stack, Tree]
231 Flatten Nested List Iterator.java Medium Java [Design, Stack]
232 Best Time to Buy and Sell Stock with Cooldown.java Medium Java [DP]
233 Find Peak Element.java Medium Java [Array, Binary Search]
234 Longest Common Subsequence.java Medium Java [DP, Double Sequence DP]
235 Interleaving String.java Hard Java [DP, String]
236 Letter Combinations of a Phone Number.java Medium Java [Backtracking, String]
237 Edit Distance.java Hard Java [DP, Double Sequence DP, String]
238 Distinct Subsequences.java Hard Java [DP, String]
239 Regular Expression Matching.java Review Java [Backtracking, DP, String]
240 Majority Element.java Easy Java [Array, Bit Manipulation, Divide and Conquer]
241 Wildcard Matching.java Hard Java [Backtracking, DP, Greedy, String]
242 Ones and Zeroes.java Hard Java [DP]
243 Pow(x,n).java Medium Java [Binary Search, Math]
244 Word Break II.java Review Java [Backtracking, DP]
245 Nested List Weight Sum.java Easy Java [DFS]
246 Same Tree.java Easy Java [DFS, Tree]
247 Convert Sorted Array to Binary Search Tree.java Easy Java [DFS, Tree]
248 Binary Tree Maximum Path Sum.java Review Java [DFS, Tree]
249 Construct Binary Tree from Inorder and Preorder Traversal.java Medium Java [Array, DFS, Tree]
250 Path Sum.java Easy Java [DFS, Tree]
251 Add Binary.java Easy Java [Math, String]
252 Add Digits.java Easy Java [Math]
253 Add Two Numbers.java Medium Java [Linked List, Math]
254 Add Two Numbers II.java Medium Java [Linked List]
255 Balanced Binary Tree.java Medium Java [DFS, Tree]
256 Valid Anagram.java Easy Java [Hash Table, Sort]
257 Populating Next Right Pointers in Each Node.java Medium Java [DFS, Tree]
258 Validate Binary Search Tree.java Medium Java [BST, DFS, Tree]
259 Convert Sorted List to Binary Search Tree.java Medium Java [DFS, Linked List]
260 Flatten Binary Tree to Linked List.java Medium Java [Binary Tree, DFS]
261 Binary Tree Paths.java Easy Java [Binary Tree, DFS]
262 Minimum Size Subarray Sum.java Medium Java [Array, Binary Search, Two Pointers]
263 Clone Graph.java Medium Java [BFS, DFS, Graph]
264 Longest Substring Without Repeating Characters.java Medium Java [Hash Table, String, Two Pointers]
265 Minimum Window Substring.java Hard Java [Hash Table, String, Two Pointers]
266 Linked List Cycle.java Easy Java [Linked List, Two Pointers]
267 Remove Nth Node From End of List.java Medium Java [Linked List, Two Pointers]
268 Longest Substring with At Most K Distinct Characters.java Medium Java [Hash Table, String]
269 Linked List Cycle II.java Medium Java [Linked List, Two Pointers]
270 Kth Smallest Number in Sorted Matrix.java Medium Java [Binary Search, Heap]
271 Find Minimum in Rotated Sorted Array.java Medium Java [Array, Binary Search]
272 Find Minimum in Rotated Sorted Array II.java Hard Java [Array, Binary Search]
273 Connecting Graph.java Medium Java [Union Find]
274 Connecting Graph II.java Medium Java [Union Find]
275 Connecting Graph III.java Medium Java [Union Find]
276 Number of Islands.java Medium Java [BFS, DFS, Union Find]
277 Number of Islands II.java Hard Java [Union Find]
278 Graph Valid Tree.java Medium Java [BFS, DFS, Graph, Union Find]
279 Surrounded Regions.java Review Java [BFS, DFS, Union Find]
280 Implement Trie.java Medium Java [Design, Trie]
281 Add and Search Word.java Medium Java [Backtracking, Design, Trie]
282 Word Search II.java Hard Java [Backtracking, DFS, Trie]
283 Word Search.java Medium Java [Array, Backtracking]
284 Word Squares.java Hard Java [Backtracking, Trie]
285 Trapping Rain Water.java Hard Java [Array, Stack, Two Pointers]
286 Trapping Rain Water II.java Hard Java [BFS, Heap]
287 Data Stream Median.java Hard Java [Design, Heap]
288 Sliding Window Median.java Hard Java [Design, Heap]
289 Min Stack.java Easy Java [Design, Stack]
290 Implement Queue using Stacks.java Easy Java [Design, Stack]
291 Expression Expand.java Medium Java [DFS, Divide and Conquer, Stack]
292 Largest Rectangle in Histogram.java Hard Java [Array, Monotonous Stack, Stack]
293 Maximum Binary Tree.java Medium Java [Stack, Tree]
294 Reverse Integer.java Easy Java [Math]
295 Swap Nodes in Pairs.java Medium Java [Linked List]
296 Find Peak Element II.java Hard Java [Binary Search, DFS, Divide and Conquer]
297 Sqrt(x).java Easy Java [Binary Search, Math]
298 First Bad Version.java Easy Java [Binary Search]
299 Wood Cut.java Medium Java [Binary Search]
300 Find the Duplicate Number.java Medium Java [Array, Binary Search, Two Pointers]
301 Palindrome Pairs.java Hard Java [Hash Table, String, Trie]
302 Game of Life.java Medium Java [Array]
303 Maximum Average Subarray II.java Review Java [Array, Binary Search]
304 Meeting Rooms.java Easy Java [Sort, Sweep Line]
305 Number of Airplane in the sky.java Medium Java [Array, Interval, Sort, Sweep Line]
306 Meeting Rooms II.java Medium Java [Greedy, Heap, Sort, Sweep Line]
307 Building Outline.java Review Java [Binary Indexed Tree, Divide and Conquer, Heap, Segment Tree, Sweep Line]
308 Unique Path.java Medium Java [Array, Coordinate DP, DP]
309 Maximal Rectangle.java Hard Java [Array, DP, Hash Table, Stack]
310 Maximal Square.java Medium Java [Coordinate DP, DP]
311 Longest Increasing Path in a Matrix.java Hard Java [DFS, DP, Memoization, Topological Sort]
312 Coins in a Line.java Medium Java [DP, Game Theory, Greedy]
313 Coins in a Line II.java Medium Java [Array, DP, Game Theory, Memoization, MiniMax]
314 Binary Tree Inorder Traversal.java Easy Java [Hash Table, Stack, Tree]
315 Path Sum II.java Easy Java [DFS, Tree]
316 Binary Tree Postorder Traversal.java Medium Java [Stack, Tree, Two Stacks]
317 Change to Anagram.java Easy Java [String]
318 Classical Binary Search.java Easy Java [Binary Search]
319 Climbing Stairs.java Easy Java [DP, Memoization, Sequence DP]
320 Coins in a Line III.java Hard Java [Array, DP, Game Theory, Interval DP, Memoization]
321 Closest Binary Search Tree Value.java Easy Java [BST, Binary Search, Tree]
322 Compare Version Numbers.java Medium Java [String]
323 Count Complete Tree Nodes.java Medium Java [Binary Search, Tree]
324 Course Schedule.java Medium Java [BFS, DFS, Graph, Topological Sort]
325 Course Schedule II.java Medium Java [BFS, DFS, Graph, Topological Sort]
326 Alien Dictionary.java Hard Java [BFS, Backtracking, DFS, Graph, Topological Sort]
327 Binary Tree Preorder Traversal.java Easy Java [BFS, DFS, Stack, Tree]
328 Closest Number in Sorted Array.java Easy Java [Binary Search]
329 Complete Binary Tree.java Easy Java [BFS, DFS, Tree]
330 Compare Strings.java Easy Java [String]
331 Contains Duplicate.java Easy Java [Array, Hash Table]
332 Contains Duplicate II.java Easy Java [Array, Hash Table]
333 Contains Duplicate III.java Medium Java [BST]
334 Burst Balloons.java Hard Java [DP, Divide and Conquer, Interval DP, Memoization]
335 Nim Game.java Easy Java [Brainteaser, DP, Game Theory]
336 Convert Integer A to Integer B.java Easy Java [Bit Manipulation]
337 Cosine Similarity.java Easy Java [Basic Implementation]
338 Count 1 in Binary.java Easy Java [Bit Manipulation]
339 Count and Say.java Easy Java [Basic Implementation, String]
340 One Edit Distance.java Medium Java [String]
341 K Edit Distance.java Hard Java [DP, Double Sequence DP, Trie]
342 Jump Game.java Medium Java [Array, DP, Greedy]
343 Coin Change 2.java Medium Java [DP, Sequence DP]
344 Paint House.java Easy Java [DP, Sequence DP]
345 Decode Ways.java Medium Java [DP, Partition DP, String]
346 Longest Continuous Increasing Subsequence.java Easy Java [Array, Coordinate DP, DP]
347 Minimum Path Sum.java Medium Java [Array, Coordinate DP, DP]
348 Counting Bits.java Medium Java [Bit Manipulation, Bitwise DP, DP]
349 Continuous Subarray Sum.java Medium Java [Coordinate DP, DP, Math]
350 House Robber.java Easy Java [DP, Sequence DP]
351 House Robber II.java Medium Java [DP, Sequence DP]
352 House Robber III.java Medium Java [DFS, DP, Status DP, Tree]
353 Paint House II.java Hard Java [DP, Sequence DP]
354 Best Time to Buy and Sell Stock I.java Easy Java [Array, DP, Sequence DP]
355 Best Time to Buy and Sell Stock II.java Easy Java [Array, DP, Greedy, Sequence DP]
356 Best Time to Buy and Sell Stock III .java Hard Java [Array, DP, Sequence DP]
357 Best Time to Buy and Sell Stock IV.java Hard Java [DP, Sequence DP]
358 Russian Doll Envelopes.java Hard Java [Binary Search, Coordinate DP, DP]
359 Jump Game II.java Hard Java [Array, Coordinate DP, DP, Greedy]
360 Palindrome Partitioning.java Medium Java [Backtracking, DFS]
361 Permutation in String.java Medium Java [Two Pointer]
362 Permutations II.java Medium Java [Backtracking]
363 Shuffle an Array.java Medium Java [Permutation]
364 Find All Anagrams in a String.java Easy Java [Hash Table]
365 Group Anagrams.java Medium Java [Hash Table, String]
366 Backpack.java Medium Java [Backpack DP, DP]
367 Backpack II.java Medium Java [Backpack DP, DP]
368 Backpack V.java Medium Java [Backpack DP, DP]
369 Count Primes.java Easy Java [Hash Table, Math]
370 Delete Node in a Linked List.java Easy Java [Linked List]
371 Excel Sheet Column Number.java Easy Java [Math]
372 Excel Sheet Column Title.java Easy Java [Math]
373 Flip Game.java Easy Java [String]
374 Flip Game II.java Review Java [DFS, backtracking]
375 Expression Tree Build.java Hard Java [Binary Tree, Expression Tree, Stack]
376 Expression Evaluation.java Hard Java [Binary Tree, DFS, Expression Tree, Stack]
377 Convert Expression to Polish Notation.java Hard Java [Binary Tree, DFS, Expression Tree, Stack]
378 Convert Expression to Reverse Polish Notation.java Hard Java [Binary Tree, DFS, Expression Tree, Stack]
379 Evaluate Reverse Polish Notation.java Medium Java [Stack]
380 Decode Ways II.java Hard Java [DP, Partition DP]
381 Palindrome Partitioning II.java Hard Java [DP, Partition DP]
382 Backpack III.java Hard Java [Backpack DP, DP]
383 First Missing Positive.java Hard Java [Array]
384 Gas Station.java Medium Java [Greedy]
385 Implement strStr().java Easy Java [String, Two Pointers]
386 Insertion Sort List.java Medium Java [Linked List, Sort]
387 Integer to English Words.java Hard Java [Math, String]
388 Interleaving Positive and Negative Numbers.java Medium Java [Two Pointers]
389 Largest Number.java Medium Java [Sort]
390 Last Position of Target.java Easy Java [Binary Search]
391 Length of Last Word.java Easy Java [String]
392 Longest Common Substring.java Medium Java [DP, Double Sequence DP, String]
393 Longest Consecutive Sequence.java Medium Java [Array, Hash Table]
394 Longest Increasing Continuous subsequence.java Easy Java [Array, Coordinate DP, DP]
395 Longest Increasing Continuous subsequence II.java Medium Java [Array, Coordinate DP, DP, Memoization]
396 N-Queens.java Hard Java [Backtracking]
397 N-Queens II.java Hard Java [Backtracking]
398 Longest Words.java Easy Java [Hash Map, String]
399 Maximum Subarray.java Easy Java [Array, DP, Divide and Conquer, Sequence DP]
400 Maximum Subarray II.java Medium Java [Array, DP, Greedy, Sequence DP]
401 Median.java Easy Java [Array, Quick Select, Quick Sort]
402 Merge Sorted Array.java Easy Java [Array, Two Pointers]
403 Middle of Linked List.java Easy Java []
404 Singleton.java Easy Java [Design]
405 Remove Linked List Elements.java Easy Java [Linked List]

About

Java Solutions to problems on LintCode/LeetCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%