File tree
270 files changed
+317
-269
lines changed- leetcode
- 0002.Add-Two-Numbers
- 0019.Remove-Nth-Node-From-End-of-List
- 0021.Merge-Two-Sorted-Lists
- 0023.Merge-k-Sorted-Lists
- 0024.Swap-Nodes-in-Pairs
- 0025.Reverse-Nodes-in-k-Group
- 0056.Merge-Intervals
- 0057.Insert-Interval
- 0061.Rotate-List
- 0082.Remove-Duplicates-from-Sorted-List-II
- 0083.Remove-Duplicates-from-Sorted-List
- 0086.Partition-List
- 0092.Reverse-Linked-List-II
- 0094.Binary-Tree-Inorder-Traversal
- 0095.Unique-Binary-Search-Trees-II
- 0098.Validate-Binary-Search-Tree
- 0099.Recover-Binary-Search-Tree
- 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
- 0124.Binary-Tree-Maximum-Path-Sum
- 0128.Longest-Consecutive-Sequence
- 0129.Sum-Root-to-Leaf-Numbers
- 0130.Surrounded-Regions
- 0138.Copy-List-With-Random-Pointer
- 0141.Linked-List-Cycle
- 0142.Linked-List-Cycle-II
- 0143.Reorder-List
- 0144.Binary-Tree-Preorder-Traversal
- 0145.Binary-Tree-Postorder-Traversal
- 0147.Insertion-Sort-List
- 0148.Sort-List
- 0160.Intersection-of-Two-Linked-Lists
- 0173.Binary-Search-Tree-Iterator
- 0199.Binary-Tree-Right-Side-View
- 0203.Remove-Linked-List-Elements
- 0206.Reverse-Linked-List
- 0218.The-Skyline-Problem
- 0222.Count-Complete-Tree-Nodes
- 0226.Invert-Binary-Tree
- 0230.Kth-Smallest-Element-in-a-BST
- 0234.Palindrome-Linked-List
- 0235.Lowest-Common-Ancestor-of-a-Binary-Search-Tree
- 0236.Lowest-Common-Ancestor-of-a-Binary-Tree
- 0237.Delete-Node-in-a-Linked-List
- 0257.Binary-Tree-Paths
- 0297.Serialize-and-Deserialize-Binary-Tree
- 0303.Range-Sum-Query-Immutable
- 0307.Range-Sum-Query-Mutable
- 0315.Count-of-Smaller-Numbers-After-Self
- 0327.Count-of-Range-Sum
- 0328.Odd-Even-Linked-List
- 0337.House-Robber-III
- 0382.Linked-List-Random-Node
- 0404.Sum-of-Left-Leaves
- 0429.N-ary-Tree-Level-Order-Traversal
- 0436.Find-Right-Interval
- 0437.Path-Sum-III
- 0445.Add-Two-Numbers-II
- 0493.Reverse-Pairs
- 0508.Most-Frequent-Subtree-Sum
- 0513.Find-Bottom-Left-Tree-Value
- 0515.Find-Largest-Value-in-Each-Tree-Row
- 0530.Minimum-Absolute-Difference-in-BST
- 0538.Convert-BST-to-Greater-Tree
- 0543.Diameter-of-Binary-Tree
- 0547.Number-of-Provinces
- 0563.Binary-Tree-Tilt
- 0572.Subtree-of-Another-Tree
- 0589.N-ary-Tree-Preorder-Traversal
- 0617.Merge-Two-Binary-Trees
- 0623.Add-One-Row-to-Tree
- 0637.Average-of-Levels-in-Binary-Tree
- 0653.Two-Sum-IV-Input-is-a-BST
- 0662.Maximum-Width-of-Binary-Tree
- 0669.Trim-a-Binary-Search-Tree
- 0684.Redundant-Connection
- 0699.Falling-Squares
- 0700.Search-in-a-Binary-Search-Tree
- 0701.Insert-into-a-Binary-Search-Tree
- 0721.Accounts-Merge
- 0725.Split-Linked-List-in-Parts
- 0765.Couples-Holding-Hands
- 0778.Swim-in-Rising-Water
- 0783.Minimum-Distance-Between-BST-Nodes
- 0803.Bricks-Falling-When-Hit
- 0817.Linked-List-Components
- 0839.Similar-String-Groups
- 0863.All-Nodes-Distance-K-in-Binary-Tree
- 0872.Leaf-Similar-Trees
- 0876.Middle-of-the-Linked-List
- 0897.Increasing-Order-Search-Tree
- 0924.Minimize-Malware-Spread
- 0928.Minimize-Malware-Spread-II
- 0938.Range-Sum-of-BST
- 0947.Most-Stones-Removed-with-Same-Row-or-Column
- 0952.Largest-Component-Size-by-Common-Factor
- 0958.Check-Completeness-of-a-Binary-Tree
- 0959.Regions-Cut-By-Slashes
- 0968.Binary-Tree-Cameras
- 0971.Flip-Binary-Tree-To-Match-Preorder-Traversal
- 0979.Distribute-Coins-in-Binary-Tree
- 0986.Interval-List-Intersections
- 0987.Vertical-Order-Traversal-of-a-Binary-Tree
- 0990.Satisfiability-of-Equality-Equations
- 0993.Cousins-in-Binary-Tree
- 1019.Next-Greater-Node-In-Linked-List
- 1022.Sum-of-Root-To-Leaf-Binary-Numbers
- 1026.Maximum-Difference-Between-Node-and-Ancestor
- 1028.Recover-a-Tree-From-Preorder-Traversal
- 1038.Binary-Search-Tree-to-Greater-Sum-Tree
- 1110.Delete-Nodes-And-Return-Forest
- 1123.Lowest-Common-Ancestor-of-Deepest-Leaves
- 1145.Binary-Tree-Coloring-Game
- 1171.Remove-Zero-Sum-Consecutive-Nodes-from-Linked-List
- 1202.Smallest-String-With-Swaps
- 1290.Convert-Binary-Number-in-a-Linked-List-to-Integer
- 1302.Deepest-Leaves-Sum
- 1305.All-Elements-in-Two-Binary-Search-Trees
- 1319.Number-of-Operations-to-Make-Network-Connected
- 1579.Remove-Max-Number-of-Edges-to-Keep-Graph-Fully-Traversable
- 1631.Path-With-Minimum-Effort
- 1649.Create-Sorted-Array-through-Instructions
- 1669.Merge-In-Between-Linked-Lists
- 1721.Swapping-Nodes-in-a-Linked-List
- 2096.Step-By-Step-Directions-From-a-Binary-Tree-Node-to-Another
- 2181.Merge-Nodes-in-Between-Zeros
- 9990352.Data-Stream-as-Disjoint-Intervals
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
270 files changed
+317
-269
lines changedLines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
7 | 16 |
| |
8 |
| - | |
| 17 | + | |
9 | 18 |
| |
| 19 | + | |
10 | 20 |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 |
| |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
4 | 14 |
| |
5 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
6 | 28 |
| |
7 | 29 |
| |
8 | 30 |
| |
9 | 31 |
| |
10 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
11 | 36 |
| |
| 37 | + | |
| 38 | + | |
12 | 39 |
| |
| 40 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
0 commit comments