Skip to content

MyCodeBattle/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##每日LeetCode

每题的简要题解都在C++的代码里。

情况 题号 标题 语言
335 Self Crossing Java
334 Increasing Triplet Subsequence Java
332 Reconstruct Itinerary Java
331 Verify Preorder Serialization of a Binary Tree Java
330 Patching Array Java
329 Longest Increasing Path in a Matrix Java
328 Odd Even Linked List Java
× 327 Count of Range Sum
326 Power of Three Java
324 Wiggle Sort II Java
322 Coin Change Java
321 Create Maximum Number Java
319 Bulb Switcher Java
318 Maximum Product of Word Lengths Java
316 Remove Duplicate Letters C++
313 Super Ugly Number Java
312 Burst Balloons Java
310 Minimum Height Trees Java
309 Best Time to Buy and Sell Stock with Cooldown Java
307 Range Sum Query - Mutable Java
306 Additive Number Java
304 Range Sum Query 2D - Immutable Java
303 Range Sum Query - Immutable Java
301 Remove Invalid Parentheses Java
300 Longest Increasing Subsequence Java
299 Bulls and Cows Java
297 Serialize and Deserialize Binary Tree Java
295 Find Median from Data Stream Java
292 Nim Game Java
290 Word Pattern Java
289 Game of Life Java
287 Find the Duplicate Number Java
284 Peeking Iterator Java
283 Move Zeroes Java
× 280 Expression Add Operators
279 Perfect Squares Java
278 First Bad Version Java
275 H-Index II Java
274 H-Index Java
273 Integer to English Words Java
268 Missing Number Java
263 Ugly Number Java
260 Single Number III Java
258 Add Digits Java
257 Binary Tree Paths Java
250 Valid Anagram Java
249 Different Ways to Add Parentheses Java
240 Search a 2D Matrix II Java
239 Sliding Window Maximum Java
238 Product of Array Except Self  Java
237 Delete Node in a Linked List Java
236 Lowest Common Ancestor of a Binary Tree | Java
235 Lowest Common Ancestor of a Binary Search Tree Java
234 Palindrome Linked List Java
233 Number of Digit One Java
232 Implement Queue using Stacks Java
231 Power of Two Java
230 Kth Smallest Element in a BST Java
229 Majority Element II Java
228 Summary Ranges Java
227 Basic Calculator II Java
226 Invert Binary Tree Java
225 Implement Stack using Queues Java
224 Basic Calculator Java
223 Rectangle Area Java
222 Count Complete Tree Nodes Java
221 Maximal Square Java
220 Contains Duplicate III Java
219  Contains Duplicate II Java
218 The Skyline Problem Java
217 Contains Duplicate Java
216 Combination Sum III Java
215 Kth Largest Element in an Array Java
214 Shortest Palindrome Java
213 House Robber II Java
210 Course Schedule II Java
209 Minimum Size Subarray Sum Java
208 Implement Trie (Prefix Tree) Java
207 Course Schedule Java
206 Reverse Linked List Java
205 Isomorphic Strings Java
204 Count Primes Java
203 Remove Linked List Elements Java
202 Happy Number Java
201 Bitwise AND of Numbers Range Java
200 Number of Islands Java
199 Binary Tree Right Side View Java
198 House Robber Java
191 Number of 1 Bits Java
190 Reverse Bits Java
189 Rotate Array Java
188 Best Time to Buy and Sell Stock IV Java
187 Repeated DNA Sequences Java
179 Largest Number Java
174 Dungeon Game Java
173 Binary Search Tree Iterator Java
172 Factorial Trailing Zeroes Java
171 Excel Sheet Column Number Java
169 Majority Element Java
168 Excel Sheet Column Title Java
166 Fraction to Recurring Decimal Java
165 Compare Version Numbers Java
164 Maximum Gap Java
162 Find Peak Element Java
160 Intersection of Two Linked Lists Java
155 Min Stack Java
154 Find Minimum in Rotated Sorted Array II Java
153 Find Minimum in Rotated Sorted Array Java
152 Maximum Product Subarray Java
151 Reverse Words in a String Java
150 Evaluate Reverse Polish Notation Java
149 Max Points on a Line Java
x 148 Sort List Java
147 Insertion Sort List Java
146 LRU Cache Java
145 Binary Tree Postorder Traversal Java
144 Binary Tree Preorder Traversal Java
143 Reorder List Java
142 Linked List Cycle II Java
141 Linked List Cycle Java
140 Word Break II Java
139 Word Break Java
138 Copy List with Random Pointer Java
x 137 Single Number II
136 Single Number Java
135 Candy Java
134 Gas Station Java
133 Clone Graph Java
132 Palindrome Partitioning II Java
131 Palindrome Partitioning Java
130 Surrounded Regions Java
129 Sum Root to Leaf Numbers Java
128 Longest Consecutive Sequence Java
x 127 Word Ladder
× 126 Word Ladder II
125 Valid Palindrome Java
124 Binary Tree Maximum Path Sum Java
123 Best Time to Buy and Sell Stock III Java
122 Best Time to Buy and Sell Stock II Java
121 Best Time to Buy and Sell Stock Java
120 Triangle Java
119 Pascal's Triangle II Java
118 Pascal's Triangle Java
117 Populating Next Right Pointers in Each Node II Java
116 Populating Next Right Pointers in Each Node Java
115 Distinct Subsequences Java
114 Flatten Binary Tree to Linked List Java
113 Path Sum II Java
112 Path Sum Java
111 Minimum Depth of Binary Tree Java
110 Balanced Binary Tree Java
109 Convert Sorted List to Binary Search Tree Java
108 Convert Sorted Array to Binary Search Tree Java
107 Binary Tree Level Order Traversal II Java
106 Construct Binary Tree from Inorder and Postorder Traversal Java
105 Construct Binary Tree from Preorder and Inorder Traversal Java
104 Maximum Depth of Binary Tree Java
103 Binary Tree Zigzag Level Order Traversal Java
102 inary Tree Level Order Traversal Java
101 Symmetric Tree Java
100 Same Tree Java
099 Recover Binary Search Tree Java
098 Validate Binary Search Tree Java
097 Interleaving String Java
096 Unique Binary Search Trees Java
095 Unique Binary Search Trees II Java
094 Binary Tree Inorder Traversal Java
093 Restore IP Addresses Java
092 Reverse Linked List II Java
091 Decode Ways Java
090 Subsets II Java
089 Gray Code Java
088 Merge Sorted Array Java
087 Scramble String Java
086 Partition List Java
085 Maximal Rectangle  C++
084 Largest Rectangle in Histogram C++
083 Remove Duplicates from Sorted List C++
082 Remove Duplicates from Sorted List II C++
081 Search in Rotated Sorted Array II C++
080 Remove Duplicates from Sorted Array II C++
079 Word Search C++
078 Subsets C++
077 Combinations C++
076 Minimum Window Substring C++
075 Sort Colors C++
074 Search a 2D Matrix C++
073 Set Matrix Zeroes C++
072 Edit Distance C++
071 Simplify Path C++ Java
070 Climbing Stairs C++
069 Sqrt(x) C++
068 Text Justification C++
067 Add Binary C++ Java
066 Plus One C++
065 Valid Number C++
064 Minimum Path Sum C++
063 Unique Paths II C++
062 Unique Paths C++
061 Rotate List C++
060 Permutation Sequence C++
059 Spiral Matrix II C++
058 Length of Last Word C++
057 Insert Interval C++
056 Merge Intervals C++
055 Jump Game C++
054 Spiral Matrix C++
053 Maximum Subarray C++
052 N-Queens II C++
051 N-Queens C++ Java Python
050 Pow(x, n) C++
049 Group Anagrams C++ Java Python
048 Rotate Image C++
045 Jump Game II C++ Java Python
× 044 Wildcard Matching
043 Multiply Strings C++
042 Trapping Rain Water C++
041 First Missing Positive C++ Java Python
040 Combination Sum II C++
039 Combination Sum C++ Java Python
038 Count and Say C++ Java Python
037 Sudoku Solver C++ Java Python
036 Valid Sudoku C++ Java Python
035 Search Insert Position C++
034 Search for a Range C++ Java Python
033 Search in Rotated Sorted Array C++ Java Python
032 Longest Valid Parentheses C++ Java Python
× 031 Next Permutation C++
030 Substring with Concatenation of All Words C++ Java Python
029 Divide Two Integers C++ Java Python
028 Implement strStr() C++ Java Python
027 Remove Element C++ Java Python
026 Remove Duplicates from Sorted Array C++ Java Python
025 Reverse Nodes in kGroup C++ Java Python
024 Swap Nodes in Pairs C++ Java Python
023 Merge k Sorted Lists C++ Java Python
022 Generate Parentheses C++ Java Python
021 Merge Two Sorted Lists C++ Java Python
020 Valid Parentheses C++ Java Python
019 Remove Nth Node From End of List C++ Java Python
018 4Sum C++ Java Python
017 Letter Combinations of a Phone Number C++ Java Python
016 3Sum Closest C++ Java Python
015 3Sum C++ Java Python
014 Longest Common Prefix C++ Java Python
013 Roman to Integer C++ Java Python
012 Integer to Roman C++ Java Python
011 Container With Most Water C++ Java Python
010 Regular Expression Matching C++ Java Python
009 Palindrome Number C++ Java Python
008 String to Integer (atoi) C++ Java Python
007 Reverse Integer C++ Java Python
006 ZigZag Conversion C++ Java Python
005 Longest Palindromic Substring C++ Java Python
004 Median of Two Sorted Arrays C++
003 Longest Substring Without Repeating Characters C++ Java Python
002 Add Two Numbers C++ Java Python
001 Two Sum C++ Java Python

About

About LeetCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published