File tree
839 files changed
+1577
-1577
lines changed- solution
- 0000-0099
- 0002.Add Two Numbers
- 0011.Container With Most Water
- 0017.Letter Combinations of a Phone Number
- 0019.Remove Nth Node From End of List
- 0021.Merge Two Sorted Lists
- 0024.Swap Nodes in Pairs
- 0025.Reverse Nodes in k-Group
- 0036.Valid Sudoku
- 0037.Sudoku Solver
- 0038.Count and Say
- 0042.Trapping Rain Water
- 0048.Rotate Image
- 0051.N-Queens
- 0052.N-Queens II
- 0054.Spiral Matrix
- 0059.Spiral Matrix II
- 0061.Rotate List
- 0062.Unique Paths
- 0063.Unique Paths II
- 0064.Minimum Path Sum
- 0073.Set Matrix Zeroes
- 0074.Search a 2D Matrix
- 0079.Word Search
- 0082.Remove Duplicates from Sorted List II
- 0083.Remove Duplicates from Sorted List
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- 0086.Partition List
- 0092.Reverse Linked List II
- 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
- 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
- 0124.Binary Tree Maximum Path Sum
- 0129.Sum Root to Leaf Numbers
- 0130.Surrounded Regions
- 0133.Clone Graph
- 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
- 0149.Max Points on a Line
- 0156.Binary Tree Upside Down
- 0157.Read N Characters Given Read4
- 0158.Read N Characters Given Read4 II - Call multiple times
- 0160.Intersection of Two Linked Lists
- 0173.Binary Search Tree Iterator
- 0174.Dungeon Game
- 0199.Binary Tree Right Side View
- 0200-0299
- 0203.Remove Linked List Elements
- 0206.Reverse Linked List
- 0212.Word Search II
- 0218.The Skyline Problem
- 0221.Maximal Square
- 0222.Count Complete Tree Nodes
- 0223.Rectangle Area
- 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
- 0240.Search a 2D Matrix II
- 0250.Count Univalue Subtrees
- 0255.Verify Preorder Sequence in Binary Search Tree
- 0257.Binary Tree Paths
- 0261.Graph Valid Tree
- 0270.Closest Binary Search Tree Value
- 0272.Closest Binary Search Tree Value II
- 0276.Paint Fence
- 0277.Find the Celebrity
- 0285.Inorder Successor in BST
- 0286.Walls and Gates
- 0289.Game of Life
- 0296.Best Meeting Point
- 0297.Serialize and Deserialize Binary Tree
- 0298.Binary Tree Longest Consecutive Sequence
- 0300-0399
- 0302.Smallest Rectangle Enclosing Black Pixels
- 0304.Range Sum Query 2D - Immutable
- 0305.Number of Islands II
- 0308.Range Sum Query 2D - Mutable
- 0310.Minimum Height Trees
- 0311.Sparse Matrix Multiplication
- 0314.Binary Tree Vertical Order Traversal
- 0317.Shortest Distance from All Buildings
- 0319.Bulb Switcher
- 0323.Number of Connected Components in an Undirected Graph
- 0328.Odd Even Linked List
- 0329.Longest Increasing Path in a Matrix
- 0331.Verify Preorder Serialization of a Binary Tree
- 0332.Reconstruct Itinerary
- 0333.Largest BST Subtree
- 0335.Self Crossing
- 0337.House Robber III
- 0339.Nested List Weight Sum
- 0351.Android Unlock Patterns
- 0353.Design Snake Game
- 0356.Line Reflection
- 0361.Bomb Enemy
- 0363.Max Sum of Rectangle No Larger Than K
- 0364.Nested List Weight Sum II
- 0366.Find Leaves of Binary Tree
- 0370.Range Addition
- 0375.Guess Number Higher or Lower II
- 0382.Linked List Random Node
- 0388.Longest Absolute File Path
- 0391.Perfect Rectangle
- 0400-0499
- 0401.Binary Watch
- 0404.Sum of Left Leaves
- 0407.Trapping Rain Water II
- 0417.Pacific Atlantic Water Flow
- 0419.Battleships in a Board
- 0422.Valid Word Square
- 0426.Convert Binary Search Tree to Sorted Doubly Linked List
- 0427.Construct Quad Tree
- 0428.Serialize and Deserialize N-ary Tree
- 0429.N-ary Tree Level Order Traversal
- 0430.Flatten a Multilevel Doubly Linked List
- 0431.Encode N-ary Tree to Binary Tree
- 0437.Path Sum III
- 0441.Arranging Coins
- 0445.Add Two Numbers II
- 0450.Delete Node in a BST
- 0463.Island Perimeter
- 0469.Convex Polygon
- 0473.Matchsticks to Square
- 0490.The Maze
- 0498.Diagonal Traverse
- 0499.The Maze III
- 0500-0599
- 0500.Keyboard Row
- 0501.Find Mode in Binary Search Tree
- 0505.The Maze II
- 0510.Inorder Successor in BST II
- 0513.Find Bottom Left Tree Value
- 0514.Freedom Trail
- 0515.Find Largest Value in Each Tree Row
- 0529.Minesweeper
- 0531.Lonely Pixel I
- 0536.Construct Binary Tree from String
- 0538.Convert BST to Greater Tree
- 0543.Diameter of Binary Tree
- 0545.Boundary of Binary Tree
- 0547.Number of Provinces
- 0549.Binary Tree Longest Consecutive Sequence II
- 0554.Brick Wall
- 0558.Logical OR of Two Binary Grids Represented as Quad-Trees
- 0559.Maximum Depth of N-ary Tree
- 0563.Binary Tree Tilt
- 0573.Squirrel Simulation
- 0576.Out of Boundary Paths
- 0582.Kill Process
- 0587.Erect the Fence
- 0588.Design In-Memory File System
- 0589.N-ary Tree Preorder Traversal
- 0590.N-ary Tree Postorder Traversal
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
839 files changed
+1577
-1577
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
0 commit comments