Skip to content

Sasasu/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###LeetCode

(Notes: "♥" means you need buy a book from Leetcode)

# Title
226 Valid Anagram
225 Different Ways to Add Parentheses
224 Search a 2D Matrix II
223 Sliding Window Maximum
222 Product of Array Except Self
221 Delete Node in a Linked List
220 Lowest Common Ancestor of a Binary Tree
219 Lowest Common Ancestor of a Binary Search Tree
218 Palindrome Linked List
217 Number of Digit One
216 Implement Queue using Stacks
215 Power of Two
214 Kth Smallest Element in a BST
213 Majority Element II
212 Summary Ranges
211 Basic Calculator II
210 Invert Binary Tree
209 Implement Stack using Queues
208 Basic Calculator
207 Rectangle Area
206 Count Complete Tree Nodes
205 Maximal Square
204 Contains Duplicate III
203 Contains Duplicate II
202 The Skyline Problem
201 Contains Duplicate
200 Combination Sum III
199 Kth Largest Element in an Array
198 Shortest Palindrome
197 House Robber II
196 Word Search II
195 Add and Search Word - Data structure design
194 Course Schedule II
193 Minimum Size Subarray Sum
192 Implement Trie (Prefix Tree)
191 Course Schedule
190 Reverse Linked List
189 Isomorphic Strings
188 Count Primes
187 Remove Linked List Elements
186 Happy Number
185 Bitwise AND of Numbers Range
184 Number of Islands
183 Binary Tree Right Side View
182 House Robber
181 Number of 1 Bits
180 Reverse Bits
179 Rotate Array
178 Best Time to Buy and Sell Stock IV
177 Repeated DNA Sequences
176 Reverse Words in a String II
175 Largest Number
174 Dungeon Game
173 Binary Search Tree Iterator
172 Factorial Trailing Zeroes
171 Excel Sheet Column Number
170 Two Sum III - Data structure design
169 Majority Element
168 Excel Sheet Column Title
167 Two Sum II - Input array is sorted
166 Fraction to Recurring Decimal
165 Compare Version Numbers
164 Maximum Gap
163 Missing Ranges
162 Find Peak Element
161 One Edit Distance
160 Intersection of Two Linked Lists
159 Longest Substring with At Most Two Distinct Characters
158 Read N Characters Given Read4 II - Call multiple times
157 Read N Characters Given Read4
156 Binary Tree Upside Down
155 Min Stack
154 Find Minimum in Rotated Sorted Array II
153 Find Minimum in Rotated Sorted Array
152 Maximum Product Subarray
151 Reverse Words in a String
150 Evaluate Reverse Polish Notation
149 Max Points on a Line
148 Sort List
147 Insertion Sort List
146 LRU Cache
145 Binary Tree Postorder Traversal
144 Binary Tree Preorder Traversal
143 Reorder List
142 Linked List Cycle II
141 Linked List Cycle
140 Word Break II
139 Word Break
138 Copy List with Random Pointer
137 Single Number II
136 Single Number
135 Candy
134 Gas Station
133 Clone Graph
132 Palindrome Partitioning II
131 Palindrome Partitioning
130 Surrounded Regions
129 Sum Root to Leaf Numbers
128 Longest Consecutive Sequence
127 Word Ladder II
126 Word Ladder
125 Valid Palindrome
124 Binary Tree Maximum Path Sum
123 Best Time to Buy and Sell Stock III
122 Best Time to Buy and Sell Stock II
121 Best Time to Buy and Sell Stock
120 Triangle
119 Pascal's Triangle II
118 Pascal's Triangle
117 Populating Next Right Pointers in Each Node II
116 Populating Next Right Pointers in Each Node
115 Distinct Subsequences
114 Flatten Binary Tree to Linked List
113 Path Sum II
112 Path Sum
111 Minimum Depth of Binary Tree
110 Balanced Binary Tree
109 Convert Sorted List to Binary Search Tree
108 Convert Sorted Array to Binary Search Tree
107 Binary Tree Level Order Traversal II
106 Construct Binary Tree from Inorder and Postorder Traversal
105 Construct Binary Tree from Preorder and Inorder Traversal
104 Maximum Depth of Binary Tree
103 Binary Tree Zigzag Level Order Traversal
102 Binary Tree Level Order Traversal
101 Symmetric Tree
100 Same Tree
99 Recover Binary Search Tree
98 Validate Binary Search Tree
97 Interleaving String
96 Unique Binary Search Trees II
95 Unique Binary Search Trees
94 Binary Tree Inorder Traversal
93 Restore IP Addresses
92 Reverse Linked List II
91 Subsets II
90 Decode Ways
89 Gray Code
88 Merge Sorted Array
87 Scramble String
86 Partition List
85 Maximal Rectangle
84 Largest Rectangle in Histogram
83 Remove Duplicates from Sorted List II
82 Remove Duplicates from Sorted List
81 Search in Rotated Sorted Array II
80 Remove Duplicates from Sorted Array II
79 Word Search
78 Subsets
77 Combinations
76 Minimum Window Substring
75 Sort Colors
74 Search a 2D Matrix
73 Set Matrix Zeroes
72 Edit Distance
71 Simplify Path
70 Climbing Stairs
69 Sqrt(x)
68 Text Justification
67 Plus One
66 Valid Number
65 Add Binary
64 Merge Two Sorted Lists
63 Minimum Path Sum
62 Unique Paths II
61 Unique Paths
60 Rotate List
59 Permutation Sequence
58 Spiral Matrix II
57 Length of Last Word
56 Insert Interval
55 Merge Intervals
54 Jump Game
53 Spiral Matrix
52 Maximum Subarray
51 N-Queens II
50 N-Queens
49 "Pow(x, n)"
48 Group Anagrams
47 Rotate Image
46 Permutations II
45 Permutations
44 Jump Game II
43 Wildcard Matching
42 Multiply Strings
41 Trapping Rain Water
40 First Missing Positive
39 Combination Sum II
38 Combination Sum
37 Count and Say
36 Sudoku Solver
35 Valid Sudoku
34 Search Insert Position
33 Search for a Range
32 Search in Rotated Sorted Array
31 Longest Valid Parentheses
30 Next Permutation
29 Substring with Concatenation of All Words
28 Divide Two Integers
27 Implement strStr()
26 Remove Element
25 Remove Duplicates from Sorted Array
24 Reverse Nodes in k-Group
23 Swap Nodes in Pairs
22 Merge k Sorted Lists
21 Generate Parentheses
20 Valid Parentheses
19 Remove Nth Node From End of List
18 Letter Combinations of a Phone Number
17 4Sum
16 3Sum Closest
15 3Sum
14 Longest Common Prefix
13 Roman to Integer
12 Integer to Roman
11 Container With Most Water
10 Regular Expression Matching
9 Palindrome Number
8 String to Integer (atoi)
7 Reverse Integer
6 ZigZag Conversion
5 Longest Palindromic Substring
4 Add Two Numbers
3 Longest Substring Without Repeating Characters
2 Median of Two Sorted Arrays
1 Two Sum

Releases

No releases published

Packages

No packages published

Languages

  • C++ 76.9%
  • C 21.4%
  • Go 1.4%
  • Python 0.3%