File tree
1,438 files changed
+907
-924
lines changed- leetcode
- 0001.Two-Sum
- 0002.Add-Two-Numbers
- 0003.Longest-Substring-Without-Repeating-Characters
- 0004.Median-of-Two-Sorted-Arrays
- 0007.Reverse-Integer
- 0011.Container-With-Most-Water
- 0015.3Sum
- 0016.3Sum-Closest
- 0017.Letter-Combinations-of-a-Phone-Number
- 0018.4Sum
- 0019.Remove-Nth-Node-From-End-of-List
- 0020.Valid-Parentheses
- 0021.Merge-Two-Sorted-Lists
- 0022.Generate-Parentheses
- 0023.Merge-k-Sorted-Lists
- 0024.Swap-Nodes-in-Pairs
- 0025.Reverse-Nodes-in-k-Group
- 0026.Remove-Duplicates-from-Sorted-Array
- 0027.Remove-Element
- 0028.Implement-strStr
- 0029.Divide-Two-Integers
- 0030.Substring-with-Concatenation-of-All-Words
- 0033.Search-in-Rotated-Sorted-Array
- 0034.Find-First-and-Last-Position-of-Element-in-Sorted-Array
- 0035.Search-Insert-Position
- 0036.Valid-Sudoku
- 0037.Sudoku-Solver
- 0039.Combination-Sum
- 0040.Combination-Sum-II
- 0041.First-Missing-Positive
- 0042.Trapping-Rain-Water
- 0046.Permutations
- 0047.Permutations-II
- 0048.Rotate-Image
- 0049.Group-Anagrams
- 0050.Powx-n
- 0051.N-Queens
- 0052.N-Queens-II
- 0053.Maximum-Subarray
- 0054.Spiral-Matrix
- 0055.Jump-Game
- 0056.Merge-Intervals
- 0057.Insert-Interval
- 0059.Spiral-Matrix-II
- 0060.Permutation-Sequence
- 0061.Rotate-List
- 0062.Unique-Paths
- 0063.Unique-Paths-II
- 0064.Minimum-Path-Sum
- 0066.Plus-One
- 0069.Sqrtx
- 0070.Climbing-Stairs
- 0071.Simplify-Path
- 0074.Search-a-2D-Matrix
- 0075.Sort-Colors
- 0076.Minimum-Window-Substring
- 0077.Combinations
- 0078.Subsets
- 0079.Word-Search
- 0080.Remove-Duplicates-from-Sorted-Array-II
- 0081.Search-in-Rotated-Sorted-Array-II
- 0082.Remove-Duplicates-from-Sorted-List-II
- 0083.Remove-Duplicates-from-Sorted-List
- 0084.Largest-Rectangle-in-Histogram
- 0086.Partition-List
- 0088.Merge-Sorted-Array
- 0089.Gray-Code
- 0090.Subsets-II
- 0091.Decode-Ways
- 0092.Reverse-Linked-List-II
- 0093.Restore-IP-Addresses
- 0094.Binary-Tree-Inorder-Traversal
- 0095.Unique-Binary-Search-Trees-II
- 0096.Unique-Binary-Search-Trees
- 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
- 0120.Triangle
- 0121.Best-Time-to-Buy-and-Sell-Stock
- 0122.Best-Time-to-Buy-and-Sell-Stock-II
- 0124.Binary-Tree-Maximum-Path-Sum
- 0125.Valid-Palindrome
- 0126.Word-Ladder-II
- 0127.Word-Ladder
- 0128.Longest-Consecutive-Sequence
- 0129.Sum-Root-to-Leaf-Numbers
- 0130.Surrounded-Regions
- 0131.Palindrome-Partitioning
- 0136.Single-Number
- 0137.Single-Number-II
- 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
- 0150.Evaluate-Reverse-Polish-Notation
- 0151.Reverse-Words-in-a-String
- 0152.Maximum-Product-Subarray
- 0153.Find-Minimum-in-Rotated-Sorted-Array
- 0154.Find-Minimum-in-Rotated-Sorted-Array-II
- 0155.Min-Stack
- 0160.Intersection-of-Two-Linked-Lists
- 0162.Find-Peak-Element
- 0164.Maximum-Gap
- 0167.Two-Sum-II---Input-array-is-sorted
- 0169.Majority-Element
- 0172.Factorial-Trailing-Zeroes
- 0173.Binary-Search-Tree-Iterator
- 0174.Dungeon-Game
- 0179.Largest-Number
- 0187.Repeated-DNA-Sequences
- 0190.Reverse-Bits
- 0191.Number-of-1-Bits
- 0198.House-Robber
- 0199.Binary-Tree-Right-Side-View
- 0200.Number-of-Islands
- 0201.Bitwise-AND-of-Numbers-Range
- 0202.Happy-Number
- 0203.Remove-Linked-List-Elements
- 0204.Count-Primes
- 0205.Isomorphic-Strings
- 0206.Reverse-Linked-List
- 0207.Course-Schedule
- 0208.Implement-Trie-Prefix-Tree
- 0209.Minimum-Size-Subarray-Sum
- 0210.Course-Schedule-II
- 0211.Add-and-Search-Word---Data-structure-design
- 0212.Word-Search-II
- 0213.House-Robber-II
- 0215.Kth-Largest-Element-in-an-Array
- 0216.Combination-Sum-III
- 0217.Contains-Duplicate
- 0218.The-Skyline-Problem
- 0219.Contains-Duplicate-II
- 0220.Contains-Duplicate-III
- 0222.Count-Complete-Tree-Nodes
- 0223.Rectangle-Area
- 0224.Basic-Calculator
- 0225.Implement-Stack-using-Queues
- 0226.Invert-Binary-Tree
- 0229.Majority-Element-II
- 0230.Kth-Smallest-Element-in-a-BST
- 0231.Power-of-Two
- 0232.Implement-Queue-using-Stacks
- 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
- 0239.Sliding-Window-Maximum
- 0240.Search-a-2D-Matrix-II
- 0242.Valid-Anagram
- 0257.Binary-Tree-Paths
- 0260.Single-Number-III
- 0263.Ugly-Number
- 0268.Missing-Number
- 0274.H-Index
- 0275.H-Index-II
- 0283.Move-Zeroes
- 0287.Find-the-Duplicate-Number
- 0290.Word-Pattern
- 0300.Longest-Increasing-Subsequence
- 0303.Range-Sum-Query---Immutable
- 0306.Additive-Number
- 0307.Range-Sum-Query---Mutable
- 0309.Best-Time-to-Buy-and-Sell-Stock-with-Cooldown
- 0315.Count-of-Smaller-Numbers-After-Self
- 0318.Maximum-Product-of-Word-Lengths
- 0322.Coin-Change
- 0324.Wiggle-Sort-II
- 0326.Power-of-Three
- 0327.Count-of-Range-Sum
- 0328.Odd-Even-Linked-List
- 0329.Longest-Increasing-Path-in-a-Matrix
- 0331.Verify-Preorder-Serialization-of-a-Binary-Tree
- 0337.House-Robber-III
- 0338.Counting-Bits
- 0342.Power-of-Four
- 0343.Integer-Break
- 0344.Reverse-String
- 0345.Reverse-Vowels-of-a-String
- 0347.Top-K-Frequent-Elements
- 0349.Intersection-of-Two-Arrays
- 0350.Intersection-of-Two-Arrays-II
- 0354.Russian-Doll-Envelopes
- 0357.Count-Numbers-with-Unique-Digits
- 0367.Valid-Perfect-Square
- 0371.Sum-of-Two-Integers
- 0372.Super-Pow
- 0373.Find-K-Pairs-with-Smallest-Sums
- 0378.Kth-Smallest-Element-in-a-Sorted-Matrix
- 0385.Mini-Parser
- 0386.Lexicographical-Numbers
- 0387.First-Unique-Character-in-a-String
- 0389.Find-the-Difference
- 0392.Is-Subsequence
- 0393.UTF-8-Validation
- 0394.Decode-String
- 0397.Integer-Replacement
- 0399.Evaluate-Division
- 0401.Binary-Watch
- 0402.Remove-K-Digits
- 0404.Sum-of-Left-Leaves
- 0405.Convert-a-Number-to-Hexadecimal
- 0409.Longest-Palindrome
- 0410.Split-Array-Largest-Sum
- 0412.Fizz-Buzz
- 0414.Third-Maximum-Number
- 0416.Partition-Equal-Subset-Sum
- 0421.Maximum-XOR-of-Two-Numbers-in-an-Array
- 0424.Longest-Repeating-Character-Replacement
- 0433.Minimum-Genetic-Mutation
- 0435.Non-overlapping-Intervals
- 0436.Find-Right-Interval
- 0437.Path-Sum-III
- 0438.Find-All-Anagrams-in-a-String
- 0441.Arranging-Coins
- 0445.Add-Two-Numbers-II
- 0447.Number-of-Boomerangs
- 0451.Sort-Characters-By-Frequency
- 0454.4Sum-II
- 0455.Assign-Cookies
- 0456.132-Pattern
- 0457.Circular-Array-Loop
- 0461.Hamming-Distance
- 0463.Island-Perimeter
- 0470.Implement-Rand10-Using-Rand7
- 0474.Ones-and-Zeroes
- 0475.Heaters
- 0476.Number-Complement
- 0477.Total-Hamming-Distance
- 0480.Sliding-Window-Median
- 0483.Smallest-Good-Base
- 0491.Increasing-Subsequences
- 0493.Reverse-Pairs
- 0494.Target-Sum
- 0496.Next-Greater-Element-I
- 0497.Random-Point-in-Non-overlapping-Rectangles
- 0498.Diagonal-Traverse
- 0500.Keyboard-Row
- 0503.Next-Greater-Element-II
- 0508.Most-Frequent-Subtree-Sum
- 0509.Fibonacci-Number
- 0513.Find-Bottom-Left-Tree-Value
- 0515.Find-Largest-Value-in-Each-Tree-Row
- 0524.Longest-Word-in-Dictionary-through-Deleting
- 0526.Beautiful-Arrangement
- 0528.Random-Pick-with-Weight
- 0529.Minesweeper
- 0532.K-diff-Pairs-in-an-Array
- 0541.Reverse-String-II
- 0542.01-Matrix
- 0547.Friend-Circles
- 0557.Reverse-Words-in-a-String-III
- 0563.Binary-Tree-Tilt
- 0566.Reshape-the-Matrix
- 0567.Permutation-in-String
- 0572.Subtree-of-Another-Tree
- 0575.Distribute-Candies
- 0594.Longest-Harmonious-Subsequence
- 0599.Minimum-Index-Sum-of-Two-Lists
- 0628.Maximum-Product-of-Three-Numbers
- 0632.Smallest-Range-Covering-Elements-from-K-Lists
- 0633.Sum-of-Square-Numbers
- 0636.Exclusive-Time-of-Functions
- 0637.Average-of-Levels-in-Binary-Tree
- 0638.Shopping-Offers
- 0645.Set-Mismatch
- 0648.Replace-Words
- 0653.Two-Sum-IV---Input-is-a-BST
- 0658.Find-K-Closest-Elements
- 0662.Maximum-Width-of-Binary-Tree
- 0668.Kth-Smallest-Number-in-Multiplication-Table
- 0676.Implement-Magic-Dictionary
- 0682.Baseball-Game
- 0684.Redundant-Connection
- 0685.Redundant-Connection-II
- 0693.Binary-Number-with-Alternating-Bits
- 0695.Max-Area-of-Island
- 0699.Falling-Squares
- 0704.Binary-Search
- 0705.Design-HashSet
- 0706.Design-HashMap
- 0707.Design-Linked-List
- 0710.Random-Pick-with-Blacklist
- 0713.Subarray-Product-Less-Than-K
- 0714.Best-Time-to-Buy-and-Sell-Stock-with-Transaction-Fee
- 0715.Range-Module
- 0717.1-bit-and-2-bit-Characters
- 0718.Maximum-Length-of-Repeated-Subarray
- 0719.Find-K-th-Smallest-Pair-Distance
- 0720.Longest-Word-in-Dictionary
- 0721.Accounts-Merge
- 0725.Split-Linked-List-in-Parts
- 0726.Number-of-Atoms
- 0729.My-Calendar-I
- 0732.My-Calendar-III
- 0733.Flood-Fill
- 0735.Asteroid-Collision
- 0739.Daily-Temperatures
- 0744.Find-Smallest-Letter-Greater-Than-Target
- 0745.Prefix-and-Suffix-Search
- 0746.Min-Cost-Climbing-Stairs
- 0748.Shortest-Completing-Word
- 0753.Cracking-the-Safe
- 0756.Pyramid-Transition-Matrix
- 0762.Prime-Number-of-Set-Bits-in-Binary-Representation
- 0763.Partition-Labels
- 0765.Couples-Holding-Hands
- 0766.Toeplitz-Matrix
- 0767.Reorganize-String
- 0771.Jewels-and-Stones
- 0778.Swim-in-Rising-Water
- 0781.Rabbits-in-Forest
- 0784.Letter-Case-Permutation
- 0786.K-th-Smallest-Prime-Fraction
- 0793.Preimage-Size-of-Factorial-Zeroes-Function
- 0802.Find-Eventual-Safe-States
- 0803.Bricks-Falling-When-Hit
- 0811.Subdomain-Visit-Count
- 0815.Bus-Routes
- 0817.Linked-List-Components
- 0819.Most-Common-Word
- 0826.Most-Profit-Assigning-Work
- 0828.COPYRIGHT-PROBLEM-XXX
- 0834.Sum-of-Distances-in-Tree
- 0836.Rectangle-Overlap
- 0838.Push-Dominoes
- 0839.Similar-String-Groups
- 0841.Keys-and-Rooms
- 0842.Split-Array-into-Fibonacci-Sequence
- 0844.Backspace-String-Compare
- 0845.Longest-Mountain-in-Array
- 0850.Rectangle-Area-II
- 0851.Loud-and-Rich
- 0852.Peak-Index-in-a-Mountain-Array
- 0853.Car-Fleet
- 0856.Score-of-Parentheses
- 0862.Shortest-Subarray-with-Sum-at-Least-K
- 0863.All-Nodes-Distance-K-in-Binary-Tree
- 0864.Shortest-Path-to-Get-All-Keys
- 0867.Transpose-Matrix
- 0872.Leaf-Similar-Trees
- 0875.Koko-Eating-Bananas
- 0876.Middle-of-the-Linked-List
- 0878.Nth-Magical-Number
- 0880.Decoded-String-at-Index
- 0881.Boats-to-Save-People
- 0884.Uncommon-Words-from-Two-Sentences
- 0885.Spiral-Matrix-III
- 0887.Super-Egg-Drop
- 0891.Sum-of-Subsequence-Widths
- 0895.Maximum-Frequency-Stack
- 0897.Increasing-Order-Search-Tree
- 0898.Bitwise-ORs-of-Subarrays
- 0901.Online-Stock-Span
- 0904.Fruit-Into-Baskets
- 0907.Sum-of-Subarray-Minimums
- 0911.Online-Election
- 0918.Maximum-Sum-Circular-Subarray
- 0920.Number-of-Music-Playlists
- 0921.Minimum-Add-to-Make-Parentheses-Valid
- 0922.Sort-Array-By-Parity-II
- 0923.3Sum-With-Multiplicity
- 0924.Minimize-Malware-Spread
- 0925.Long-Pressed-Name
- 0927.Three-Equal-Parts
- 0928.Minimize-Malware-Spread-II
- 0930.Binary-Subarrays-With-Sum
- 0933.Number-of-Recent-Calls
- 0942.DI-String-Match
- 0946.Validate-Stack-Sequences
- 0947.Most-Stones-Removed-with-Same-Row-or-Column
- 0952.Largest-Component-Size-by-Common-Factor
- 0953.Verifying-an-Alien-Dictionary
- 0959.Regions-Cut-By-Slashes
- 0961.N-Repeated-Element-in-Size-2N-Array
- 0968.Binary-Tree-Cameras
- 0969.Pancake-Sorting
- 0970.Powerful-Integers
- 0973.K-Closest-Points-to-Origin
- 0976.Largest-Perimeter-Triangle
- 0977.Squares-of-a-Sorted-Array
- 0978.Longest-Turbulent-Subarray
- 0979.Distribute-Coins-in-Binary-Tree
- 0980.Unique-Paths-III
- 0981.Time-Based-Key-Value-Store
- 0984.String-Without-AAA-or-BBB
- 0986.Interval-List-Intersections
- 0990.Satisfiability-of-Equality-Equations
- 0992.Subarrays-with-K-Different-Integers
- 0993.Cousins-in-Binary-Tree
- 0995.Minimum-Number-of-K-Consecutive-Bit-Flips
- 0996.Number-of-Squareful-Arrays
- 1002.Find-Common-Characters
- 1003.Check-If-Word-Is-Valid-After-Substitutions
- 1004.Max-Consecutive-Ones-III
- 1005.Maximize-Sum-Of-Array-After-K-Negations
- 1011.Capacity-To-Ship-Packages-Within-D-Days
- 1017.Convert-to-Base--2
- 1019.Next-Greater-Node-In-Linked-List
- 1020.Number-of-Enclaves
- 1021.Remove-Outermost-Parentheses
- 1025.Divisor-Game
- 1026.Maximum-Difference-Between-Node-and-Ancestor
- 1028.Recover-a-Tree-From-Preorder-Traversal
- 1030.Matrix-Cells-in-Distance-Order
- 1040.Moving-Stones-Until-Consecutive-II
- 1047.Remove-All-Adjacent-Duplicates-In-String
- 1049.Last-Stone-Weight-II
- 1052.Grumpy-Bookstore-Owner
- 1054.Distant-Barcodes
- 1073.Adding-Two-Negabinary-Numbers
- 1074.Number-of-Submatrices-That-Sum-to-Target
- 1078.Occurrences-After-Bigram
- 1079.Letter-Tile-Possibilities
- 1093.Statistics-from-a-Large-Sample
- 1105.Filling-Bookcase-Shelves
- 1108.Defanging-an-IP-Address
- 1110.Delete-Nodes-And-Return-Forest
- 1111.Maximum-Nesting-Depth-of-Two-Valid-Parentheses-Strings
- 1122.Relative-Sort-Array
- 1123.Lowest-Common-Ancestor-of-Deepest-Leaves
- 1128.Number-of-Equivalent-Domino-Pairs
- 1137.N-th-Tribonacci-Number
- 1145.Binary-Tree-Coloring-Game
- 1154.Day-of-the-Year
- 1157.Online-Majority-Element-In-Subarray
- 1160.Find-Words-That-Can-Be-Formed-by-Characters
- 1170.Compare-Strings-by-Frequency-of-the-Smallest-Character
- 1171.Remove-Zero-Sum-Consecutive-Nodes-from-Linked-List
- 1175.Prime-Arrangements
- 1184.Distance-Between-Bus-Stops
- 1185.Day-of-the-Week
- 1189.Maximum-Number-of-Balloons
- 1200.Minimum-Absolute-Difference
- 1201.Ugly-Number-III
- 1202.Smallest-String-With-Swaps
- 1207.Unique-Number-of-Occurrences
- 1208.Get-Equal-Substrings-Within-Budget
- 1217.Play-with-Chips
- 1221.Split-a-String-in-Balanced-Strings
- 1232.Check-If-It-Is-a-Straight-Line
- 1234.Replace-the-Substring-for-Balanced-String
- 1235.Maximum-Profit-in-Job-Scheduling
- 1252.Cells-with-Odd-Values-in-a-Matrix
- 1254.Number-of-Closed-Islands
- 1266.Minimum-Time-Visiting-All-Points
- 1281.Subtract-the-Product-and-Sum-of-Digits-of-an-Integer
- 1283.Find-the-Smallest-Divisor-Given-a-Threshold
- 1287.Element-Appearing-More-Than-In-Sorted-Array
- 1290.Convert-Binary-Number-in-a-Linked-List-to-Integer
- 1295.Find-Numbers-with-Even-Number-of-Digits
- 1299.Replace-Elements-with-Greatest-Element-on-Right-Side
- 1300.Sum-of-Mutated-Array-Closest-to-Target
- 1302.Deepest-Leaves-Sum
- 1304.Find-N-Unique-Integers-Sum-up-to-Zero
- 1305.All-Elements-in-Two-Binary-Search-Trees
- 1306.Jump-Game-III
- topic
- website/content
- ChapterFour
- ChapterOne
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,438 files changed
+907
-924
lines changed+900-913
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments