Skip to content

About

Java Solutions to problems on LintCode/LeetCode

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Java Algorithm Problems

To host Java Solutions to algorithm problems from LintCode, LeetCode...etc. I Will try to revise the solutions once new problem or new testing case occurs.

Squence Problem Level Language
0 [2 Sum II - Input array is sorted.java](https://github.com/shawnfan/LintCode/blob/master/Java/2 Sum II - Input array is sorted.java) Java
1 [2 Sum II.java](https://github.com/shawnfan/LintCode/blob/master/Java/2 Sum II.java) Java
2 [2 Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/2 Sum.java) Java
3 [3 Sum Closest.java](https://github.com/shawnfan/LintCode/blob/master/Java/3 Sum Closest.java) Java
4 [3 Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/3 Sum.java) Java
5 [3Sum Smaller.java](https://github.com/shawnfan/LintCode/blob/master/Java/3Sum Smaller.java) Java
6 [4 Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/4 Sum.java) Java
7 A+B.java Java
8 [Add and Search Word.java](https://github.com/shawnfan/LintCode/blob/master/Java/Add and Search Word.java) Java
9 [Add Binary.java](https://github.com/shawnfan/LintCode/blob/master/Java/Add Binary.java) Java
10 [Add Two Numbers II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Add Two Numbers II.java) Java
11 [Add Two Numbers.java](https://github.com/shawnfan/LintCode/blob/master/Java/Add Two Numbers.java) Java
12 [Alien Dictionary.java](https://github.com/shawnfan/LintCode/blob/master/Java/Alien Dictionary.java) Java
13 Anagrams.java Java
14 [Backpack II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Backpack II.java) Java
15 Backpack.java Java
16 [Balanced Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Balanced Binary Tree.java) Java
17 [Best Time to Buy and Sell Stock I.java](https://github.com/shawnfan/LintCode/blob/master/Java/Best Time to Buy and Sell Stock I.java) Java
18 [Best Time to Buy and Sell Stock II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Best Time to Buy and Sell Stock II.java) Java
19 [Best Time to Buy and Sell Stock III .java](https://github.com/shawnfan/LintCode/blob/master/Java/Best Time to Buy and Sell Stock III .java) Java
20 [Best Time to Buy and Sell Stock IV.java](https://github.com/shawnfan/LintCode/blob/master/Java/Best Time to Buy and Sell Stock IV.java) Java
21 [Binary Representation.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Representation.java) Java
22 [Binary Search Tree Iterator.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Search Tree Iterator.java) Java
23 [Binary Tree Inorder Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Inorder Traversal.java) Java
24 [Binary Tree Level Order Traversal II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Level Order Traversal II.java) Java
25 [Binary Tree Level Order Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Level Order Traversal.java) Java
26 [Binary Tree Longest Consecutive Sequence.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Longest Consecutive Sequence.java) Java
27 [Binary Tree Maximum Path Sum II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Maximum Path Sum II.java) Java
28 [Binary Tree Maximum Path Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Maximum Path Sum.java) Java
29 [Binary Tree Path Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Path Sum.java) Java
30 [Binary Tree Paths.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Paths.java) Java
31 [Binary Tree Postorder Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Postorder Traversal.java) Java
32 [Binary Tree Preorder Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Preorder Traversal.java) Java
33 [Binary Tree Right Side View.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Right Side View.java) Java
34 [Binary Tree Zigzag Level Order Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Binary Tree Zigzag Level Order Traversal.java) Java
35 [Building Outline.java](https://github.com/shawnfan/LintCode/blob/master/Java/Building Outline.java) Java
36 [Burst Balloons.java](https://github.com/shawnfan/LintCode/blob/master/Java/Burst Balloons.java) Java
37 [Classical Binary Search.java](https://github.com/shawnfan/LintCode/blob/master/Java/Classical Binary Search.java) Java
38 [Climbing Stairs.java](https://github.com/shawnfan/LintCode/blob/master/Java/Climbing Stairs.java) Java
39 [Clone Graph.java](https://github.com/shawnfan/LintCode/blob/master/Java/Clone Graph.java) Java
40 [Closest Binary Search Tree Value.java](https://github.com/shawnfan/LintCode/blob/master/Java/Closest Binary Search Tree Value.java) Java
41 [Closest Number in Sorted Array.java](https://github.com/shawnfan/LintCode/blob/master/Java/Closest Number in Sorted Array.java) Java
42 [Coins in a Line.java](https://github.com/shawnfan/LintCode/blob/master/Java/Coins in a Line.java) Java
43 [Combination Sum II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Combination Sum II.java) Java
44 [Combination Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Combination Sum.java) Java
45 Combinations.java Java
46 [Compare Strings.java](https://github.com/shawnfan/LintCode/blob/master/Java/Compare Strings.java) Java
47 [Complete Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Complete Binary Tree.java) Java
48 [Construct Binary Tree from Inorder and Postorder Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Construct Binary Tree from Inorder and Postorder Traversal.java) Java
49 [Construct Binary Tree from Inorder and Preorder Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Construct Binary Tree from Inorder and Preorder Traversal.java) Java
50 [Container With Most Water.java](https://github.com/shawnfan/LintCode/blob/master/Java/Container With Most Water.java) Java
51 [Convert Binary Search Tree to Doubly Linked List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Convert Binary Search Tree to Doubly Linked List.java) Java
52 [Convert Expression to Polish Notation.java](https://github.com/shawnfan/LintCode/blob/master/Java/Convert Expression to Polish Notation.java) Java
53 [Convert Expression to Reverse Polish Notation.java](https://github.com/shawnfan/LintCode/blob/master/Java/Convert Expression to Reverse Polish Notation.java) Java
54 [Convert Integer A to Integer B.java](https://github.com/shawnfan/LintCode/blob/master/Java/Convert Integer A to Integer B.java) Java
55 [Convert Sorted Array to Binary Search Tree With Minimal Height.java](https://github.com/shawnfan/LintCode/blob/master/Java/Convert Sorted Array to Binary Search Tree With Minimal Height.java) Java
56 [Convert Sorted List to Binary Search Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Convert Sorted List to Binary Search Tree.java) Java
57 [Copy List with Random Pointer.java](https://github.com/shawnfan/LintCode/blob/master/Java/Copy List with Random Pointer.java) Java
58 [Cosine Similarity.java](https://github.com/shawnfan/LintCode/blob/master/Java/Cosine Similarity.java) Java
59 [Count 1 in Binary.java](https://github.com/shawnfan/LintCode/blob/master/Java/Count 1 in Binary.java) Java
60 [Count and Say.java](https://github.com/shawnfan/LintCode/blob/master/Java/Count and Say.java) Java
61 [Count of Smaller Number before itself.java](https://github.com/shawnfan/LintCode/blob/master/Java/Count of Smaller Number before itself.java) Java
62 [Count of Smaller Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Count of Smaller Number.java) Java
63 [Count Primes.java](https://github.com/shawnfan/LintCode/blob/master/Java/Count Primes.java) Java
64 [Course Schedule II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Course Schedule II.java) Java
65 [Course Schedule.java](https://github.com/shawnfan/LintCode/blob/master/Java/Course Schedule.java) Java
66 [Data Stream Median.java](https://github.com/shawnfan/LintCode/blob/master/Java/Data Stream Median.java) Java
67 [Delete Digits.java](https://github.com/shawnfan/LintCode/blob/master/Java/Delete Digits.java) Java
68 [Delete Node in the Middle of Singly Linked List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Delete Node in the Middle of Singly Linked List.java) Java
69 [Distinct Subsequences.java](https://github.com/shawnfan/LintCode/blob/master/Java/Distinct Subsequences.java) Java
70 [Easy Reverse Linked List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Easy Reverse Linked List.java) Java
71 [Edit Distance.java](https://github.com/shawnfan/LintCode/blob/master/Java/Edit Distance.java) Java
72 [Encode and Decode Strings.java](https://github.com/shawnfan/LintCode/blob/master/Java/Encode and Decode Strings.java) Java
73 [Excel Sheet Column Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Excel Sheet Column Number.java) Java
74 [ExcelSheetColumnNumber .java](https://github.com/shawnfan/LintCode/blob/master/Java/ExcelSheetColumnNumber .java) Java
75 [Expression Evaluation.java](https://github.com/shawnfan/LintCode/blob/master/Java/Expression Evaluation.java) Java
76 [Expression Tree Build.java](https://github.com/shawnfan/LintCode/blob/master/Java/Expression Tree Build.java) Java
77 [Fast Power.java](https://github.com/shawnfan/LintCode/blob/master/Java/Fast Power.java) Java
78 Fibonacci.java Java
79 [Find Minimum in Rotated Sorted Array II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Find Minimum in Rotated Sorted Array II.java) Java
80 [Find Minimum in Rotated Sorted Array.java](https://github.com/shawnfan/LintCode/blob/master/Java/Find Minimum in Rotated Sorted Array.java) Java
81 [Find Peak Element II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Find Peak Element II.java) Java
82 [Find Peak Element.java](https://github.com/shawnfan/LintCode/blob/master/Java/Find Peak Element.java) Java
83 [Find the Connected Component in the Undirected Graph.java](https://github.com/shawnfan/LintCode/blob/master/Java/Find the Connected Component in the Undirected Graph.java) Java
84 [Find the Weak Connected Component in the Directed Graph.java](https://github.com/shawnfan/LintCode/blob/master/Java/Find the Weak Connected Component in the Directed Graph.java) Java
85 [First Bad Version.java](https://github.com/shawnfan/LintCode/blob/master/Java/First Bad Version.java) Java
86 [First Missing Positive.java](https://github.com/shawnfan/LintCode/blob/master/Java/First Missing Positive.java) Java
87 [Flatten 2D Vector.java](https://github.com/shawnfan/LintCode/blob/master/Java/Flatten 2D Vector.java) Java
88 [Flatten Binary Tree to Linked List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Flatten Binary Tree to Linked List.java) Java
89 [Flattern 2D Vector.java](https://github.com/shawnfan/LintCode/blob/master/Java/Flattern 2D Vector.java) Java
90 [Flip Game II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Flip Game II.java) Java
91 [Flip Game.java](https://github.com/shawnfan/LintCode/blob/master/Java/Flip Game.java) Java
92 [Fraction to Recurring Decimal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Fraction to Recurring Decimal.java) Java
93 [Game of Life.java](https://github.com/shawnfan/LintCode/blob/master/Java/Game of Life.java) Java
94 [Gas Station.java](https://github.com/shawnfan/LintCode/blob/master/Java/Gas Station.java) Java
95 [Generate Parentheses.java](https://github.com/shawnfan/LintCode/blob/master/Java/Generate Parentheses.java) Java
96 [Graph Valid Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Graph Valid Tree.java) Java
97 [Gray Code.java](https://github.com/shawnfan/LintCode/blob/master/Java/Gray Code.java) Java
98 [Group Anagrams.java](https://github.com/shawnfan/LintCode/blob/master/Java/Group Anagrams.java) Java
99 [H-Index II.java](https://github.com/shawnfan/LintCode/blob/master/Java/H-Index II.java) Java
100 H-Index.java Java
101 [Happy Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Happy Number.java) Java
102 [Hash Function.java](https://github.com/shawnfan/LintCode/blob/master/Java/Hash Function.java) Java
103 HashWithArray.java Java
104 Heapify.java Java
105 [House Robber.java](https://github.com/shawnfan/LintCode/blob/master/Java/House Robber.java) Java
106 [Identical Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Identical Binary Tree.java) Java
107 [Implement Queue by Two Stacks.java](https://github.com/shawnfan/LintCode/blob/master/Java/Implement Queue by Two Stacks.java) Java
108 [Implement Stack by Two Queues.java](https://github.com/shawnfan/LintCode/blob/master/Java/Implement Stack by Two Queues.java) Java
109 [Implement Stack.java](https://github.com/shawnfan/LintCode/blob/master/Java/Implement Stack.java) Java
110 [Implement strStr().java](https://github.com/shawnfan/LintCode/blob/master/Java/Implement strStr().java) Java
111 [Implement Trie (Prefix Tree).java](https://github.com/shawnfan/LintCode/blob/master/Java/Implement Trie (Prefix Tree).java) Java
112 [Implement Trie.java](https://github.com/shawnfan/LintCode/blob/master/Java/Implement Trie.java) Java
113 [Insert Interval.java](https://github.com/shawnfan/LintCode/blob/master/Java/Insert Interval.java) Java
114 [Insert Node in a Binary Search Tree .java](https://github.com/shawnfan/LintCode/blob/master/Java/Insert Node in a Binary Search Tree .java) Java
115 [Insertion Sort List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Insertion Sort List.java) Java
116 [Integer to English Words.java](https://github.com/shawnfan/LintCode/blob/master/Java/Integer to English Words.java) Java
117 [Interleaving Positive and Negative Numbers.java](https://github.com/shawnfan/LintCode/blob/master/Java/Interleaving Positive and Negative Numbers.java) Java
118 [Interleaving String.java](https://github.com/shawnfan/LintCode/blob/master/Java/Interleaving String.java) Java
119 [Intersection of Two Linked Lists.java](https://github.com/shawnfan/LintCode/blob/master/Java/Intersection of Two Linked Lists.java) Java
120 [Interval Minimum Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Interval Minimum Number.java) Java
121 [Interval Sum II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Interval Sum II.java) Java
122 [Interval Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Interval Sum.java) Java
123 [Invert Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Invert Binary Tree.java) Java
124 [Jump Game II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Jump Game II.java) Java
125 [Jump Game.java](https://github.com/shawnfan/LintCode/blob/master/Java/Jump Game.java) Java
126 [Kth Largest Element.java](https://github.com/shawnfan/LintCode/blob/master/Java/Kth Largest Element.java) Java
127 [Kth Smallest Element in a BST.java](https://github.com/shawnfan/LintCode/blob/master/Java/Kth Smallest Element in a BST.java) Java
128 [Kth Smallest Sum In Two Sorted Arrays.java](https://github.com/shawnfan/LintCode/blob/master/Java/Kth Smallest Sum In Two Sorted Arrays.java) Java
129 [Largest Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Largest Number.java) Java
130 [Largest Rectangle in Histogram.java](https://github.com/shawnfan/LintCode/blob/master/Java/Largest Rectangle in Histogram.java) Java
131 [Last Position of Target.java](https://github.com/shawnfan/LintCode/blob/master/Java/Last Position of Target.java) Java
132 [Length of Last Word.java](https://github.com/shawnfan/LintCode/blob/master/Java/Length of Last Word.java) Java
133 [Letter Combinations of a Phone Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Letter Combinations of a Phone Number.java) Java
134 [Linked List Cycle II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Linked List Cycle II.java) Java
135 [Linked List Cycle.java](https://github.com/shawnfan/LintCode/blob/master/Java/Linked List Cycle.java) Java
136 [Longest Common Prefix.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Common Prefix.java) Java
137 [Longest Common Subsequence.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Common Subsequence.java) Java
138 [Longest Common Substring.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Common Substring.java) Java
139 [Longest Consecutive Sequence.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Consecutive Sequence.java) Java
140 [Longest Increasing Continuous subsequence II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Increasing Continuous subsequence II.java) Java
141 [Longest Increasing Continuous subsequence.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Increasing Continuous subsequence.java) Java
142 [Longest Increasing Subsequence.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Increasing Subsequence.java) Java
143 [Longest Palindromic Substring.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Palindromic Substring.java) Java
144 [Longest Substring with At Most K Distinct Characters.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Substring with At Most K Distinct Characters.java) Java
145 [Longest Substring Without Repeating Characters.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Substring Without Repeating Characters.java) Java
146 [Longest Words.java](https://github.com/shawnfan/LintCode/blob/master/Java/Longest Words.java) Java
147 [Lowest Common Ancestor II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Lowest Common Ancestor II.java) Java
148 [Lowest Common Ancestor of a Binary Search Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Lowest Common Ancestor of a Binary Search Tree.java) Java
149 [Lowest Common Ancestor.java](https://github.com/shawnfan/LintCode/blob/master/Java/Lowest Common Ancestor.java) Java
150 [LRU Cache.java](https://github.com/shawnfan/LintCode/blob/master/Java/LRU Cache.java) Java
151 [Majority Number II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Majority Number II.java) Java
152 [Majority Number III.java](https://github.com/shawnfan/LintCode/blob/master/Java/Majority Number III.java) Java
153 [Majority Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Majority Number.java) Java
154 [Matrix Zigzag Traversal.java](https://github.com/shawnfan/LintCode/blob/master/Java/Matrix Zigzag Traversal.java) Java
155 [Max Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Max Tree.java) Java
156 [Maximal Square.java](https://github.com/shawnfan/LintCode/blob/master/Java/Maximal Square.java) Java
157 [Maximum Depth of Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Maximum Depth of Binary Tree.java) Java
158 [Maximum Product Subarray.java](https://github.com/shawnfan/LintCode/blob/master/Java/Maximum Product Subarray.java) Java
159 [Maximum Subarray III.java](https://github.com/shawnfan/LintCode/blob/master/Java/Maximum Subarray III.java) Java
160 MaximumSubarray.java Java
161 MaximumSubarrayII.java Java
162 [Median of two Sorted Arrays.java](https://github.com/shawnfan/LintCode/blob/master/Java/Median of two Sorted Arrays.java) Java
163 Median.java Java
164 [Meeting Rooms II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Meeting Rooms II.java) Java
165 [Meeting Rooms.java](https://github.com/shawnfan/LintCode/blob/master/Java/Meeting Rooms.java) Java
166 [Merge Intervals.java](https://github.com/shawnfan/LintCode/blob/master/Java/Merge Intervals.java) Java
167 [Merge k Sorted Arrays.java](https://github.com/shawnfan/LintCode/blob/master/Java/Merge k Sorted Arrays.java) Java
168 [Merge k Sorted Lists.java](https://github.com/shawnfan/LintCode/blob/master/Java/Merge k Sorted Lists.java) Java
169 [Merge Sorted Array II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Merge Sorted Array II.java) Java
170 [Merge Sorted Array.java](https://github.com/shawnfan/LintCode/blob/master/Java/Merge Sorted Array.java) Java
171 [Merge Two Sorted List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Merge Two Sorted List.java) Java
172 [Merge Two Sorted Lists.java](https://github.com/shawnfan/LintCode/blob/master/Java/Merge Two Sorted Lists.java) Java
173 [Middle of Linked List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Middle of Linked List.java) Java
174 [Min Stack.java](https://github.com/shawnfan/LintCode/blob/master/Java/Min Stack.java) Java
175 [Minimum Height Trees.java](https://github.com/shawnfan/LintCode/blob/master/Java/Minimum Height Trees.java) Java
176 [Minimum Path Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Minimum Path Sum.java) Java
177 [Minimum Size Subarray Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Minimum Size Subarray Sum.java) Java
178 [Minimum Subarray.java](https://github.com/shawnfan/LintCode/blob/master/Java/Minimum Subarray.java) Java
179 [Minimum Window Substring.java](https://github.com/shawnfan/LintCode/blob/master/Java/Minimum Window Substring.java) Java
180 MinimumDepthOfBinaryTree.java Java
181 [Missing Ranges.java](https://github.com/shawnfan/LintCode/blob/master/Java/Missing Ranges.java) Java
182 [Multiply Strings.java](https://github.com/shawnfan/LintCode/blob/master/Java/Multiply Strings.java) Java
183 [Next Permutation.java](https://github.com/shawnfan/LintCode/blob/master/Java/Next Permutation.java) Java
184 [Nim Game.java](https://github.com/shawnfan/LintCode/blob/master/Java/Nim Game.java) Java
185 NQueens.java Java
186 NQueensII.java Java
187 [Nth to Last Node in List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Nth to Last Node in List.java) Java
188 [Number of Airplane in the sky.java](https://github.com/shawnfan/LintCode/blob/master/Java/Number of Airplane in the sky.java) Java
189 [Number of Islands II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Number of Islands II.java) Java
190 [Number of Islands.java](https://github.com/shawnfan/LintCode/blob/master/Java/Number of Islands.java) Java
191 [Number Triangles.java](https://github.com/shawnfan/LintCode/blob/master/Java/Number Triangles.java) Java
192 [O(1) Check Power of 2.java](https://github.com/shawnfan/LintCode/blob/master/Java/O(1) Check Power of 2.java) Java
193 [One Edit Distance.java](https://github.com/shawnfan/LintCode/blob/master/Java/One Edit Distance.java) Java
194 [Paint Fence.java](https://github.com/shawnfan/LintCode/blob/master/Java/Paint Fence.java) Java
195 [Palindrome Linked List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Palindrome Linked List.java) Java
196 [Palindrome Partitioning II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Palindrome Partitioning II.java) Java
197 [Palindrome Partitioning.java](https://github.com/shawnfan/LintCode/blob/master/Java/Palindrome Partitioning.java) Java
198 [Palindrome Permutation.java](https://github.com/shawnfan/LintCode/blob/master/Java/Palindrome Permutation.java) Java
199 [Partition Array by Odd and Even.java](https://github.com/shawnfan/LintCode/blob/master/Java/Partition Array by Odd and Even.java) Java
200 [Partition Array.java](https://github.com/shawnfan/LintCode/blob/master/Java/Partition Array.java) Java
201 [Partition List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Partition List.java) Java
202 [Peeking Iterator.java](https://github.com/shawnfan/LintCode/blob/master/Java/Peeking Iterator.java) Java
203 [Perfect Squares.java](https://github.com/shawnfan/LintCode/blob/master/Java/Perfect Squares.java) Java
204 [Permutation Index.java](https://github.com/shawnfan/LintCode/blob/master/Java/Permutation Index.java) Java
205 [Permutations II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Permutations II.java) Java
206 Permutations.java Java
207 [Plus One.java](https://github.com/shawnfan/LintCode/blob/master/Java/Plus One.java) Java
208 Pow(x,n).java Java
209 [Product of Array Exclude Itself.java](https://github.com/shawnfan/LintCode/blob/master/Java/Product of Array Exclude Itself.java) Java
210 QuickSort.java Java
211 [Recover Rotated Sorted Array.java](https://github.com/shawnfan/LintCode/blob/master/Java/Recover Rotated Sorted Array.java) Java
212 Rehashing.java Java
213 [Remove Duplicates from Sorted Array.java](https://github.com/shawnfan/LintCode/blob/master/Java/Remove Duplicates from Sorted Array.java) Java
214 [Remove Duplicates from Sorted List II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Remove Duplicates from Sorted List II.java) Java
215 [Remove Duplicates from Sorted List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Remove Duplicates from Sorted List.java) Java
216 [Remove Duplicates from Unsorted List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Remove Duplicates from Unsorted List.java) Java
217 [Remove Linked List Elements.java](https://github.com/shawnfan/LintCode/blob/master/Java/Remove Linked List Elements.java) Java
218 [Remove Node in Binary Search Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Remove Node in Binary Search Tree.java) Java
219 [Remove Nth Node From End of List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Remove Nth Node From End of List.java) Java
220 [Reorder List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Reorder List.java) Java
221 [Restore IP Addresses.java](https://github.com/shawnfan/LintCode/blob/master/Java/Restore IP Addresses.java) Java
222 [Reverse Integer.java](https://github.com/shawnfan/LintCode/blob/master/Java/Reverse Integer.java) Java
223 [Reverse Linked List II .java](https://github.com/shawnfan/LintCode/blob/master/Java/Reverse Linked List II .java) Java
224 [Reverse Linked List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Reverse Linked List.java) Java
225 [Reverse Words in a String II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Reverse Words in a String II.java) Java
226 [Reverse Words in a String.java](https://github.com/shawnfan/LintCode/blob/master/Java/Reverse Words in a String.java) Java
227 reverseInteger.java Java
228 [Rotate Image.java](https://github.com/shawnfan/LintCode/blob/master/Java/Rotate Image.java) Java
229 [Rotate List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Rotate List.java) Java
230 [Rotate String.java](https://github.com/shawnfan/LintCode/blob/master/Java/Rotate String.java) Java
231 [Search a 2D Matrix II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Search a 2D Matrix II.java) Java
232 [Search a 2D Matrix.java](https://github.com/shawnfan/LintCode/blob/master/Java/Search a 2D Matrix.java) Java
233 [Search for a Range.java](https://github.com/shawnfan/LintCode/blob/master/Java/Search for a Range.java) Java
234 [Search Insert Position.java](https://github.com/shawnfan/LintCode/blob/master/Java/Search Insert Position.java) Java
235 [Search Range in Binary Search Tree .java](https://github.com/shawnfan/LintCode/blob/master/Java/Search Range in Binary Search Tree .java) Java
236 [Search Rotated in Sorted Array II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Search Rotated in Sorted Array II.java) Java
237 [Search Rotated in Sorted Array.java](https://github.com/shawnfan/LintCode/blob/master/Java/Search Rotated in Sorted Array.java) Java
238 [Segment Tree Build II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Segment Tree Build II.java) Java
239 [Segment Tree Build.java](https://github.com/shawnfan/LintCode/blob/master/Java/Segment Tree Build.java) Java
240 [Segment Tree Modify.java](https://github.com/shawnfan/LintCode/blob/master/Java/Segment Tree Modify.java) Java
241 [Segment Tree Query II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Segment Tree Query II.java) Java
242 [Segment Tree Query.java](https://github.com/shawnfan/LintCode/blob/master/Java/Segment Tree Query.java) Java
243 [Serilization and Deserialization Of Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Serilization and Deserialization Of Binary Tree.java) Java
244 [Single Number II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Single Number II.java) Java
245 [Single Number III.java](https://github.com/shawnfan/LintCode/blob/master/Java/Single Number III.java) Java
246 [Single Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Single Number.java) Java
247 Singleton.java Java
248 [Sliding Window Maximum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Sliding Window Maximum.java) Java
249 [Sliding Window Median.java](https://github.com/shawnfan/LintCode/blob/master/Java/Sliding Window Median.java) Java
250 [Sort Color.java](https://github.com/shawnfan/LintCode/blob/master/Java/Sort Color.java) Java
251 [Sort Colors II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Sort Colors II.java) Java
252 [Sort Letters by Case.java](https://github.com/shawnfan/LintCode/blob/master/Java/Sort Letters by Case.java) Java
253 [Sort List.java](https://github.com/shawnfan/LintCode/blob/master/Java/Sort List.java) Java
254 [Space Replacement.java](https://github.com/shawnfan/LintCode/blob/master/Java/Space Replacement.java) Java
255 Sqrt(x).java Java
256 [Stone Game.java](https://github.com/shawnfan/LintCode/blob/master/Java/Stone Game.java) Java
257 [String to Integer(atoi).java](https://github.com/shawnfan/LintCode/blob/master/Java/String to Integer(atoi).java) Java
258 [String to Integer.java](https://github.com/shawnfan/LintCode/blob/master/Java/String to Integer.java) Java
259 [Strobogrammatic Number II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Strobogrammatic Number II.java) Java
260 [Strobogrammatic Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Strobogrammatic Number.java) Java
261 StrStr.java Java
262 [Subarray Sum Closest.java](https://github.com/shawnfan/LintCode/blob/master/Java/Subarray Sum Closest.java) Java
263 [Subarray Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Subarray Sum.java) Java
264 Subset.java Java
265 [Subsets II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Subsets II.java) Java
266 Subtree.java Java
267 [Summary Ranges.java](https://github.com/shawnfan/LintCode/blob/master/Java/Summary Ranges.java) Java
268 [Surrounded Regions.java](https://github.com/shawnfan/LintCode/blob/master/Java/Surrounded Regions.java) Java
269 [Swap Nodes in Pairs.java](https://github.com/shawnfan/LintCode/blob/master/Java/Swap Nodes in Pairs.java) Java
270 [Symmetric Binar Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Symmetric Binar Tree.java) Java
271 [Symmetric Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Symmetric Binary Tree.java) Java
272 [The Smallest Difference.java](https://github.com/shawnfan/LintCode/blob/master/Java/The Smallest Difference.java) Java
273 [Top K Frequent Words.java](https://github.com/shawnfan/LintCode/blob/master/Java/Top K Frequent Words.java) Java
274 [Topological Sorting.java](https://github.com/shawnfan/LintCode/blob/master/Java/Topological Sorting.java) Java
275 [Total Occurrence of Target.java](https://github.com/shawnfan/LintCode/blob/master/Java/Total Occurrence of Target.java) Java
276 [Trailing Zeros.java](https://github.com/shawnfan/LintCode/blob/master/Java/Trailing Zeros.java) Java
277 [Trapping Rain Water II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Trapping Rain Water II.java) Java
278 [Trapping Rain Water.java](https://github.com/shawnfan/LintCode/blob/master/Java/Trapping Rain Water.java) Java
279 [Triangle Count.java](https://github.com/shawnfan/LintCode/blob/master/Java/Triangle Count.java) Java
280 [Tweaked Identical Binary Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Tweaked Identical Binary Tree.java) Java
281 [Two Lists Sum.java](https://github.com/shawnfan/LintCode/blob/master/Java/Two Lists Sum.java) Java
282 [Two Strings Are Anagrams.java](https://github.com/shawnfan/LintCode/blob/master/Java/Two Strings Are Anagrams.java) Java
283 [Ugly Number II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Ugly Number II.java) Java
284 [Ugly Number.java](https://github.com/shawnfan/LintCode/blob/master/Java/Ugly Number.java) Java
285 [Unique Binary Search Tree II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Unique Binary Search Tree II.java) Java
286 [Unique Binary Search Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Unique Binary Search Tree.java) Java
287 [Unique Characters.java](https://github.com/shawnfan/LintCode/blob/master/Java/Unique Characters.java) Java
288 [Unique Path.java](https://github.com/shawnfan/LintCode/blob/master/Java/Unique Path.java) Java
289 [Unique Paths II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Unique Paths II.java) Java
290 [Unique Word Abbreviation.java](https://github.com/shawnfan/LintCode/blob/master/Java/Unique Word Abbreviation.java) Java
291 [Update Bits.java](https://github.com/shawnfan/LintCode/blob/master/Java/Update Bits.java) Java
292 [Valid Anagram.java](https://github.com/shawnfan/LintCode/blob/master/Java/Valid Anagram.java) Java
293 [Valid Palindrome.java](https://github.com/shawnfan/LintCode/blob/master/Java/Valid Palindrome.java) Java
294 [Valid Parentheses.java](https://github.com/shawnfan/LintCode/blob/master/Java/Valid Parentheses.java) Java
295 [Valid Sudoku.java](https://github.com/shawnfan/LintCode/blob/master/Java/Valid Sudoku.java) Java
296 [Validate Binary Search Tree.java](https://github.com/shawnfan/LintCode/blob/master/Java/Validate Binary Search Tree.java) Java
297 [Wiggle Sort.java](https://github.com/shawnfan/LintCode/blob/master/Java/Wiggle Sort.java) Java
298 [Wood Cut.java](https://github.com/shawnfan/LintCode/blob/master/Java/Wood Cut.java) Java
299 [Word Break.java](https://github.com/shawnfan/LintCode/blob/master/Java/Word Break.java) Java
300 [Word Ladder II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Word Ladder II.java) Java
301 [Word Ladder.java](https://github.com/shawnfan/LintCode/blob/master/Java/Word Ladder.java) Java
302 [Word Pattern.java](https://github.com/shawnfan/LintCode/blob/master/Java/Word Pattern.java) Java
303 [Word Search II.java](https://github.com/shawnfan/LintCode/blob/master/Java/Word Search II.java) Java
304 [Word Search.java](https://github.com/shawnfan/LintCode/blob/master/Java/Word Search.java) Java
305 [Zigzag Iterator.java](https://github.com/shawnfan/LintCode/blob/master/Java/Zigzag Iterator.java) Java

About

Java Solutions to problems on LintCode/LeetCode

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages