Friday, March 25, 2016

Sticky Post: All of my published Leetcode Solution in Java

1-60 61-100 101-191
1. Two sum 61. Rotate List 121. Best Time to Buy and Sell Stock 
2. Add Two Numbers 62. Unique Paths  122. Best Time to Buy and Sell Stock II 
3. Longest Substring Without Repeating Characters 63. Unique Paths II  123. Best Time to Buy and Sell Stock III 
4. Median of Two Sorted Arrays 64. Minimum Path Sum 
5. Longest Palindromic Substring 65. Valid Number  125. Valid Palindrome 
6. ZigZag Conversion 66. Plus One 
7. Reverse Integer  67. Add Binary 127. Word Ladder 
8. String to Integer (atoi)  68. Text Justification  128. Longest Consecutive Sequence 
9. Palindrome Number  69. Sqrt(x)  129. Sum Root to Leaf Numbers 
10. Regular Expression Matching  70. Climbing Stairs 130. Surrounded Regions 
11. Container With Most Water
131. Palindrome Partitioning 
12. Integer to Roman 72. Edit Distance  132. Palindrome Partitioning II 
13. Roman to Integer 73. Set Matrix Zeroes  133. Clone Graph 
14. Longest Common Prefix 74. Search a 2D Matrix 134. Gas Station 
15. 3Sum  75. Sort Colors  135. Candy  
16. 3Sum Closest  76. Minimum Window Substring 136. Single Number 
17. Letter Combinations of a Phone Number  77. Combinations 137. Single Number II 
18. 4Sum 78. Subsets  138. Copy List with Random Pointer
19. Remove Nth Node From End of List 79. Word Search  139. Word Break 
20. Valid Parentheses 80. Remove Duplicates from Sorted Array II 140. Word Break II 
21. Merge Two Sorted Lists  81. Search in Rotated Sorted Array II  141. Linked List Cycle 
22. Generate Parentheses 82. Remove Duplicates from Sorted List II  142. Linked List Cycle II 
23. Merge k Sorted Lists  83. Remove Duplicates from Sorted List  143. Reorder List
24. Swap Nodes in Pairs  84. Largest Rectangle in Histogram 144. Binary Tree Preorder Traversal
25. Reverse Nodes in k-Group 85. Maximal Rectangle  145. Binary Tree Postorder Traversal
26. Remove Duplicates from Sorted Array 86. Partition List 146. LRU Cache
27. Remove Element 87. Scramble String  147. Insertion Sort List
28. Implement strStr()  88. Merge Sorted Array  148. Sort List 
29. Divide Two Integers 89. Gray Code 150. Evaluate Reverse Polish Notation
30. Substring with Concatenation of All Words 90. Subsets II 151. Reverse Words in a String
31. Next Permutation 91. Decode Ways  152. Maximum Product Subarray
32. Longest Valid Parentheses 92. Reverse Linked List II 153. Find Minimum in Rotated Sorted Array
33. Search in Rotated Sorted Array 93. Restore IP Addresses  154. Find Minimum in Rotated Sorted Array II
34. Search for a Range 94. Binary Tree Inorder Traversal 155. Min Stack
35. Search Insert Position 95. Unique Binary Search Trees II 160. Intersection of Two Linked Lists
36. Valid Sudoku  96. Unique Binary Search Trees  162. Find Peak Element
37. Sudoku Solver  97. Interleaving String 164. Maximum Gap
38. Count and Say 98. Validate Binary Search Tree 168. Excel Sheet Column Title
39. Combination Sum  99. Recover Binary Search Tree  169. Majority Element
40. Combination Sum II  100. Same Tree  171. Excel Sheet Column Number
41. First Missing Positive 101. Symmetric Tree  172. Factorial Trailing Zeroes
42. Trapping Rain Water 102. Binary Tree Level Order Traversal 173. Binary Search Tree Iterator
43. Multiply Strings  103. Binary Tree Zigzag Level Order Traversal 174. Dungeon Game
44. Wildcard Matching 104. Maximum Depth of Binary Tree 179. Largest Number
45. Jump Game II 105. Construct Binary Tree from Preorder and Inorder Traversal  187. Repeated DNA Sequences
46. Permutations 106. Construct Binary Tree from Inorder and Postorder Traversal  
47. Permutations II  107. Binary Tree Level Order Traversal II  188. Best Time to Buy and Sell Stock IV
48. Rotate Image  108. Convert Sorted Array to Binary Search Tree 
49. Anagrams  109. Convert Sorted List to Binary Search Tree 
50. Pow(x, n) 110. Balanced Binary Tree 
51. N-Queens  111. Minimum Depth of Binary Tree 
52. N-Queens II  112. Path Sum
53. Maximum Subarray 113. Path Sum II
54. Spiral Matrix 114. Flatten Binary Tree to Linked List 
55. Jump Game  115. Distinct Subsequences 
56. Merge Intervals  116. Populating Next Right Pointers in Each Node 
57. Insert Interval   117. Populating Next Right Pointers in Each Node II 
58. Length of Last Word  118. Pascal's Triangle 
59. Spiral Matrix II  119. Pascal's Triangle II 
60. Permutation Sequence  120. Triangle 
 









