File tree
284 files changed
+16700
-13797
lines changed- .github/workflows
- solution
- 0000-0099
- 0003.Longest Substring Without Repeating Characters
- 0005.Longest Palindromic Substring
- 0009.Palindrome Number
- 0023.Merge k Sorted Lists
- 0029.Divide Two Integers
- 0030.Substring with Concatenation of All Words
- 0032.Longest Valid Parentheses
- 0041.First Missing Positive
- 0053.Maximum Subarray
- 0058.Length of Last Word
- 0078.Subsets
- 0079.Word Search
- 0090.Subsets II
- 0097.Interleaving String
- 0098.Validate Binary Search Tree
- 0100-0199
- 0108.Convert Sorted Array to Binary Search Tree
- 0109.Convert Sorted List to Binary Search Tree
- 0110.Balanced Binary Tree
- 0131.Palindrome Partitioning
- 0132.Palindrome Partitioning II
- 0152.Maximum Product Subarray
- 0159.Longest Substring with At Most Two Distinct Characters
- 0192.Word Frequency
- 0195.Tenth Line
- 0197.Rising Temperature
- 0200-0299
- 0209.Minimum Size Subarray Sum
- 0214.Shortest Palindrome
- 0225.Implement Stack using Queues
- 0234.Palindrome Linked List
- 0250.Count Univalue Subtrees
- 0266.Palindrome Permutation
- 0269.Alien Dictionary
- 0287.Find the Duplicate Number
- 0299.Bulls and Cows
- 0300-0399
- 0300.Longest Increasing Subsequence
- 0316.Remove Duplicate Letters
- 0320.Generalized Abbreviation
- 0325.Maximum Size Subarray Sum Equals k
- 0333.Largest BST Subtree
- 0336.Palindrome Pairs
- 0340.Longest Substring with At Most K Distinct Characters
- 0365.Water and Jug Problem
- 0400-0499/0488.Zuma Game
- 0500-0599
- 0521.Longest Uncommon Subsequence I
- 0594.Longest Harmonious Subsequence
- 0600-0699/0621.Task Scheduler
- 0700-0799
- 0791.Custom Sort String
- 0799.Champagne Tower
- 0800-0899/0851.Loud and Rich
- 0900-0999
- 0903.Valid Permutations for DI Sequence
- 0904.Fruit Into Baskets
- 0907.Sum of Subarray Minimums
- 0908.Smallest Range I
- 0910.Smallest Range II
- 0921.Minimum Add to Make Parentheses Valid
- 0922.Sort Array By Parity II
- 0923.3Sum With Multiplicity
- 0930.Binary Subarrays With Sum
- 0948.Bag of Tokens
- 1000-1099
- 1053.Previous Permutation With One Swap
- 1081.Smallest Subsequence of Distinct Characters
- 1100-1199
- 1108.Defanging an IP Address
- 1111.Maximum Nesting Depth of Two Valid Parentheses Strings
- 1137.N-th Tribonacci Number
- 1138.Alphabet Board Path
- 1139.Largest 1-Bordered Square
- 1184.Distance Between Bus Stops
- 1200-1299
- 1238.Circular Permutation in Binary Representation
- 1248.Count Number of Nice Subarrays
- 1256.Encode Number
- 1273.Delete Tree Nodes
- 1300-1399
- 1301.Number of Paths with Max Score
- 1318.Minimum Flips to Make a OR b Equal to c
- 1324.Print Words Vertically
- 1351.Count Negative Numbers in a Sorted Matrix
- 1400-1499
- 1418.Display Table of Food Orders in a Restaurant
- 1448.Count Good Nodes in Binary Tree
- 1470.Shuffle the Array
- 1481.Least Number of Unique Integers after K Removals
- 1500-1599
- 1523.Count Odd Numbers in an Interval Range
- 1534.Count Good Triplets
- 1600-1699
- 1617.Count Subtrees With Max Distance Between Cities
- 1618.Maximum Font to Fit a Sentence in a Screen
- 1631.Path With Minimum Effort
- 1634.Add Two Polynomials Represented as Linked Lists
- 1649.Create Sorted Array through Instructions
- 1660.Correct a Binary Tree
- 1669.Merge In Between Linked Lists
- images
- 1700-1799
- 1725.Number Of Rectangles That Can Form The Largest Square
- 1746.Maximum Subarray Sum After One Operation
- 1768.Merge Strings Alternately
- 1780.Check if Number is a Sum of Powers of Three
- 1782.Count Pairs Of Nodes
- 1787.Make the XOR of All Segments Equal to Zero
- 1788.Maximize the Beauty of the Garden
- 1800-1899
- 1801.Number of Orders in the Backlog
- 1803.Count Pairs With XOR in a Range
- 1808.Maximize Number of Nice Divisors
- 1827.Minimum Operations to Make the Array Increasing
- 1836.Remove Duplicates From an Unsorted Linked List
- 1852.Distinct Numbers in Each Subarray
- 1857.Largest Color Value in a Directed Graph
- 1858.Longest Word With All Prefixes
- 1859.Sorting the Sentence
- 1861.Rotating the Box
- 1872.Stone Game VIII
- 1874.Minimize Product Sum of Two Arrays
- 1877.Minimize Maximum Pair Sum in Array
- 1900-1999
- 1911.Maximum Alternating Subsequence Sum
- 1913.Maximum Product Difference Between Two Pairs
- 1914.Cyclically Rotating a Grid
- 1915.Number of Wonderful Substrings
- 1916.Count Ways to Build Rooms in an Ant Colony
- 2000-2099/2087.Minimum Cost Homecoming of a Robot in a Grid
- 2100-2199/2129.Capitalize the Title
- 2300-2399
- 2351.First Letter to Appear Twice
- 2352.Equal Row and Column Pairs
- 2355.Maximum Number of Books You Can Take
- 2386.Find the K-Sum of an Array
- 2400-2499/2495.Number of Subarrays Having Even Product
- 2500-2599
- 2506.Count Pairs Of Similar Strings
- 2533.Number of Good Binary Strings
- 2600-2699
- 2638.Count the Number of K-Free Subsets
- 2673.Make Costs of Paths Equal in a Binary Tree
- 2700-2799/2745.Construct the Longest New String
- 2800-2899/2899.Last Visited Integers
- 2900-2999
- 2900.Longest Unequal Adjacent Groups Subsequence I
- 2901.Longest Unequal Adjacent Groups Subsequence II
- 2910.Minimum Number of Groups to Create a Valid Assignment
- 2917.Find the K-or of an Array
- 2944.Minimum Number of Coins for Fruits
- 2990.Loan Types
- 3000-3099
- 3004.Maximum Subtree of the Same Color
- 3010.Divide an Array Into Subarrays With Minimum Cost I
- 3013.Divide an Array Into Subarrays With Minimum Cost II
- 3018.Maximum Number of Removal Queries That Can Be Processed I
- 3026.Maximum Good Subarray Sum
- 3035.Maximum Palindromes After Operations
- 3046.Split the Array
- 3047.Find the Largest Area of Square Inside Two Rectangles
- 3048.Earliest Second to Mark Indices I
- 3049.Earliest Second to Mark Indices II
- 3050.Pizza Toppings Cost Analysis
- 3051.Find Candidates for Data Scientist Position
- 3052.Maximize Items
- 3053.Classifying Triangles by Lengths
- 3054.Binary Tree Nodes
- 3055.Top Percentile Fraud
- 3056.Snaps Analysis
- 3057.Employees Project Allocation
- 3058.Friends With No Mutual Friends
- 3059.Find All Unique Email Domains
- 3060.User Activities within Time Bounds
- 3061.Calculate Trapping Rain Water
- 3062.Winner of the Linked List Game
- 3063.Linked List Frequency
- 3064.Guess the Number Using Bitwise Questions I
- 3065.Minimum Operations to Exceed Threshold Value I
- 3066.Minimum Operations to Exceed Threshold Value II
- 3067.Count Pairs of Connectable Servers in a Weighted Tree Network
- 3068.Find the Maximum Sum of Node Values
- 3069.Distribute Elements Into Two Arrays I
- 3070.Count Submatrices with Top-Left Element and Sum Less Than k
- 3071.Minimum Operations to Write the Letter Y on a Grid
- 3072.Distribute Elements Into Two Arrays II
- 3074.Apple Redistribution into Boxes
- 3075.Maximize Happiness of Selected Children
- 3076.Shortest Uncommon Substring in an Array
- 3077.Maximum Strength of K Disjoint Subarrays
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
284 files changed
+16700
-13797
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 |
| |
24 | 27 |
| |
25 | 28 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 | 8 |
| |
15 | 9 |
| |
16 | 10 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 1 | + | |
| 2 | + |
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 | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
|
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 | |
---|---|---|---|
| |||
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
351 |
| - | |
352 |
| - | |
| 351 | + | |
353 | 352 |
| |
354 | 353 |
| |
355 | 354 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
350 |
| - | |
351 |
| - | |
| 350 | + | |
352 | 351 |
| |
353 | 352 |
| |
354 | 353 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
230 | 268 |
| |
231 | 269 |
| |
232 | 270 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
228 | 266 |
| |
229 | 267 |
| |
230 | 268 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
311 | 367 |
| |
312 | 368 |
| |
313 | 369 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
305 | 305 |
| |
306 | 306 |
| |
307 | 307 |
| |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
308 | 364 |
| |
309 | 365 |
| |
310 | 366 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + |
0 commit comments