Commit e4adae0
1 parent 3287b4e commit e4adae0
File tree
510 files changed
+1530
-0
lines changed- BFS
- 1036.Escape-a-Large-Maze
- 126.Word-Ladder-II
- 1263.Minimum-Moves-to-Move-a-Box-to-Their-Target-Location
- 210.Course-Schedule-II
- 269.Alien-Dictionary
- 407.Trapping-Rain-Water-II
- 529.Minesweeper
- 637.Average-of-Levels-in-Binary-Tree
- 675.Cut-Off-Trees-for-Golf-Event
- 694.Number-of-Distinct-Islands
- 743.Network-Delay-Time
- 778.Swim-in-Rising-Water
- 785.Is-Graph-Bipartite
- 815.Bus-Routes
- 847.Shortest-Path-Visiting-All-Nodes
- 864.Shortest-Path-to-Get-All-Keys
- 913.Cat-and-Mouse
- 928.Minimize-Malware-Spread-II
- Binary_Search
- 004.Median-of-Two-Sorted-Arrays
- 029.Divide-Two-Integers
- 033.Search-in-Rotated-Sorted-Array
- 034.Search-for-a-Range
- 081.Search-in-Rotated-Sorted-Array-II
- 1102.Path-With-Maximum-Minimum-Value
- 1157.Online-Majority-Element-In-Subarray
- 1201.Ugly-Number-III
- 1237.Find-Positive-Integer-Solution-for-a-Given-Equation
- 154.Find-Minimum-in-Rotated-Sorted-Array-II
- 162.Find-Peak-Element
- 275.H-Index-II
- 287.Find-the-Duplicate-Number
- 302.Smallest-Rectangle-Enclosing-Black-Pixels
- 475.Heaters
- 483.Smallest-Good-Base
- 658.Find-K-Closest-Elements
- 668.Kth-Smallest-Number-in-Multiplication-Table
- 719.Find-K-th-Smallest-Pair-Distance
- 786.K-th Smallest-Prime-Fraction
- 793.Preimage-Size-of-Factorial-Zeroes-Function
- Bit_Manipulation
- 136.Single-Number
- 260.Single-Number-III
- 318.Maximum-Product-of-Word-Lengths
- 342.Power-of-Four
- 371.Sum-of-Two-Integers
- DFS
- 037.Sudoku-Solver
- 040.Combination-Sum-II
- 051.N-Queens
- 1192.Critical-Connections-in-a-Network
- 200.Number-of-Islands
- 282.Expression-Add-Operators
- 301.Remove-Invalid-Parentheses
- 312.Burst-Balloons
- 332.Reconstruct-Itinerary
- 337.House-Robber-III
- 399.Evaluate-Division
- 403.Frog-Jump
- 417.Pacific-Atlantic-Water-Flow
- 425.Word-Squares
- 464.Can-I-Win
- 465.Optimal-Account-Balancing
- 472.Concatenated-Words
- 473.Matchsticks-to-Square
- 488.Zuma-Game
- 489.Robot-Room-Cleaner
- 491.Increasing-Subsequences
- 546.Remove-Boxes
- 638.Shopping-Offers
- 698.Partition-to-K-Equal-Sum-Subsets
- 803.Bricks-Falling-When-Hit
- 959.Regions-Cut-By-Slashes
- 996.Number-of-Squareful-Arrays
- Design
- 1172.Dinner-Plate-Stacks
- 146.LRU-Cache
- 355.Design-Twitter
- 380.Insert-Delete-GetRandom-O-1
- 381.Insert-Delete-GetRandom-O-1-Duplicates-allowed
- 432.All-O-one-Data-Structure
- 460.LFU-Cache
- 535.Encode-and-Decode-TinyURL
- 631.Design-Excel-Sum-Formula
- 642.Design-Search-Autocomplete-System
- 716.Max-Stack
- 895.Maximum-Frequency-Stack
- Divide_Conquer
- 315.Count-of-Smaller-Numbers-After-Self
- 327.Count-of-Range-Sum
- 493.Reverse-Pairs
- Dynamic_Programming
- 010.Regular-Expression-Matching
- 072.Edit-Distance
- 091.Decode-Ways
- 097.Interleaving-String
- 1000.Minimum-Cost-to-Merge-Stones
- 1027.Longest-Arithmetic-Sequence
- 1035.Uncrossed-Lines
- 1039.Minimum-Score-Triangulation-of-Polygon
- 1043.Partition-Array-for-Maximum-Sum
- 1049.Last-Stone-Weight-II
- 1092.Shortest-Common-Supersequence
- 1105.Filling-Bookcase-Shelves
- 1130.Minimum-Cost-Tree-From-Leaf-Values
- 115.Distinct-Subsequences
- 1186.Maximum-Subarray-Sum-with-One-Deletion
- 123.Best-Time-to-Buy-and-Sell-Stock-III
- 1269.Number-of-Ways-to-Stay-in-the-Same-Place-After-Some-Steps
- 1277.Count-Square-Submatrices-with-All-Ones
- 1289.Minimum-Falling-Path-Sum-II
- 1301.Number-of-Paths-with-Max-Score
- 1312.Minimum-Insertion-Steps-to-Make-a-String-Palindrome
- 132.Palindrome-Partitioning-II
- 1320.Minimum-Distance-to-Type-a-Word-Using-Two-Fingers
- 1349.Maximum-Students-Taking-Exam
- 139.Word-Break
- 152.Maximum-Product-Subarray
- 174.Dungeon-Game
- 188.Best-Time-to-Buy-and-Sell-Stock-IV
- 198.House-Robber
- 213.House-Robber-II
- 221.Maximal-Square
- 264.Ugly-Number-II
- 265.Paint-House-II
- 276.Paint-Fence
- 309.Best-Time-to-Buy-and-Sell-Stock-with-Cooldown
- 322.Coin-Change
- 368.Largest-Divisible-Subset
- 375.Guess-Number-Higher-or-Lower-II
- 376.Wiggle-Subsequence
- 377.Combination-Sum-IV
- 410.Split-Array-Largest-Sum
- 474.Ones-and-Zeroes
- 487.Max-Consecutive-Ones-II
- 494.Target-Sum
- 516.Longest-Palindromic-Subsequence
- 518.Coin-Change-2
- 552.Student-Attendance-Record-II
- 576.Out-of-Boundary-Paths
- 583.Delete-Operation-for-Two-Strings
- 600.Non-negative-Integers-without-Consecutive-Ones
- 629.K-Inverse-Pairs-Array
- 634.Find-the-Derangement-of-An-Array
- 639.Decode-Ways-II
- 644.Maximum-Average-Subarray-II
- 651.4-Keys-Keyboard
- 656.Coin-Path
- 664.Strange-Printer
- 673.Number-of-Longest-Increasing-Subsequence
- 691.Stickers-to-Spell-Word
- 712.Minimum-ASCII-Delete-Sum-for-Two-Strings
- 714.Best-Time-to-Buy-and-Sell-Stock-with-Transaction-Fee
- 727.Minimum-Window-Subsequence
- 730.Count-Different-Palindromic-Subsequences
- 740.Delete-and-Earn
- 741.Cherry-Pickup
- 787.Cheapest-Flights-Within-K-Stops
- 805.Split-Array-With-Same-Average
- 813.Largest-Sum-of-Averages
- 818.Race-Car
- 837.New-21-Game
- 879.Profitable-Schemes
- 887.Super-Egg-Drop
- 903.Valid-Permutations-for-DI-Sequence
- 920.Number-of-Music-Playlists
- 931.Minimum-Falling-Path-Sum
- 935.Knight-Dialer
- 940.Distinct-Subsequences-II
- 943.Find-the-Shortest-Superstring
- 956.Tallest-Billboard
- 983.Minimum-Cost-For-Tickets
- Greedy
- 045.Jump-Game-II
- 1040.Moving-Stones-Until-Consecutive-II
- 1054.Distant-Barcodes
- 1191.K-Concatenation-Maximum-Sum
- 1253.Reconstruct-a-2-Row-Binary-Matrix
- 134.Gas-Station
- 135.Candy
- 229.Majority-Element-II
- 300.Longest-Increasing-Subsequence
- 321.Create-Maximum-Number
- 330.Patching-Array
- 334.Increasing-Triplet-Subsequence
- 354.Russian-Doll-Envelopes
- 386.Lexicographical-Numbers
- 440.K-th-Smallest-in-Lexicographical-Order
- 484.Find-Permutation
- 502.IPO
- 517.Super-Washing-Machines
- 624.Maximum-Distance-in-Arrays
- 630.Course-Schedule-III
- 649.Dota2-Senate
- 650.2-Keys-Keyboard
- 659.Split-Array-into-Consecutive-Subsequences
- 665.Non-decreasing-Array
- 670.Maximum-Swap
- 678.Valid-Parenthesis-String
- 683.K-Empty-Slots
- 739.Daily-Temperatures
- 757.Set-Intersection-Size-At-Least-Two
- 761.Special-Binary-String
- 826.Most-Profit-Assigning-Work
- 857.Minimum-Cost-to-Hire-K-Workers
- 862.Shortest-Subarray-with-Sum-at-Least-K
- 871.Minimum-Number-of-Refueling-Stops
- 881.Boats-to-Save-People
- 910.Smallest-Range-II
- 936.Stamping-The-Sequence
- 948.Bag-of-Tokens
- 968.Binary-Tree-Cameras
- 995.Minimum-Number-of-K-Consecutive-Bit-Flips
- Hash
- 049.Group-Anagrams
- 1074.Number-of-Submatrices-That-Sum-to-Target
- 149.Max-Points-on-a-Line
- 166.Fraction-to-Recurring-Decimal
- 170.Two-Sum-III-Data-structure-design
- 204.Count-Primes
- 274.H-Index
- 325.Maximum-Size-Subarray-Sum-Equals-k
- 356.Line-Reflection
- 392.Is-Subsequence
- 409.Longest-Palindrome
- 424.Longest-Repeating-Character-Replacement
- 438.Find-All-Anagrams-in-a-String
- 446.Arithmetic-Slices-II-Subsequence
- 447.Number-of-Boomerangs
- 525.Contiguous-Array
- 532.K-diff-Pairs-in-an-Array
- 535.Encode-and-Decode-TinyURL
- 594.Longest-Harmonious-Subsequence
- 753.Cracking-the-Safe
- 930.Binary-Subarrays-With-Sum
- 939.Minimum-Area-Rectangle
- Heap
- 1348.Tweet-Counts-Per-Frequency
- 295.Find-Median-from-Data-Stream
- 352.Data-Stream-as-Disjoint-Intervals
- 363.Max-Sum-of-Rectangle-No-Larger-Than-K
- 480.Sliding-Window-Median
- 729.My-Calendar-I
- 975.Odd-Even-Jump
- Linked_List
- 061.Rotate-List
- 086.Partition-List
- 092.Reverse-Linked-List-II
- 109.Convert-Sorted-List-to-Binary-Search-Tree
- 142.Linked-List-Cycle-II
- 143.Reorder-List
- 457.Circular-Array-Loop
- 708.Insert-into-a-Cyclic-Sorted-List
- Math
- 089.Gray-Code
- 1012.Numbers-With-Repeated-Digits
- 1015.Smallest-Integer-Divisible-by-K
- 1017.Convert-to-Base--2
- 1025.Divisor-Game
- 1040.Moving-Stones-Until-Consecutive-II
- 1073.Adding-Two-Negabinary-Numbers
- 1103.Distribute-Candies-to-People
- 1131.Maximum-of-Absolute-Value-Expression
- 1227.Airplane-Seat-Assignment-Probability
- 1250.Check-If-It-Is-a-Good-Array
- 1359.Count-All-Valid-Pickup-and-Delivery-Options
- 223.Rectangle-Area
- 233.Number-of-Digit-One
- 296.Best-Meeting-Point
- 335.Self-Crossing
- 343.Integer-Break
- 365.Water-and-Jug-Problem
- 382.Linked-List-Random-Node
- 400.n-th-digit
- 458.Poor-Pigs
- 470.Implement-Rand10--Using-Rand7
- 478.Generate-Random-Point-in-a-Circle
- 497.Random-Point-in-Non-overlapping-Rectangles
- 519.Random-Flip-Matrix
- 528.Random-Pick-with-Weight
- 672.Bulb-Switcher-II
- 710.Random-Pick-with-Blacklist
- 754.Reach-a-Number
- 829.Consecutive-Numbers-Sum
- 878.Nth-Magical-Number
- 883.Projection-Area-of-3D-Shapes
- 891.Sum-of-Subsequence-Widths
- 899.Orderly-Queue
- 963.Minimum-Area-Rectangle-II
- 972.Equal-Rational-Numbers
- Others
- 007.Reverse-Integer
- 042.Trapping-Rain-Water
- 046.Permutations
- 047.Permutations-II
- 048.Rotate-Image
- 065.Valid-Number
- 077.Combinations
- 087.Scramble-String
- 090.Subsets-II
- 1067.Digit-Count-in-Range
- 1109.Corporate-Flight-Bookings
- 1183.Maximum-Number-of-Ones
- 1267.Count-Servers-that-Communicate
- 1286.Iterator-for-Combination
- 158.Read-N-Characters-Given-Read4-II-Call-multiple-times
- 214.Shortest-Palindrome
- 240.Search-a-2D-Matrix-II
- 311.Sparse-Matrix-Multiplication
- 324.Wiggle-Sort-II
- 335.Self-Crossing
- 391.Perfect-Rectangle
- 420.Strong-Password-Checker
- 423.Reconstruct-Original-Digits-from-English
- 453.Minimum-Moves-to-Equal-Array-Elements
- 466.Count-The-Repetitions
- 479.Largest-Palindrome-Product
- 587.Erect-the-Fence
- 593.Valid-Square
- 645.Set-Mismatch
- 689.Maximum-Sum-of-3-Non-Overlapping-Subarrays
- 723.Candy-Crush
- 775.Global-and-Local-Inversions
- 782.Transform-to-Chessboard
- 794.Valid-Tic-Tac-Toe-State
- 798.Smallest-Rotation-with-Highest-Score
- 810.Chalkboard-XOR-Game
- 825.Friends-Of-Appropriate-Ages
- 835.Image-Overlap
- 850.Rectangle-Area-II
- 855.Exam-Room
- 858.Mirror-Reflection
- 866.Prime-Palindrome
- 906.Super-Palindromes
- 918.Maximum-Sum-Circular-Subarray
- 927.Three-Equal-Parts
- Priority_Queue
- 004.Median-of-Two-Sorted-Arrays
- 1066.Campus-Bikes-II
- 239.Sliding-Window-Maximum
- 358.Rearrange-String-k-Distance-Apart
- 373.Find-K-Pairs-with-Smallest-Sums
- 378.Kth-Smallest-Element-in-a-Sorted-Matrix
- 621.Task-Scheduler
- 632.Smallest-Range
- 774.Minimize-Max-Distance-to-Gas-Station
- Recursion
- 1088.Confusing-Number-II
- 1274.Number-of-Ships-in-a-Rectangle
- 133.Clone-Graph
- 241.Different-Ways-to-Add-Parentheses
- 390.Elimination-Game
- 395.Longest-Substring-with-At-Least-K-Repeating-Characters
- 397.Integer-Replacement
- 679.24-Game
- 779.K-th-Symbol-in-Grammar
- 780.Reaching-Points
- 808.Soup-Servings
- 877.Stone-Game
- 880.Decoded-String-at-Index
- 902.Numbers-At-Most-N-Given-Digit-Set
- 932.Beautiful-Array
- 964.Least-Operators-to-Express-Number
- 991.Broken-Calculator
- Segment_Tree
- 218.The-Skyline-Problem
- 307.Range-Sum-Query-Mutable
- 370.Range-Addition
- 699.Falling-Squares
- 715.Range-Module
- Sort
- 041.First-Missing-Positive
- 056.Merge-Intervals
- 057.Insert-Interval
- 060.Permutation-Sequence
- 1024.Video-Stitching
- 1235.Maximum-Profit-in-Job-Scheduling
- 164.Maximum-Gap
- 215.Kth-Largest-Element-in-an-Array
- 252.Meeting-Rooms
- 253.Meeting-Rooms-II
- 406.Queue-Reconstruction-by-Height
- 435.Non-overlapping-Intervals
- 442.Find-All-Duplicates-in-an-Array
- 448.Find-All-Numbers-Disappeared-in-an-Array
- 452.Minimum-Number-of-Arrows-to-Burst-Balloons
- 581.shortest-unsorted-continuous-subarray
- 731.My-Calendar-II
- 732.My-Calendar-III
- Stack
- 032.Longest-Valid-Parentheses
- 084.Largest-Rectangle-in-Histogram
- 085.Maximal-Rectangle
- 1096.Brace-Expansion-II
- 1106.Parsing-A-Boolean-Expression
- 1124.Longest-Well-Performing-Interval
- 155.Min-Stack
- 173.Binary-Search-Tree-Iterator
- 224.Basic-Calculator
- 225.Implement-Stack-using-Queues
- 232.Implement-Queue-using-Stacks
- 316.Remove-Duplicate-Letters
- 341.Flatten-Nested-List-Iterator
- 385.Mini-Parser
- 402.Remove-K-Digits
- 439.Ternary-Expression-Parser
- 456.132-Pattern
- 496.Next-Greater-Element-I
- 503.Next-Greater-Element-II
- 536.Construct-Binary-Tree-from-String
- 591.Tag-Validator
- 636.Exclusive-Time-of-Functions
- 726.Number-of-Atoms
- 772.Basic-Calculator-III
- 901.Online-Stock-Span
- 907.Sum-of-Subarray-Minimums
- 946.Validate-Stack-Sequences
- 962.Maximum-Width-Ramp
- String
- 005.Longest-Palindromic-Substring
- 006.ZigZag-Conversion
- 028.Implement-strStr
- 336.Palindrome-Pairs
- 388.Longest-Absolute-File-Path
- 408.Valid-Word-Abbreviation
- 411.Minimum-Unique-Word-Abbreviation
- 418.Sentence-Screen-Fitting
- 467.Unique-Substrings-in-Wraparound-String
- 527.Word-Abbreviation
- 556.Next-Greater-Element-III
- 564.Find-the-Closest-Palindrome
- 647.Palindromic-Substrings
- 722.Remove-Comments
- 736.Parse-Lisp-Expression
- 844.Backspace-String-Compare
- Tree
- 094.Binary-Tree-Inorder-Traversal
- 095.Unique-Binary-Search-Trees-II
- 098.Validate-Binary-Search-Tree
- 099.Recover-Binary-Search-Tree
- 105.Construct-Binary-Tree-from-Preorder-and-Inorder-Traversal
- 106.Construct-Binary-Tree-from-Inorder-and-Postorder-Traversal
- 110.Balanced-Binary-Tree
- 114.Flatten-Binary-Tree-to-Linked-List
- 117.Populating-Next-Right-Pointers-in-Each-Node-II
- 124.Binary-Tree-Maximum-Path-Sum
- 144.Binary-Tree-Preorder-Traversal
- 145.Binary-Tree-Postorder-Traversal
- 156.Binary-Tree-Upside-Down
- 222.Count-Complete-Tree-Nodes
- 226.Invert-Binary-Tree
- 236.Lowest-Common-Ancestor-of-a-Binary-Tree
- 255.Verify-Preorder-Sequence-in-Binary-Search-Tree
- 270.Closest-Binary-Search-Tree-Value
- 272.Closest-Binary-Search-Tree-Value-II
- 285.Inorder-Successor-in-BST
- 297.Serialize-and-Deserialize-Binary-Tree
- 298.Binary-Tree-Longest-Consecutive-Sequence
- 310.Minimum-Height-Trees
- 331.Verify-Preorder-Serialization-of-a-Binary-Tree
- 333.Largest-BST-Subtree
- 437.Path-Sum-III
- 449.Serialize-and-Deserialize-BST
- 450.Delete-Node-in-a-BST
- 501.Find-Mode-in-Binary-Search-Tree
- 543.Diameter-of-Binary-Tree
- 545.Boundary-of-Binary-Tree
- 549.Binary-Tree-Longest-Consecutive-Sequence-II
- 558.Quad-Tree-Intersection
- 572.Subtree-of-Another-Tree
- 652.Find-Duplicate-Subtrees
- 655.Print-Binary-Tree
- 662.Maximum-Width-of-Binary-Tree
- 687.Longest-Univalue-Path
- 742.Closest-Leaf-in-a-Binary-Tree
- 834.Sum-of-Distances-in-Tree
- 863.All-Nodes-Distance-K-in-Binary-Tree
- 954.Check-Completeness-of-a-Binary-Tree
- Trie
- 1268.Search-Suggestions-System
- 208.Implement-Trie--Prefix-Tree
- 211.Add-and-Search-Word
- 212.Word-Search-II
- 421.Maximum-XOR-of-Two-Numbers-in-an-Array
- 588.Design-In-Memory-File-System
- 648.Replace-Words
- 676.Implement-Magic-Dictionary
- 677.Map-Sum-Pairs
- 745.Prefix-and-Suffix-Search
- Two_Pointers
- 003.Longest Substring Without Repeating Characters
- 011.Container-With-Most-Water
- 015.3Sum
- 016.3Sum-Closest
- 018.4Sum
- 026.Remove-Duplicates-from-Sorted-Array
- 030.Substring-with-Concatenation-of-All-Words
- 075.Sort-Colors
- 076.Minimum-Window-Substring
- 080.Remove-Duplicates-from-Sorted-Array-II
- 088.Merge-Sorted-Array
- 1052.Grumpy-Bookstore-Owner
- 1234.Replace-the-Substring-for-Balanced-String
- 141.Linked-List-Cycle
- 159.Longest-Substring-with-At-Most-Two-Distinct-Characters
- 209.Minimum-Size-Subarray-Sum
- 259.3Sum-Smaller
- 283.Move-Zeroes
- 340.Longest-Substring-with-At-Most-K-Distinct-Characters
- 360.Sort-Transformed-Array
- 532.K-diff-Pairs-in-an-Array
- 611.Valid-Triangle-Number
- 713.Subarray-Product-Less-Than-K
- 992.Subarrays-with-K-Different-Integers
- Union_Find
- 1101.The-Earliest-Moment-When-Everyone-Become-Friends
- 1135.Connecting-Cities-With-Minimum-Cost
- 1168.Optimize-Water-Distribution-in-a-Village
- 1202.Smallest-String-With-Swaps
- 128.Longest-Consecutive-Sequence
- 130.Surrounded-Regions
- 1319.Number-of-Operations-to-Make-Network-Connected
- 305.Number-of-Islands-II
- 547.Friend-Circles
- 684.Redundant-Connection
- 685.Redundant-Connection-II
- 721.Accounts-Merge
- 765.Couples-Holding-Hands
- 924.Minimize-Malware-Spread
- 947.Most-Stones-Removed-with-Same-Row-or-Column
- 952.Largest-Component-Size-by-Common-Factor
- 990.Satisfiability-of-Equality-Equations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
510 files changed
+1530
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
| 16 | + |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + |
0 commit comments