Skip to content

hooting/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Repository files navigation

Welcome to the LeetCode Solutions!

#TitleC++PythonJavaDifficulty
1Two SumC++PythonJavaMedium
2Add Two NumbersC++PythonJavaMedium
3Longest Substring Without Repeating CharactersC++PythonJavaMedium
4Median of Two Sorted ArraysC++PythonJavaHard
5Longest Palindromic SubstringC++PythonJavaMedium
6ZigZag ConversionC++PythonJavaEasy
7Reverse IntegerC++PythonJavaEasy
8String to Integer (atoi)C++PythonJavaEasy
9Palindrome NumberC++PythonJavaEasy
10Regular Expression MatchingC++PythonJavaHard
11Container With Most WaterC++PythonJavaMedium
12Integer to RomanC++PythonJavaMedium
13Roman to IntegerC++PythonJavaEasy
14Longest Common PrefixC++PythonJavaEasy
153SumC++PythonJavaMedium
163Sum ClosestC++PythonJavaMedium
17Letter Combinations of a Phone NumberC++PythonJavaMedium
184SumC++PythonJavaMedium
19Remove Nth Node From End of ListC++PythonJavaEasy
20Valid ParenthesesC++PythonJavaEasy
21Merge Two Sorted ListsC++PythonJavaEasy
22Generate ParenthesesC++PythonJavaMedium
23Merge k Sorted ListsC++PythonJavaHard
24Swap Nodes in PairsC++PythonJavaMedium
25Reverse Nodes in k-GroupC++PythonJavaHard
26Remove Duplicates from Sorted ArrayC++PythonJavaEasy
27Remove ElementC++PythonJavaEasy
28Implement strStr()C++PythonJavaEasy
29Divide Two IntegersC++PythonJavaMedium
30Substring with Concatenation of All WordsC++PythonJavaHard
31Next PermutationC++PythonJavaMedium
32Longest Valid ParenthesesC++PythonJavaHard
33Search in Rotated Sorted ArrayC++PythonJavaHard
34Search for a RangeC++PythonJavaMedium
35Search Insert PositionC++PythonJavaMedium
36Valid SudokuC++PythonJavaEasy
37Sudoku SolverC++PythonJavaHard
38Count and SayC++PythonJavaEasy
39Combination SumC++PythonJavaMedium
40Combination Sum IIC++PythonJavaMedium
41First Missing PositiveC++PythonJavaMedium
42Trapping Rain WaterC++PythonJavaHard
43Multiply StringsC++PythonJavaMedium
44Wildcard MatchingC++PythonJavaHard
45Jump Game IIC++PythonJavaHard
46PermutationsC++PythonJavaMedium
47Permutations IIC++PythonJavaHard
49AnagramsC++PythonJavaMedium
50Pow(x, n)C++PythonJavaMedium
51N-QueensC++PythonJavaHard
52N-Queens IIC++PythonJavaHard
54Spiral MatrixC++PythonJavaMedium
55Jump GameC++PythonJavaMedium
57Insert IntervalC++PythonJavaHard
58Length of Last WordC++PythonJavaEasy
59Spiral Matrix IIC++PythonJavaMedium
60Permutation SequenceC++PythonJavaMedium
61Rotate ListC++PythonJavaMedium
65Valid NumberC++PythonJavaHard
67Add BinaryC++PythonJavaEasy
68Text JustificationC++PythonJavaHard
69Sqrt(x)C++PythonJavaMedium
70Climbing StairsC++PythonJavaEasy
72Edit DistanceC++JavaPythonHard
77CombinationsC++PythonJavaMedium
82Remove Duplicates from Sorted List IIC++PythonJavaMedium
83Remove Duplicates from Sorted ListC++PythonJavaEasy
86Partition ListC++PythonJavaMedium
89Gray CodeC++PythonMedium
91Decode WaysC++PythonJavaMedium
92Reverse Linked List IIC++PythonJavaMedium
93Restore IP AddressesC++PythonJavaMedium
94Binary Tree Inorder TraversalC++PythonJavaMedium
97Interleaving StringC++PythonJavaHard
100Same TreeC++PythonJavaEasy
104Maximum Depth of Binary TreeC++PythonJavaEasy
108Convert Sorted Array to Binary Search TreeC++PythonJavaMedium
109Convert Sorted List to Binary Search TreeC++PythonJavaMedium
110Balanced Binary TreeC++PythonJavaEasy
115Distinct SubsequencesC++PythonJavaHard
121Best Time to Buy and Sell StockC++PythonJavaMedium
122Best Time to Buy and Sell Stock IIC++PythonJavaMedium
123Best Time to Buy and Sell Stock IIIC++PythonJavaHard
124Binary Tree Maximum Path SumC++PythonJavaHard
125Valid PalindromeC++PythonJavaEasy
128Longest Consecutive SequenceC++PythonJavaHard
131Palindrome PartitioningC++PythonJavaMedium
132Palindrome Partitioning IIC++PythonHard
145Binary Tree Postorder TraversalC++PythonJavaHard
146LRU CacheC++PythonJavaHard
153Find Minimum in Rotated Sorted ArrayC++PythonJavaMedium
154Find Minimum in Rotated Sorted Array IIC++PythonJavaHard
160Intersection of Two Linked ListsC++PythonJavaEasy
162Find Peak ElementC++PythonJavaMedium
165Compare Version NumbersC++PythonJavaEasy
166Fraction to Recurring DecimalC++PythonJavaMedium
168Excel Sheet Column TitleC++PythonJavaEasy
169Majority ElementC++PythonJavaEasy
171Excel Sheet Column NumberC++PythonJavaEasy
172Factorial Trailing ZeroesC++PythonJavaEasy
173Binary Search Tree IteratorC++PythonJavaMedium
174Dungeon GameC++PythonJavaHard
187Repeated DNA SequencesC++PythonJavaMedium
188Best Time to Buy and Sell Stock IVC++PythonJavaHard
190Reverse BitsC++PythonJavaEasy
191Number of 1 BitsC++PythonJavaEasy
198House RobberC++PythonJavaEasy
199Binary Tree Right Side ViewC++PythonJavaMedium
200Number of IslandsC++PythonJavaMedium
201Bitwise AND of Numbers RangeC++PythonJavaMedium
202Happy NumberC++PythonJavaEasy
203Remove Linked List ElementsC++PythonJavaEasy
204Count PrimesC++PythonJavaEasy
205Isomorphic StringsC++PythonJavaEasy
206Reverse Linked ListC++PythonJavaEasy
207Course ScheduleC++PythonJavaMedium
208Implement Trie (Prefix Tree)C++PythonJavaMedium
209Minimum Size Subarray SumC++PythonJavaMedium
210Course Schedule IIC++PythonJavaMedium
211Add and Search Word - Data structure designC++PythonJavaMedium
212Word Search IIC++PythonJavaHard
213House Robber IIC++PythonJavaMedium
215Kth Largest Element in an ArrayC++PythonJavaMedium
216Combination Sum IIIC++PythonJavaMedium
217Contains DuplicateC++PythonJavaEasy
219Contains Duplicate IIC++PythonJavaEasy
220Contains Duplicate IIIC++PythonJavaMedium
221Maximal SquareC++PythonJavaMedium
222Count Complete Tree NodesC++PythonJavaMedium
223Rectangle AreaC++PythonJavaEasy
224Basic CalculatorC++PythonJavaMedium
225Implement Stack using QueuesC++PythonJavaEasy
226Invert Binary TreeC++PythonJavaEasy
227Basic Calculator IIC++PythonJavaMedium
228Summary RangesC++PythonJavaEasy
229Majority Element IIC++PythonJavaMedium
230Kth Smallest Element in a BSTC++PythonJavaMedium
231Power of TwoC++PythonJavaEasy
232Implement Queue using StacksC++PythonJavaEasy
233Number of Digit OneC++PythonJavaMedium
234Palindrome Linked ListC++PythonJavaEasy
235Lowest Common Ancestor of a Binary Search TreeC++PythonJavaEasy
236Lowest Common Ancestor of a Binary TreeC++PythonJavaMedium
237Delete Node in a Linked ListC++PythonJavaEasy
238Product of Array Except SelfC++PythonJavaMedium
240Search a 2D Matrix IIC++PythonJavaMedium
241Different Ways to Add ParenthesesC++PythonJavaMedium
242Valid AnagramC++PythonJavaEasy
257Binary Tree PathsC++PythonJavaEasy
258Add DigitsC++PythonJavaEasy
260Single Number IIIC++PythonJavaMedium
263Ugly NumberC++PythonJavaEasy
264Ugly Number IIC++PythonJavaMedium
268Missing NumberC++PythonJavaMedium
273Integer to English WordsC++PythonJavaMedium
274H-IndexC++PythonJavaMedium
275H-Index IIC++PythonJavaMedium
278First Bad VersionC++PythonJavaEasy
279Perfect SquaresC++PythonJavaMedium
283Move ZeroesC++PythonJavaEasy
284Peeking IteratorC++PythonJavaMedium

About

Solutions to Questions on https://leetcode.com/problemset/algorithms/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published