View Code? Open in Web Editor
NEW
Python 3 Solutions to LeetCode problems.
leetcode's Introduction
- * indicates that I could not solve the problem.
- # indicates that I did not write the most optimal solution.
- + indicates that I found the optimal solution, but I want to review this problem again.
- ? indicates that there is no reference solution.
ID |
Name |
Q |
A |
202008W3D5 |
Numbers With Same Consecutive Differences |
Q |
A |
202008W2D7 |
Longest Palindrome |
Q |
A |
202007W4D7 |
Task Scheduler |
Q |
A |
202007W4D6* |
Construct Binary Tree from Inorder and Postorder Traversal |
Q |
A |
202007W4D5# |
Add Digits |
Q |
A |
202007W4D4# |
Find Minimum in Rotated Sorted Array II |
Q |
A |
202007W4D3# |
All Paths From Source to Target |
Q |
A |
202007W4D2# |
Single Number III |
Q |
A |
202007W4D1 |
Binary Tree Zigzag Level Order Traversal |
Q |
A |
202007W3D7 |
Word Search |
Q |
A |
202007W3D6 |
Remove Linked List Elements |
Q |
A |
202007W3D5 |
Add Binary |
Q |
A |
202007W3D4 |
Course Schedule II |
Q |
A |
202007W3D3 |
Top K Frequent Elements |
Q |
A |
202007W3D2 |
Pow(x, n) |
Q |
A |
202007W3D1 |
Reverse Words in a String |
Q |
A |
202007W2D7 |
Angle Between Hands of a Clock |
Q |
A |
202007W2D6 |
Same Tree |
Q |
A |
202007W2D5 |
Reverse Bits |
Q |
A |
202007W2D4 |
Subsets |
Q |
A |
202007W2D3 |
Flatten a Multilevel Doubly Linked List |
Q |
A |
202007W2D2 |
Maximum Width of Binary Tree |
Q |
A |
202007W2D1* |
3Sum |
Q |
A |
202007W1D7# |
Island Perimeter |
Q |
A |
202007W1D6 |
Plus One |
Q |
A |
202007W1D5# |
Hamming Distance |
Q |
A |
202007W1D4# |
Ugly Number II |
Q |
A |
202007W1D3+ |
Prison Cells After N Days |
Q |
A |
202007W1D2+ |
Binary Tree Level Order Traversal II |
Q |
A |
202007W1D1# |
Arranging Coins |
Q |
A |
ID |
Name |
Difficulty |
Q |
A |
973 |
K Closest Points to Origin |
Medium |
Q |
A1 A2 |
953 |
Verifying an Alien Dictionary |
Easy |
Q |
A |
929 |
Unique Email Addresses |
Easy |
Q |
A |
621+ |
Task Scheduler |
Medium |
Q |
A |
412 |
Fizz Buzz |
Easy |
Q |
A |
394 |
Decode String |
Medium |
Q |
A |
344 |
Reverse String |
Easy |
Q |
A |
301 |
Removed Invalid Parentheses |
Hard |
Q |
A1 A2 |
289* |
Game of Life |
Medium |
Q |
A1 A2 |
283 |
Move Zeroes |
Easy |
Q |
A |
273 |
Integer to English Words |
Hard |
Q |
A |
268+ |
Missing Number |
Easy |
Q |
A |
253 |
Meeting Rooms II |
Medium |
Q |
A |
238* |
Product of Array Except Self |
Medium |
Q |
A1 A2 |
234 |
Palindrome Linked List |
Easy |
Q |
A1 A2 |
215+ |
Kth Largest Element in an Array |
Medium |
Q |
A |
206 |
Reverse Linked List |
Easy |
Q |
A1 A2 |
200 |
Number of Islands |
Medium |
Q |
A |
146 |
LRU Cache |
Medium |
Q |
A |
139* |
Word Break |
Medium |
Q |
A |
136 |
Single Number |
Easy |
Q |
A |
125 |
Valid Palindrome |
Easy |
Q |
A |
121 |
Best Time to Buy and Sell Stock |
Medium |
Q |
A |
88 |
Merge Sorted Array |
Easy |
Q |
A1 A2 A3 |
85 |
Maximal Rectangle |
Hard |
Q |
A |
83 |
Remove Duplicates from Sorted List |
Easy |
Q |
A |
79 |
Word Search |
Medium |
Q |
A |
78* |
Subsets |
Medium |
Q |
A |
69 |
Sqrt(x) |
Easy |
Q |
A1 A2 A3 |
67 |
Add Binary |
Easy |
Q |
A |
56 |
Merge Intervals |
Medium |
Q |
A1 A2 |
49* |
Group Anagrams |
Medium |
Q |
A1 A2 A3 |
43 |
Multiply Strings |
Medium |
Q |
A |
39 |
Combination Sum |
Medium |
Q |
A |
38 |
Count and Say |
Medium |
Q |
A |
36 |
Valid Sudoku |
Medium |
Q |
A |
35 |
Search Insert Position |
Easy |
Q |
A |
34 |
Find First and Last Position of Element in Sorted Array |
Medium |
Q |
A |
33 |
Search in Rotated Sorted Array |
Medium |
Q |
A |
32* |
Longest Valid Parentheses |
Hard |
Q |
A |
31 |
Next Permutation |
Medium |
Q |
A |
29 |
Divide Two Integers |
Medium |
Q |
A |
28 |
Implement strStr() |
Easy |
Q |
A |
27 |
Remove Element |
Easy |
Q |
A |
26 |
Remove Duplicates from Sorted Array |
Easy |
Q |
A |
25 |
Reverse Nodes in k-Group |
Hard |
Q |
A |
24 |
Swap Nodes in Pairs |
Medium |
Q |
A |
23+ |
Merge k Sorted Lists |
Hard |
Q |
A1 A2 |
22 |
Generate Parentheses |
Medium |
Q |
A1 A2 |
21 |
Merge Two Sorted Lists |
Easy |
Q |
A |
20 |
Valid Parentheses |
Easy |
Q |
A |
19 |
Remove Nth Node From End of List |
Medium |
Q |
A1 A2 |
18* |
4Sum |
Medium |
Q |
A |
17 |
Letter Combinations of a Phone Number |
Medium |
Q |
A |
16 |
3Sum Closest |
Medium |
Q |
A |
15* |
3Sum |
Easy |
Q |
A |
14 |
Longest Common Prefix |
Easy |
Q |
A |
13 |
Roman to Integer |
Medium |
Q |
A |
12 |
Integer to Roman |
Medium |
Q |
A |
11* |
Container with Most Water |
Medium |
Q |
A |
10 |
Regular Expression Matching |
Hard |
Q |
A |
9 |
Palindrome Number |
Easy |
Q |
A1 A2 |
8 |
String to Integer (atoi) |
Medium |
Q |
A |
7 |
Reverse Integer |
Easy |
Q |
A |
6 |
ZigZag Conversion |
Medium |
Q |
A |
5 |
Longest Palindromic Substring |
Medium |
Q |
A |
3 |
Longest Substring Without Repeating Characters |
Medium |
Q |
A |
2 |
Add Two Numbers |
Medium |
Q |
A |
1 |
Two Sum |
Easy |
Q |
A1 A2 A3 |
leetcode's People
Contributors
Stargazers