Sticky Post: All of my published Leetcode Solution in Java

1-60 61-100 101-191
1. Two sum 61. Rotate List 121. Best Time to Buy and Sell Stock 
2. Add Two Numbers 62. Unique Paths  122. Best Time to Buy and Sell Stock II 
3. Longest Substring Without Repeating Characters 63. Unique Paths II  123. Best Time to Buy and Sell Stock III 
4. Median of Two Sorted Arrays 64. Minimum Path Sum 124. Binary Tree Maximum Path Sum
5. Longest Palindromic Substring 65. Valid Number  125. Valid Palindrome 
6. ZigZag Conversion 66. Plus One 
7. Reverse Integer  67. Add Binary 127. Word Ladder 
8. String to Integer (atoi)  68. Text Justification  128. Longest Consecutive Sequence 
9. Palindrome Number  69. Sqrt(x)  129. Sum Root to Leaf Numbers 
10. Regular Expression Matching  70. Climbing Stairs 130. Surrounded Regions 
11. Container With Most Water 71. Simplify Path 131. Palindrome Partitioning 
12. Integer to Roman 72. Edit Distance  132. Palindrome Partitioning II 
13. Roman to Integer 73. Set Matrix Zeroes  133. Clone Graph 
14. Longest Common Prefix 74. Search a 2D Matrix 134. Gas Station 
15. 3Sum  75. Sort Colors  135. Candy  
16. 3Sum Closest  76. Minimum Window Substring 136. Single Number 
17. Letter Combinations of a Phone Number  77. Combinations 137. Single Number II 
18. 4Sum 78. Subsets  138. Copy List with Random Pointer
19. Remove Nth Node From End of List 79. Word Search  139. Word Break 
20. Valid Parentheses 80. Remove Duplicates from Sorted Array II 140. Word Break II 
21. Merge Two Sorted Lists  81. Search in Rotated Sorted Array II  141. Linked List Cycle 
22. Generate Parentheses 82. Remove Duplicates from Sorted List II  142. Linked List Cycle II 
23. Merge k Sorted Lists  83. Remove Duplicates from Sorted List  143. Reorder List
24. Swap Nodes in Pairs  84. Largest Rectangle in Histogram 144. Binary Tree Preorder Traversal
25. Reverse Nodes in k-Group 85. Maximal Rectangle  145. Binary Tree Postorder Traversal
26. Remove Duplicates from Sorted Array 86. Partition List 146. LRU Cache
27. Remove Element 87. Scramble String  147. Insertion Sort List
28. Implement strStr()  88. Merge Sorted Array  148. Sort List 
29. Divide Two Integers 89. Gray Code 150. Evaluate Reverse Polish Notation
30. Substring with Concatenation of All Words 90. Subsets II 151. Reverse Words in a String
31. Next Permutation 91. Decode Ways  152. Maximum Product Subarray
32. Longest Valid Parentheses 92. Reverse Linked List II 153. Find Minimum in Rotated Sorted Array
33. Search in Rotated Sorted Array 93. Restore IP Addresses  154. Find Minimum in Rotated Sorted Array II
34. Search for a Range 94. Binary Tree Inorder Traversal 155. Min Stack
35. Search Insert Position 95. Unique Binary Search Trees II 160. Intersection of Two Linked Lists
36. Valid Sudoku  96. Unique Binary Search Trees  162. Find Peak Element
37. Sudoku Solver  97. Interleaving String 164. Maximum Gap
38. Count and Say 98. Validate Binary Search Tree 168. Excel Sheet Column Title
39. Combination Sum  99. Recover Binary Search Tree  169. Majority Element
40. Combination Sum II  100. Same Tree  171. Excel Sheet Column Number
41. First Missing Positive 101. Symmetric Tree  172. Factorial Trailing Zeroes
42. Trapping Rain Water 102. Binary Tree Level Order Traversal 173. Binary Search Tree Iterator
43. Multiply Strings  103. Binary Tree Zigzag Level Order Traversal 174. Dungeon Game
44. Wildcard Matching 104. Maximum Depth of Binary Tree 179. Largest Number
45. Jump Game II 105. Construct Binary Tree from Preorder and Inorder Traversal  187. Repeated DNA Sequences
46. Permutations 106. Construct Binary Tree from Inorder and Postorder Traversal  
47. Permutations II  107. Binary Tree Level Order Traversal II  188. Best Time to Buy and Sell Stock IV
48. Rotate Image  108. Convert Sorted Array to Binary Search Tree 
49. Anagrams  109. Convert Sorted List to Binary Search Tree 
50. Pow(x, n) 110. Balanced Binary Tree 
51. N-Queens  111. Minimum Depth of Binary Tree 
52. N-Queens II  112. Path Sum
53. Maximum Subarray 113. Path Sum II
54. Spiral Matrix 114. Flatten Binary Tree to Linked List 
55. Jump Game  115. Distinct Subsequences 
56. Merge Intervals  116. Populating Next Right Pointers in Each Node 
57. Insert Interval   117. Populating Next Right Pointers in Each Node II 
58. Length of Last Word  118. Pascal's Triangle 
59. Spiral Matrix II  119. Pascal's Triangle II 
60. Permutation Sequence  120. Triangle