Skip to content

yagao0o/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode Python Solutions by Yagao0o

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

About

LeetCode Solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.1%
  • Java 19.9%