File tree
280 files changed
+1
-1250
lines changed- .github/workflows
- solution
- 0000-0099
- 0008.String to Integer (atoi)
- 0012.Integer to Roman
- 0013.Roman to Integer
- 0025.Reverse Nodes in k-Group
- 0036.Valid Sudoku
- 0037.Sudoku Solver
- 0039.Combination Sum
- 0040.Combination Sum II
- 0044.Wildcard Matching
- 0049.Group Anagrams
- 0050.Pow(x, n)
- 0060.Permutation Sequence
- 0065.Valid Number
- 0068.Text Justification
- 0073.Set Matrix Zeroes
- 0074.Search a 2D Matrix
- 0075.Sort Colors
- 0076.Minimum Window Substring
- 0081.Search in Rotated Sorted Array II
- 0088.Merge Sorted Array
- 0098.Validate Binary Search Tree
- 0099.Recover Binary Search Tree
- 0100-0199
- 0126.Word Ladder II
- 0134.Gas Station
- 0135.Candy
- 0140.Word Break II
- 0147.Insertion Sort List
- 0150.Evaluate Reverse Polish Notation
- 0151.Reverse Words in a String
- 0154.Find Minimum in Rotated Sorted Array II
- 0164.Maximum Gap
- 0167.Two Sum II - Input array is sorted
- 0174.Dungeon Game
- 0191.Number of 1 Bits
- 0192.Word Frequency
- 0200-0299
- 0208.Implement Trie (Prefix Tree)
- 0216.Combination Sum III
- 0224.Basic Calculator
- 0227.Basic Calculator II
- 0232.Implement Queue using Stacks
- 0240.Search a 2D Matrix II
- 0275.H-Index II
- 0295.Find Median from Data Stream
- 0300-0399
- 0300.Longest Increasing Subsequence
- 0309.Best Time to Buy and Sell Stock with Cooldown
- 0310.Minimum Height Trees
- 0312.Burst Balloons
- 0313.Super Ugly Number
- 0338.Counting Bits
- 0347.Top K Frequent Elements
- 0349.Intersection of Two Arrays
- 0350.Intersection of Two Arrays II
- 0365.Water and Jug Problem
- 0500-0599/0501.Find Mode in Binary Search Tree
- 0600-0699
- 0622.Design Circular Queue
- 0641.Design Circular Deque
- 0689.Maximum Sum of 3 Non-Overlapping Subarrays
- 0698.Partition to K Equal Sum Subsets
- 0699.Falling Squares
- 0700-0799
- 0705.Design HashSet
- 0706.Design HashMap
- 0724.Find Pivot Index
- 0729.My Calendar I
- 0731.My Calendar II
- 0732.My Calendar III
- 0740.Delete and Earn
- 0741.Cherry Pickup
- 0767.Reorganize String
- 0768.Max Chunks To Make Sorted II
- 0769.Max Chunks To Make Sorted
- 0770.Basic Calculator IV
- 0771.Jewels and Stones
- 0773.Sliding Puzzle
- 0775.Global and Local Inversions
- 0780.Reaching Points
- 0782.Transform to Chessboard
- 0784.Letter Case Permutation
- 0785.Is Graph Bipartite
- 0786.K-th Smallest Prime Fraction
- 0788.Rotated Digits
- 0789.Escape The Ghosts
- 0790.Domino and Tromino Tiling
- 0791.Custom Sort String
- 0792.Number of Matching Subsequences
- 0793.Preimage Size of Factorial Zeroes Function
- 0794.Valid Tic-Tac-Toe State
- 0795.Number of Subarrays with Bounded Maximum
- 0796.Rotate String
- 0797.All Paths From Source to Target
- 0798.Smallest Rotation with Highest Score
- 0800-0899
- 0801.Minimum Swaps To Make Sequences Increasing
- 0803.Bricks Falling When Hit
- 0804.Unique Morse Code Words
- 0805.Split Array With Same Average
- 0806.Number of Lines To Write String
- 0807.Max Increase to Keep City Skyline
- 0808.Soup Servings
- 0809.Expressive Words
- 0810.Chalkboard XOR Game
- 0811.Subdomain Visit Count
- 0813.Largest Sum of Averages
- 0815.Bus Routes
- 0816.Ambiguous Coordinates
- 0817.Linked List Components
- 0818.Race Car
- 0819.Most Common Word
- 0824.Goat Latin
- 0826.Most Profit Assigning Work
- 0827.Making A Large Island
- 0832.Flipping an Image
- 0842.Split Array into Fibonacci Sequence
- 0844.Backspace String Compare
- 0845.Longest Mountain in Array
- 0852.Peak Index in a Mountain Array
- 0856.Score of Parentheses
- 0860.Lemonade Change
- 0866.Prime Palindrome
- 0868.Binary Gap
- 0873.Length of Longest Fibonacci Subsequence
- 0874.Walking Robot Simulation
- 0875.Koko Eating Bananas
- 0876.Middle of the Linked List
- 0880.Decoded String at Index
- 0881.Boats to Save People
- 0888.Fair Candy Swap
- 0889.Construct Binary Tree from Preorder and Postorder Traversal
- 0890.Find and Replace Pattern
- 0891.Sum of Subsequence Widths
- 0892.Surface Area of 3D Shapes
- 0893.Groups of Special-Equivalent Strings
- 0895.Maximum Frequency Stack
- 0900-0999
- 0903.Valid Permutations for DI Sequence
- 0913.Cat and Mouse
- 0915.Partition Array into Disjoint Intervals
- 0919.Complete Binary Tree Inserter
- 0920.Number of Music Playlists
- 0921.Minimum Add to Make Parentheses Valid
- 0927.Three Equal Parts
- 0929.Unique Email Addresses
- 0931.Minimum Falling Path Sum
- 0932.Beautiful Array
- 0941.Valid Mountain Array
- 0942.DI String Match
- 0948.Bag of Tokens
- 0952.Largest Component Size by Common Factor
- 0957.Prison Cells After N Days
- 0964.Least Operators to Express Number
- 0966.Vowel Spellchecker
- 0970.Powerful Integers
- 0972.Equal Rational Numbers
- 0975.Odd Even Jump
- 0978.Longest Turbulent Subarray
- 0980.Unique Paths III
- 0981.Time Based Key-Value Store
- 0982.Triples with Bitwise AND Equal To Zero
- 0983.Minimum Cost For Tickets
- 0984.String Without AAA or BBB
- 0991.Broken Calculator
- 1000-1099
- 1000.Minimum Cost to Merge Stones
- 1015.Smallest Integer Divisible by K
- 1025.Divisor Game
- 1031.Maximum Sum of Two Non-Overlapping Subarrays
- 1032.Stream of Characters
- 1042.Flower Planting With No Adjacent
- 1046.Last Stone Weight
- 1049.Last Stone Weight II
- 1052.Grumpy Bookstore Owner
- 1090.Largest Values From Labels
- 1100-1199
- 1108.Defanging an IP Address
- 1109.Corporate Flight Bookings
- 1111.Maximum Nesting Depth of Two Valid Parentheses Strings
- 1128.Number of Equivalent Domino Pairs
- 1129.Shortest Path with Alternating Colors
- 1130.Minimum Cost Tree From Leaf Values
- 1137.N-th Tribonacci Number
- 1139.Largest 1-Bordered Square
- 1140.Stone Game II
- 1147.Longest Chunked Palindrome Decomposition
- 1154.Day of the Year
- 1155.Number of Dice Rolls With Target Sum
- 1156.Swap For Longest Repeated Character Substring
- 1157.Online Majority Element In Subarray
- 1185.Day of the Week
- 1186.Maximum Subarray Sum with One Deletion
- 1187.Make Array Strictly Increasing
- 1200-1299
- 1219.Path with Maximum Gold
- 1227.Airplane Seat Assignment Probability
- 1249.Minimum Remove to Make Valid Parentheses
- 1275.Find Winner on a Tic Tac Toe Game
- 1276.Number of Burgers with No Waste of Ingredients
- 1278.Palindrome Partitioning III
- 1283.Find the Smallest Divisor Given a Threshold
- 1287.Element Appearing More Than 25% In Sorted Array
- 1293.Shortest Path in a Grid with Obstacles Elimination
- 1296.Divide Array in Sets of K Consecutive Numbers
- 1297.Maximum Number of Occurrences of a Substring
- 1298.Maximum Candies You Can Get from Boxes
- 1299.Replace Elements with Greatest Element on Right Side
- 1300-1399
- 1300.Sum of Mutated Array Closest to Target
- 1301.Number of Paths with Max Score
- 1304.Find N Unique Integers Sum up to Zero
- 1306.Jump Game III
- 1309.Decrypt String from Alphabet to Integer Mapping
- 1310.XOR Queries of a Subarray
- 1312.Minimum Insertion Steps to Make a String Palindrome
- 1314.Matrix Block Sum
- 1317.Convert Integer to the Sum of Two No-Zero Integers
- 1323.Maximum 69 Number
- 1324.Print Words Vertically
- 1328.Break a Palindrome
- 1330.Reverse Subarray To Maximize Array Value
- 1331.Rank Transform of an Array
- 1332.Remove Palindromic Subsequences
- 1333.Filter Restaurants by Vegan-Friendly, Price and Distance
- 1337.The K Weakest Rows in a Matrix
- 1338.Reduce Array Size to The Half
- 1343.Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
- 1345.Jump Game IV
- 1351.Count Negative Numbers in a Sorted Matrix
- 1357.Apply Discount Every n Orders
- 1358.Number of Substrings Containing All Three Characters
- 1359.Count All Valid Pickup and Delivery Options
- 1365.How Many Numbers Are Smaller Than the Current Number
- 1366.Rank Teams by Votes
- 1371.Find the Longest Substring Containing Vowels in Even Counts
- 1374.Generate a String With Characters That Have Odd Counts
- 1380.Lucky Numbers in a Matrix
- 1381.Design a Stack With Increment Operation
- 1383.Maximum Performance of a Team
- 1385.Find the Distance Value Between Two Arrays
- 1387.Sort Integers by The Power Value
- 1388.Pizza With 3n Slices
- 1394.Find Lucky Integer in an Array
- 1395.Count Number of Teams
- 1400-1499
- 1400.Construct K Palindrome Strings
- 1402.Reducing Dishes
- 1403.Minimum Subsequence in Non-Increasing Order
- 1406.Stone Game III
- 1408.String Matching in an Array
- 1409.Queries on a Permutation With Key
- 1413.Minimum Value to Get Positive Step by Step Sum
- 1414.Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
- 1415.The k-th Lexicographical String of All Happy Strings of Length n
- 1416.Restore The Array
- 1433.Check If a String Can Break Another String
- 1434.Number of Ways to Wear Different Hats to Each Other
- 1442.Count Triplets That Can Form Two Arrays of Equal XOR
- 1446.Consecutive Characters
- 1447.Simplified Fractions
- 1448.Count Good Nodes in Binary Tree
- 1456.Maximum Number of Vowels in a Substring of Given Length
- 1470.Shuffle the Array
- 1471.The k Strongest Values in an Array
- 1472.Design Browser History
- 1476.Subrectangle Queries
- 1480.Running Sum of 1d Array
- 1481.Least Number of Unique Integers after K Removals
- 1482.Minimum Number of Days to Make m Bouquets
- 1486.XOR Operation in an Array
- 1487.Making File Names Unique
- 1491.Average Salary Excluding the Minimum and Maximum Salary
- 1492.The kth Factor of n
- 1500-1599
- 1503.Last Moment Before All Ants Fall Out of a Plank
- 1504.Count Submatrices With All Ones
- 1509.Minimum Difference Between Largest and Smallest Value in Three Moves
- 1512.Number of Good Pairs
- 1513.Number of Substrings With Only 1s
- 1518.Water Bottles
- 1523.Count Odd Numbers in an Interval Range
- 1524.Number of Sub-arrays With Odd Sum
- 1525.Number of Good Ways to Split a String
- 1530.Number of Good Leaf Nodes Pairs
- 1534.Count Good Triplets
- 1539.Kth Missing Positive Number
- 1544.Make The String Great
- 1545.Find Kth Bit in Nth Binary String
- 1547.Minimum Cost to Cut a Stick
- 1551.Minimum Operations to Make Array Equal
- 1553.Minimum Number of Days to Eat N Oranges
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
280 files changed
+1
-1250
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 | 4 |
| |
6 |
| - | |
7 |
| - | |
| 5 | + | |
8 | 6 |
| |
9 | 7 |
| |
10 | 8 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 | 20 |
| |
22 |
| - | |
23 | 21 |
| |
24 |
| - | |
25 | 22 |
| |
26 | 23 |
| |
27 | 24 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 |
| - | |
35 | 33 |
| |
36 |
| - | |
37 | 34 |
| |
38 |
| - | |
39 | 35 |
| |
40 | 36 |
| |
41 | 37 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 |
| - | |
35 | 33 |
| |
36 |
| - | |
37 | 34 |
| |
38 |
| - | |
39 | 35 |
| |
40 | 36 |
| |
41 | 37 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 | 26 |
| |
28 |
| - | |
29 | 27 |
| |
30 |
| - | |
31 | 28 |
| |
32 | 29 |
| |
33 | 30 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
97 | 96 |
| |
98 |
| - | |
99 | 97 |
| |
100 |
| - | |
101 | 98 |
| |
102 |
| - | |
103 | 99 |
| |
104 |
| - | |
105 | 100 |
| |
106 | 101 |
| |
107 | 102 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 | 34 |
| |
36 |
| - | |
37 | 35 |
| |
38 |
| - | |
39 | 36 |
| |
40 |
| - | |
41 | 37 |
| |
42 | 38 |
| |
43 | 39 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
16 |
| - | |
17 | 15 |
| |
18 |
| - | |
19 | 16 |
| |
20 | 17 |
| |
21 | 18 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
16 |
| - | |
17 | 15 |
| |
18 |
| - | |
19 | 16 |
| |
20 | 17 |
| |
21 | 18 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 |
| - | |
25 | 23 |
| |
26 |
| - | |
27 | 24 |
| |
28 | 25 |
| |
29 | 26 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 | 30 |
| |
32 |
| - | |
33 | 31 |
| |
34 |
| - | |
35 | 32 |
| |
36 | 33 |
| |
37 | 34 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 | 44 |
| |
46 |
| - | |
47 | 45 |
| |
48 |
| - | |
49 | 46 |
| |
50 | 47 |
| |
51 | 48 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 |
| - | |
35 | 33 |
| |
36 |
| - | |
37 | 34 |
| |
38 | 35 |
| |
39 | 36 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
43 | 42 |
| |
44 |
| - | |
45 | 43 |
| |
46 |
| - | |
47 | 44 |
| |
48 |
| - | |
49 | 45 |
| |
50 |
| - | |
51 | 46 |
| |
52 | 47 |
| |
53 | 48 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 | 18 |
| |
20 |
| - | |
21 | 19 |
| |
22 |
| - | |
23 | 20 |
| |
24 |
| - | |
25 | 21 |
| |
26 | 22 |
| |
27 | 23 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
73 | 72 |
| |
74 |
| - | |
75 | 73 |
| |
76 |
| - | |
77 | 74 |
| |
78 |
| - | |
79 | 75 |
| |
80 | 76 |
| |
81 | 77 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 | 10 |
| |
12 |
| - | |
13 | 11 |
| |
14 |
| - | |
15 | 12 |
| |
16 | 13 |
| |
17 | 14 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 | 24 |
| |
26 |
| - | |
27 | 25 |
| |
28 |
| - | |
29 | 26 |
| |
30 |
| - | |
31 | 27 |
| |
32 | 28 |
| |
33 | 29 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 |
| - | |
25 | 23 |
| |
26 |
| - | |
27 | 24 |
| |
28 | 25 |
| |
29 | 26 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 | 34 |
| |
36 |
| - | |
37 | 35 |
| |
38 |
| - | |
39 | 36 |
| |
40 | 37 |
| |
41 | 38 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 |
| - | |
15 | 13 |
| |
16 |
| - | |
17 | 14 |
| |
18 | 15 |
| |
19 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 |
| - | |
15 | 13 |
| |
16 |
| - | |
17 | 14 |
| |
18 |
| - | |
19 | 15 |
| |
20 | 16 |
| |
21 | 17 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 |
| - | |
87 | 86 |
| |
88 |
| - | |
89 | 87 |
| |
90 |
| - | |
91 | 88 |
| |
92 | 89 |
| |
93 | 90 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 | 10 |
| |
12 |
| - | |
13 | 11 |
| |
14 |
| - | |
15 | 12 |
| |
16 | 13 |
| |
17 | 14 |
| |
18 | 15 |
| |
19 | 16 |
| |
20 |
| - | |
21 | 17 |
| |
22 |
| - | |
23 | 18 |
| |
24 |
| - | |
25 | 19 |
| |
26 |
| - | |
27 | 20 |
| |
28 |
| - | |
29 | 21 |
| |
30 |
| - | |
31 | 22 |
| |
32 | 23 |
| |
33 | 24 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 | 16 |
| |
18 |
| - | |
19 | 17 |
| |
20 |
| - | |
21 | 18 |
| |
22 |
| - | |
23 | 19 |
| |
24 | 20 |
| |
25 | 21 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 |
| - | |
15 | 13 |
| |
16 |
| - | |
17 | 14 |
| |
18 | 15 |
| |
19 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 |
| - | |
15 | 13 |
| |
16 |
| - | |
17 | 14 |
| |
18 | 15 |
| |
19 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 | 28 |
| |
30 |
| - | |
31 | 29 |
| |
32 |
| - | |
33 | 30 |
| |
34 |
| - | |
35 | 31 |
| |
36 | 32 |
| |
37 | 33 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
16 |
| - | |
17 | 15 |
| |
18 |
| - | |
19 | 16 |
| |
20 | 17 |
| |
21 | 18 |
| |
|
0 commit comments