File tree
1,652 files changed
+84760
-44823
lines changed- images
- lcci
- 01.01.Is Unique
- 01.02.Check Permutation
- 01.04.Palindrome Permutation
- 01.05.One Away
- 01.06.Compress String
- 01.07.Rotate Matrix
- 02.08.Linked List Cycle
- 04.08.First Common Ancestor
- 04.12.Paths with Sum
- 05.03.Reverse Bits
- 08.02.Robot in a Grid
- 08.06.Hanota
- 08.07.Permutation I
- 08.08.Permutation II
- 08.09.Bracket
- 17.15.Longest Word
- lcof2
- 剑指 Offer II 057. 值和下标之差都在给定的范围内
- 剑指 Offer II 058. 日程表
- lcp
- LCP 24. 数字游戏
- LCP 52. 二叉搜索树染色
- LCP 62. 交通枢纽
- LCP 63. 弹珠游戏
- LCP 64. 二叉树灯饰
- LCP 66. 最小展台数量
- LCP 67. 装饰树
- LCP 68. 美观的花束
- solution
- 0000-0099
- 0003.Longest Substring Without Repeating Characters
- 0005.Longest Palindromic Substring
- 0009.Palindrome Number
- 0016.3Sum Closest
- 0019.Remove Nth Node From End of List
- 0021.Merge Two Sorted Lists
- 0022.Generate Parentheses
- 0024.Swap Nodes in Pairs
- 0027.Remove Element
- 0030.Substring with Concatenation of All Words
- 0033.Search in Rotated Sorted Array
- 0034.Find First and Last Position of Element in Sorted Array
- 0045.Jump Game II
- 0047.Permutations II
- 0059.Spiral Matrix II
- 0063.Unique Paths II
- images
- 0081.Search in Rotated Sorted Array II
- 0086.Partition List
- 0090.Subsets II
- 0100-0199
- 0119.Pascal's Triangle II
- 0128.Longest Consecutive Sequence
- 0131.Palindrome Partitioning
- 0132.Palindrome Partitioning II
- 0200-0299
- 0219.Contains Duplicate II
- 0220.Contains Duplicate III
- 0225.Implement Stack using Queues
- 0238.Product of Array Except Self
- 0254.Factor Combinations
- 0262.Trips and Users
- 0300-0399
- 0352.Data Stream as Disjoint Intervals
- 0363.Max Sum of Rectangle No Larger Than K
- 0400-0499/0480.Sliding Window Median
- 0500-0599
- 0547.Number of Provinces
- 0554.Brick Wall
- images
- 0557.Reverse Words in a String III
- 0576.Out of Boundary Paths
- 0583.Delete Operation for Two Strings
- 0588.Design In-Memory File System
- 0598.Range Addition II
- 0599.Minimum Index Sum of Two Lists
- 0600-0699
- 0622.Design Circular Queue
- 0624.Maximum Distance in Arrays
- 0628.Maximum Product of Three Numbers
- 0629.K Inverse Pairs Array
- 0657.Robot Return to Origin
- 0680.Valid Palindrome II
- 0691.Stickers to Spell Word
- 0700-0799
- 0705.Design HashSet
- 0713.Subarray Product Less Than K
- 0716.Max Stack
- 0720.Longest Word in Dictionary
- 0722.Remove Comments
- 0727.Minimum Window Subsequence
- 0729.My Calendar I
- 0731.My Calendar II
- 0733.Flood Fill
- 0734.Sentence Similarity
- 0763.Partition Labels
- 0765.Couples Holding Hands
- 0768.Max Chunks To Make Sorted II
- 0769.Max Chunks To Make Sorted
- 0771.Jewels and Stones
- 0772.Basic Calculator III
- 0779.K-th Symbol in Grammar
- 0781.Rabbits in Forest
- 0784.Letter Case Permutation
- 0785.Is Graph Bipartite
- 0790.Domino and Tromino Tiling
- 0800-0899
- 0801.Minimum Swaps To Make Sequences Increasing
- 0846.Hand of Straights
- 0850.Rectangle Area II
- 0855.Exam Room
- 0863.All Nodes Distance K in Binary Tree
- 0870.Advantage Shuffle
- 0888.Fair Candy Swap
- 0900-0999
- 0906.Super Palindromes
- 0913.Cat and Mouse
- 0916.Word Subsets
- 0922.Sort Array By Parity II
- 0965.Univalued Binary Tree
- 0966.Vowel Spellchecker
- 0968.Binary Tree Cameras
- 0971.Flip Binary Tree To Match Preorder Traversal
- 0974.Subarray Sums Divisible by K
- 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
- 1000-1099
- 1023.Camelcase Matching
- 1028.Recover a Tree From Preorder Traversal
- 1030.Matrix Cells in Distance Order
- 1100-1199
- 1172.Dinner Plate Stacks
- 1183.Maximum Number of Ones
- 1200-1299
- 1206.Design Skiplist
- 1244.Design A Leaderboard
- 1261.Find Elements in a Contaminated Binary Tree
- 1278.Palindrome Partitioning III
- 1287.Element Appearing More Than 25% In Sorted Array
- 1288.Remove Covered Intervals
- 1289.Minimum Falling Path Sum II
- 1296.Divide Array in Sets of K Consecutive Numbers
- 1300-1399
- 1348.Tweet Counts Per Frequency
- 1352.Product of the Last K Numbers
- 1363.Largest Multiple of Three
- 1365.How Many Numbers Are Smaller Than the Current Number
- 1400-1499
- 1400.Construct K Palindrome Strings
- 1408.String Matching in an Array
- 1415.The k-th Lexicographical String of All Happy Strings of Length n
- 1434.Number of Ways to Wear Different Hats to Each Other
- 1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1444.Number of Ways of Cutting a Pizza
- 1467.Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1488.Avoid Flood in The City
- 1500-1599
- 1524.Number of Sub-arrays With Odd Sum
- 1534.Count Good Triplets
- 1535.Find the Winner of an Array Game
- 1552.Magnetic Force Between Two Balls
- 1590.Make Sum Divisible by P
- 1600-1699
- 1603.Design Parking System
- 1606.Find Servers That Handled Most Number of Requests
- 1616.Split Two Strings to Make Palindrome
- 1656.Design an Ordered Stream
- 1676.Lowest Common Ancestor of a Binary Tree IV
- 1681.Minimum Incompatibility
- 1700-1799
- 1706.Where Will the Ball Fall
- 1718.Construct the Lexicographically Largest Valid Sequence
- 1728.Cat and Mouse II
- 1730.Shortest Path to Get Food
- 1742.Maximum Number of Balls in a Box
- 1745.Palindrome Partitioning IV
- 1752.Check if Array Is Sorted and Rotated
- 1760.Minimum Limit of Balls in a Bag
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1762.Buildings With an Ocean View
- 1800-1899
- 1800.Maximum Ascending Subarray Sum
- 1825.Finding MK Average
- 1847.Closest Room
- 1852.Distinct Numbers in Each Subarray
- 1864.Minimum Number of Swaps to Make the Binary String Alternating
- 1865.Finding Pairs With a Certain Sum
- 1866.Number of Ways to Rearrange Sticks With K Sticks Visible
- 1877.Minimize Maximum Pair Sum in Array
- 1878.Get Biggest Three Rhombus Sums in a Grid
- 1880.Check if Word Equals Summation of Two Words
- 1881.Maximum Value after Insertion
- 1882.Process Tasks Using Servers
- 1883.Minimum Skips to Arrive at Meeting On Time
- 1885.Count Pairs in Two Arrays
- 1887.Reduction Operations to Make the Array Elements Equal
- 1900-1999
- 1902.Depth of BST Given Insertion Order
- 1909.Remove One Element to Make the Array Strictly Increasing
- 1911.Maximum Alternating Subsequence Sum
- 1912.Design Movie Rental System
- 1920.Build Array from Permutation
- 1926.Nearest Exit from Entrance in Maze
- 1927.Sum Game
- 1930.Unique Length-3 Palindromic Subsequences
- 1940.Longest Common Subsequence Between Sorted Arrays
- 1941.Check if All Characters Have Equal Number of Occurrences
- 1942.The Number of the Smallest Unoccupied Chair
- 1944.Number of Visible People in a Queue
- 1945.Sum of Digits of String After Convert
- 1946.Largest Number After Mutating Substring
- 1947.Maximum Compatibility Score Sum
- 1968.Array With Elements Not Equal to Average of Neighbors
- 1974.Minimum Time to Type Word Using Special Typewriter
- 1975.Maximum Matrix Sum
- 1976.Number of Ways to Arrive at Destination
- images
- 1977.Number of Ways to Separate Numbers
- 1980.Find Unique Binary String
- 1981.Minimize the Difference Between Target and Chosen Elements
- 1982.Find Array Given Subset Sums
- 1985.Find the Kth Largest Integer in the Array
- 1986.Minimum Number of Work Sessions to Finish the Tasks
- 1987.Number of Unique Good Subsequences
- 1989.Maximum Number of People That Can Be Caught in Tag
- 1991.Find the Middle Index in Array
- 1996.The Number of Weak Characters in the Game
- 2000-2099
- 2011.Final Value of Variable After Performing Operations
- 2012.Sum of Beauty in the Array
- 2021.Brightest Position on Street
- 2031.Count Subarrays With More Ones Than Zeros
- 2034.Stock Price Fluctuation
- 2054.Two Best Non-Overlapping Events
- 2062.Count Vowel Substrings of a String
- 2063.Vowels of All Substrings
- 2080.Range Frequency Queries
- 2083.Substrings That Begin and End With the Same Letter
- 2100-2199
- 2102.Sequentially Ordinal Rank Tracker
- 2115.Find All Possible Recipes from Given Supplies
- 2116.Check if a Parentheses String Can Be Valid
- 2119.A Number After a Double Reversal
- 2138.Divide a String Into Groups of Size k
- 2151.Maximum Good People Based on Statements
- 2161.Partition Array According to Given Pivot
- 2165.Smallest Value of the Rearranged Number
- 2169.Count Operations to Obtain Zero
- 2177.Find Three Consecutive Integers That Sum to a Given Number
- 2178.Maximum Split of Positive Even Integers
- 2189.Number of Ways to Build House of Cards
- 2190.Most Frequent Number Following Key In an Array
- 2200-2299
- 2206.Divide Array Into Equal Pairs
- 2209.Minimum White Tiles After Covering With Carpets
- 2211.Count Collisions on a Road
- 2212.Maximum Points in an Archery Competition
- 2214.Minimum Health to Beat Game
- 2218.Maximum Value of K Coins From Piles
- 2219.Maximum Sum Score of Array
- 2220.Minimum Bit Flips to Convert Number
- 2221.Find Triangular Sum of an Array
- 2226.Maximum Candies Allocated to K Children
- 2229.Check if an Array Is Consecutive
- 2233.Maximum Product After K Increments
- 2234.Maximum Total Beauty of the Gardens
- 2239.Find Closest Number to Zero
- 2243.Calculate Digit Sum of a String
- 2266.Count Number of Texts
- 2276.Count Integers in Intervals
- 2282.Number of People That Can Be Seen in a Grid
- 2287.Rearrange Characters to Make Target String
- 2290.Minimum Obstacle Removal to Reach Corner
- 2291.Maximum Profit From Trading Stocks
- 2296.Design a Text Editor
- 2300-2399
- 2311.Longest Binary Subsequence Less Than or Equal to K
- 2313.Minimum Flips in Binary Tree to Get Result
- 2315.Count Asterisks
- 2317.Maximum XOR After Operations
- 2319.Check if Matrix Is X-Matrix
- 2320.Count Number of Ways to Place Houses
- 2323.Find Minimum Time to Finish All Jobs II
- 2330.Valid Palindrome IV
- 2336.Smallest Number in Infinite Set
- 2342.Max Sum of a Pair With Equal Sum of Digits
- 2349.Design a Number Container System
- 2353.Design a Food Rating System
- 2360.Longest Cycle in a Graph
- 2378.Choose Edges to Maximize Score in a Tree
- 2389.Longest Subsequence With Limited Sum
- 2400-2499
- 2412.Minimum Money Required Before Transactions
- 2419.Longest Subarray With Maximum Bitwise AND
- 2425.Bitwise XOR of All Pairings
- 2452.Words Within Two Edits of Dictionary
- 2454.Next Greater Element IV
- 2493.Divide Nodes Into the Maximum Number of Groups
- 2500-2599
- 2502.Design Memory Allocator
- 2506.Count Pairs Of Similar Strings
- 2510.Check if There is a Path With Equal Number of 0's And 1's
- 2523.Closest Prime Numbers in Range
- 2524.Maximum Frequency Score of a Subarray
- 2559.Count Vowel Strings in Ranges
- 2562.Find the Array Concatenation Value
- 2570.Merge Two 2D Arrays by Summing Values
- 2574.Left and Right Sum Differences
- 2588.Count the Number of Beautiful Subarrays
- 2590.Design a Todo List
- 2595.Number of Even and Odd Bits
- 2596.Check Knight Tour Configuration
- 2597.The Number of Beautiful Subsets
- 2600-2699
- 2607.Make K-Subarray Sums Equal
- 2612.Minimum Reverse Operations
- 2653.Sliding Subarray Beauty
- 2659.Make Array Empty
- 2674.Split a Circular Linked List
- 2698.Find the Punishment Number of an Integer
- 2700-2799
- 2745.Construct the Longest New String
- 2749.Minimum Operations to Make the Integer Zero
- 2762.Continuous Subarrays
- 2763.Sum of Imbalance Numbers of All Subarrays
- 2780.Minimum Index of a Valid Split
- 2800-2899
- 2812.Find the Safest Path in a Grid
- 2817.Minimum Absolute Difference Between Elements With Constraint
- 2818.Apply Operations to Maximize Score
- 2900-2999
- 2920.Maximum Points After Collecting Coins From All Nodes
- 2944.Minimum Number of Coins for Fruits
- 2992.Number of Self-Divisible Permutations
- 3000-3099
- 3013.Divide an Array Into Subarrays With Minimum Cost II
- 3066.Minimum Operations to Exceed Threshold Value II
- 3072.Distribute Elements Into Two Arrays II
- 3073.Maximum Increasing Triplet Value
- 3095.Shortest Subarray With OR at Least K I
- 3097.Shortest Subarray With OR at Least K II
- 3100-3199
- 3102.Minimize Manhattan Distances
- 3105.Longest Strictly Increasing or Strictly Decreasing Subarray
- 3147.Taking Maximum Energy From the Mystic Dungeon
- 3151.Special Array I
- 3160.Find the Number of Distinct Colors Among the Balls
- 3174.Clear Digits
- 3180.Maximum Total Reward Using Operations I
- 3181.Maximum Total Reward Using Operations II
- 3200-3299
- 3223.Minimum Length of String After Operations
- 3278.Find Candidates for Data Scientist Position II
- 3287.Find the Maximum Sequence Value of Array
- 3300-3399
- 3318.Find X-Sum of All K-Long Subarrays I
- 3321.Find X-Sum of All K-Long Subarrays II
- 3369.Design an Array Statistics Tracker
- 3391.Design a 3D Binary Matrix with Efficient Layer Tracking
- 3400-3499
- 3402.Minimum Operations to Make Columns Strictly Increasing
- 3403.Find the Lexicographically Largest String From the Box I
- 3404.Count Special Subsequences
- 3405.Count the Number of Arrays with K Matching Adjacent Elements
- 3407.Substring Matching Pattern
- 3408.Design Task Manager
- 3409.Longest Subsequence With Decreasing Adjacent Difference
- 3410.Maximize Subarray Sum After Removing All Occurrences of One Element
- 3411.Maximum Subarray With Equal Products
- 3412.Find Mirror Score of a String
- 3413.Maximum Coins From K Consecutive Bags
- 3414.Maximum Score of Non-overlapping Intervals
- 3416.Subsequences with a Unique Middle Mode II
- 3417.Zigzag Grid Traversal With Skip
- 3418.Maximum Amount of Money Robot Can Earn
- 3419.Minimize the Maximum Edge Weight of Graph
- 3420.Count Non-Decreasing Subarrays After K Operations
- 3421.Find Students Who Improved
- 3422.Minimum Operations to Make Subarray Elements Equal
- 3423.Maximum Difference Between Adjacent Elements in a Circular Array
- 3424.Minimum Cost to Make Arrays Identical
- 3425.Longest Special Path
- images
- 3426.Manhattan Distances of All Arrangements of Pieces
- images
- 3427.Sum of Variable Length Subarrays
- 3428.Maximum and Minimum Sums of at Most Size K Subsequences
- 3429.Paint House IV
- 3430.Maximum and Minimum Sums of at Most Size K Subarrays
- 3431.Minimum Unlocked Indices to Sort Nums
- 3432.Count Partitions with Even Sum Difference
- 3433.Count Mentions Per User
- 3434.Maximum Frequency After Subarray Operation
- 3435.Frequencies of Shortest Supersequences
- 3436.Find Valid Emails
- 3437.Permutations III
- 3438.Find Valid Pair of Adjacent Digits in String
- 3439.Reschedule Meetings for Maximum Free Time I
- images
- 3440.Reschedule Meetings for Maximum Free Time II
- images
- 3441.Minimum Cost Good Caption
- 3442.Maximum Difference Between Even and Odd Frequency I
- 3443.Maximum Manhattan Distance After K Changes
- 3444.Minimum Increments for Target Multiples in an Array
- 3445.Maximum Difference Between Even and Odd Frequency II
- 3446.Sort Matrix by Diagonals
- images
- 3447.Assign Elements to Groups with Constraints
- 3448.Count Substrings Divisible By Last Digit
- 3449.Maximize the Minimum Game Score
- 3450.Maximum Students on a Single Bench
- 3451.Find Invalid IP Addresses
- 3452.Sum of Good Numbers
- 3453.Separate Squares I
- images
- 3454.Separate Squares II
- images
- 3455.Shortest Matching Substring
- 3456.Find Special Substring of Length K
- 3457.Eat Pizzas!
- 3458.Select K Disjoint Special Substrings
- 3459.Length of Longest V-Shaped Diagonal Segment
- images
- 3460.Longest Common Prefix After at Most One Removal
- 3461.Check If Digits Are Equal in String After Operations I
- 3462.Maximum Sum With at Most K Elements
- 3463.Check If Digits Are Equal in String After Operations II
- 3464.Maximize the Distance Between Points on a Square
- images
- 3465.Find Products with Valid Serial Numbers
- 3466.Maximum Coin Collection
- 3467.Transform Array by Parity
- 3468.Find the Number of Copy Arrays
- 3469.Find Minimum Cost to Remove Array Elements
- 3470.Permutations IV
- 3471.Find the Largest Almost Missing Integer
- 3472.Longest Palindromic Subsequence After at Most K Operations
- 3473.Sum of K Subarrays With Length at Least M
- 3474.Lexicographically Smallest Generated String
- 3475.DNA Pattern Recognition
- 3476.Maximize Profit from Task Assignment
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,652 files changed
+84760
-44823
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + |
Lines changed: 4 additions & 4 deletions
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 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
| 34 | + | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
0 commit comments