File tree
3,418 files changed
+74489
-74375
lines changed- solution
- 0000-0099
- 0001.Two Sum
- 0002.Add Two Numbers
- 0003.Longest Substring Without Repeating Characters
- 0004.Median of Two Sorted Arrays
- 0005.Longest Palindromic Substring
- 0006.ZigZag Conversion
- 0007.Reverse Integer
- 0008.String to Integer (atoi)
- 0009.Palindrome Number
- 0010.Regular Expression Matching
- 0011.Container With Most Water
- 0012.Integer to Roman
- 0013.Roman to Integer
- 0014.Longest Common Prefix
- 0015.3Sum
- 0016.3Sum Closest
- 0017.Letter Combinations of a Phone Number
- 0018.4Sum
- 0019.Remove Nth Node From End of List
- 0020.Valid Parentheses
- 0021.Merge Two Sorted Lists
- 0022.Generate Parentheses
- 0023.Merge k Sorted Lists
- 0024.Swap Nodes in Pairs
- 0025.Reverse Nodes in k-Group
- 0026.Remove Duplicates from Sorted Array
- 0027.Remove Element
- 0028.Implement strStr()
- 0029.Divide Two Integers
- 0030.Substring with Concatenation of All Words
- 0031.Next Permutation
- 0032.Longest Valid Parentheses
- 0033.Search in Rotated Sorted Array
- 0034.Find First and Last Position of Element in Sorted Array
- 0035.Search Insert Position
- 0036.Valid Sudoku
- 0037.Sudoku Solver
- 0038.Count and Say
- 0039.Combination Sum
- 0040.Combination Sum II
- 0041.First Missing Positive
- 0042.Trapping Rain Water
- 0043.Multiply Strings
- 0044.Wildcard Matching
- 0045.Jump Game II
- 0046.Permutations
- 0047.Permutations II
- 0048.Rotate Image
- 0049.Group Anagrams
- 0050.Pow(x, n)
- 0051.N-Queens
- 0052.N-Queens II
- 0053.Maximum Subarray
- 0054.Spiral Matrix
- 0055.Jump Game
- 0056.Merge Intervals
- 0057.Insert Interval
- 0058.Length of Last Word
- 0059.Spiral Matrix II
- 0060.Permutation Sequence
- 0061.Rotate List
- 0062.Unique Paths
- 0063.Unique Paths II
- 0064.Minimum Path Sum
- 0065.Valid Number
- 0066.Plus One
- 0067.Add Binary
- 0068.Text Justification
- 0069.Sqrt(x)
- 0070.Climbing Stairs
- 0071.Simplify Path
- 0072.Edit Distance
- 0073.Set Matrix Zeroes
- 0074.Search a 2D Matrix
- 0075.Sort Colors
- 0076.Minimum Window Substring
- 0077.Combinations
- 0078.Subsets
- 0079.Word Search
- 0080.Remove Duplicates from Sorted Array II
- 0081.Search in Rotated Sorted Array II
- 0082.Remove Duplicates from Sorted List II
- 0083.Remove Duplicates from Sorted List
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- 0086.Partition List
- 0087.Scramble String
- 0088.Merge Sorted Array
- 0089.Gray Code
- 0090.Subsets II
- 0091.Decode Ways
- 0092.Reverse Linked List II
- 0093.Restore IP Addresses
- 0094.Binary Tree Inorder Traversal
- 0095.Unique Binary Search Trees II
- 0096.Unique Binary Search Trees
- 0097.Interleaving String
- 0098.Validate Binary Search Tree
- 0099.Recover Binary Search Tree
- 0100-0199
- 0100.Same Tree
- 0101.Symmetric Tree
- 0102.Binary Tree Level Order Traversal
- 0103.Binary Tree Zigzag Level Order Traversal
- 0104.Maximum Depth of Binary Tree
- 0105.Construct Binary Tree from Preorder and Inorder Traversal
- 0106.Construct Binary Tree from Inorder and Postorder Traversal
- 0107.Binary Tree Level Order Traversal II
- 0108.Convert Sorted Array to Binary Search Tree
- 0109.Convert Sorted List to Binary Search Tree
- 0110.Balanced Binary Tree
- 0111.Minimum Depth of Binary Tree
- 0112.Path Sum
- 0113.Path Sum II
- 0114.Flatten Binary Tree to Linked List
- 0115.Distinct Subsequences
- 0116.Populating Next Right Pointers in Each Node
- 0117.Populating Next Right Pointers in Each Node II
- 0118.Pascal's Triangle
- 0119.Pascal's Triangle II
- 0120.Triangle
- 0121.Best Time to Buy and Sell Stock
- 0122.Best Time to Buy and Sell Stock II
- 0123.Best Time to Buy and Sell Stock III
- 0124.Binary Tree Maximum Path Sum
- 0125.Valid Palindrome
- 0126.Word Ladder II
- 0127.Word Ladder
- 0128.Longest Consecutive Sequence
- 0129.Sum Root to Leaf Numbers
- 0130.Surrounded Regions
- 0131.Palindrome Partitioning
- 0132.Palindrome Partitioning II
- 0133.Clone Graph
- 0134.Gas Station
- 0135.Candy
- 0136.Single Number
- 0137.Single Number II
- 0138.Copy List with Random Pointer
- 0139.Word Break
- 0140.Word Break II
- 0141.Linked List Cycle
- 0142.Linked List Cycle II
- 0143.Reorder List
- 0144.Binary Tree Preorder Traversal
- 0145.Binary Tree Postorder Traversal
- 0146.Lru Cache
- 0147.Insertion Sort List
- 0148.Sort List
- 0149.Max Points on a Line
- 0150.Evaluate Reverse Polish Notation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
3,418 files changed
+74489
-74375
lines changed+37-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 | 8 |
| |
10 |
| - | |
| 9 | + | |
11 | 10 |
| |
12 |
| - | |
| 11 | + | |
13 | 12 |
| |
14 |
| - | |
| 13 | + | |
15 | 14 |
| |
16 |
| - | |
17 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
18 | 37 |
| |
19 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
20 | 51 |
| |
21 | 52 |
| |
22 | 53 |
| |
|
+29-7
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 |
| |
13 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 |
| |
15 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
16 | 28 |
| |
| 29 | + | |
17 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
18 | 35 |
| |
19 |
| - | |
| 36 | + | |
| 37 | + | |
20 | 38 |
| |
21 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
22 | 45 |
| |
23 |
| - | |
24 | 46 |
| |
25 | 47 |
| |
26 | 48 |
| |
|
+36-7
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 | 8 |
| |
10 |
| - | |
| 9 | + | |
11 | 10 |
| |
12 |
| - | |
| 11 | + | |
13 | 12 |
| |
14 |
| - | |
| 13 | + | |
15 | 14 |
| |
16 |
| - | |
17 |
| - | |
18 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
19 | 30 |
| |
20 | 31 |
| |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
21 | 50 |
| |
22 | 51 |
| |
23 | 52 |
| |
|
+27-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
12 |
| - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 |
| |
15 |
| - | |
| 20 | + | |
16 | 21 |
| |
17 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 |
| |
19 |
| - | |
| 27 | + | |
20 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
21 | 32 |
| |
22 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
23 | 44 |
| |
24 | 45 |
| |
25 | 46 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 | 8 |
| |
10 |
| - | |
| 9 | + | |
11 | 10 |
| |
12 |
| - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 |
| |
14 |
| - | |
| 18 | + | |
15 | 19 |
| |
16 | 20 |
| |
17 | 21 |
| |
18 | 22 |
| |
19 |
| - | |
| 23 | + | |
| 24 | + | |
20 | 25 |
| |
21 |
| - | |
| 26 | + | |
22 | 27 |
| |
23 | 28 |
| |
24 | 29 |
| |
25 | 30 |
| |
26 |
| - | |
| 31 | + | |
| 32 | + | |
27 | 33 |
| |
28 |
| - | |
29 |
| - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
30 | 43 |
| |
31 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
32 | 55 |
| |
33 | 56 |
| |
34 | 57 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
| 7 | + | |
10 | 8 |
| |
| 9 | + | |
11 | 10 |
| |
12 | 11 |
| |
13 | 12 |
| |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
21 | 16 |
| |
22 | 17 |
| |
23 |
| - | |
24 |
| - | |
25 | 18 |
| |
26 | 19 |
| |
27 | 20 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
35 | 24 |
| |
36 | 25 |
| |
37 |
| - | |
38 |
| - | |
39 | 26 |
| |
40 | 27 |
| |
41 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
42 | 34 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
| 35 | + | |
50 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
51 | 40 |
| |
52 | 41 |
| |
53 |
| - | |
| 42 | + | |
| 43 | + | |
54 | 44 |
| |
55 |
| - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
56 | 49 |
| |
57 |
| - | |
58 | 50 |
| |
59 | 51 |
| |
60 | 52 |
| |
|
0 commit comments