File tree
1,455 files changed
+55617
-31740
lines changed- .github/workflows
- images
- lcci
- 02.05.Sum Lists
- 03.02.Min Stack
- 04.05.Legal Binary Search Tree
- 04.10.Check SubTree
- 16.07.Maximum
- 16.15.Master Mind
- 17.23.Max Black Square
- lcof
- 面试题12. 矩阵中的路径
- 面试题19. 正则表达式匹配
- 面试题25. 合并两个排序的链表
- 面试题30. 包含min函数的栈
- 面试题41. 数据流中的中位数
- 面试题45. 把数组排成最小的数
- 面试题47. 礼物的最大价值
- 面试题52. 两个链表的第一个公共节点
- 面试题59 - II. 队列的最大值
- lcof2
- 剑指 Offer II 019. 最多删除一个字符得到回文
- 剑指 Offer II 023. 两个链表的第一个重合节点
- 剑指 Offer II 038. 每日温度
- 剑指 Offer II 050. 向下的路径节点之和
- 剑指 Offer II 051. 节点之和最大的路径
- 剑指 Offer II 053. 二叉搜索树中的中序后继
- 剑指 Offer II 057. 值和下标之差都在给定的范围内
- 剑指 Offer II 086. 分割回文子字符串
- 剑指 Offer II 091. 粉刷房子
- 剑指 Offer II 095. 最长公共子序列
- 剑指 Offer II 096. 字符串交织
- 剑指 Offer II 097. 子序列的数目
- 剑指 Offer II 105. 岛屿的最大面积
- lcp
- LCP 01. 猜数字
- LCP 03. 机器人大冒险
- LCP 19. 秋叶收藏集
- LCP 22. 黑白方格画
- LCP 34. 二叉树染色
- LCP 39. 无人机方阵
- LCP 52. 二叉搜索树染色
- LCP 55. 采集果实
- LCP 56. 信物传送
- lcs/LCS 03. 主题空间
- solution
- 0000-0099
- 0002.Add Two Numbers
- 0003.Longest Substring Without Repeating Characters
- 0005.Longest Palindromic Substring
- 0010.Regular Expression Matching
- 0012.Integer to Roman
- 0020.Valid Parentheses
- 0021.Merge Two Sorted Lists
- 0030.Substring with Concatenation of All Words
- 0033.Search in Rotated Sorted Array
- 0034.Find First and Last Position of Element in Sorted Array
- 0038.Count and Say
- 0039.Combination Sum
- 0040.Combination Sum II
- 0056.Merge Intervals
- 0057.Insert Interval
- 0061.Rotate List
- 0072.Edit Distance
- 0080.Remove Duplicates from Sorted Array II
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- 0087.Scramble String
- 0091.Decode Ways
- 0092.Reverse Linked List II
- 0094.Binary Tree Inorder Traversal
- 0097.Interleaving String
- 0100-0199
- 0100.Same Tree
- 0112.Path Sum
- 0115.Distinct Subsequences
- 0120.Triangle
- 0128.Longest Consecutive Sequence
- 0130.Surrounded Regions
- 0131.Palindrome Partitioning
- 0160.Intersection of Two Linked Lists
- 0168.Excel Sheet Column Title
- 0185.Department Top Three Salaries
- 0196.Delete Duplicate Emails
- 0197.Rising Temperature
- 0200-0299
- 0209.Minimum Size Subarray Sum
- 0210.Course Schedule II
- 0219.Contains Duplicate II
- 0220.Contains Duplicate III
- 0228.Summary Ranges
- 0235.Lowest Common Ancestor of a Binary Search Tree
- 0238.Product of Array Except Self
- 0256.Paint House
- 0257.Binary Tree Paths
- 0258.Add Digits
- 0259.3Sum Smaller
- 0261.Graph Valid Tree
- 0266.Palindrome Permutation
- 0270.Closest Binary Search Tree Value
- 0279.Perfect Squares
- 0280.Wiggle Sort
- 0281.Zigzag Iterator
- 0282.Expression Add Operators
- 0283.Move Zeroes
- 0285.Inorder Successor in BST
- 0295.Find Median from Data Stream
- 0298.Binary Tree Longest Consecutive Sequence
- 0300-0399
- 0304.Range Sum Query 2D - Immutable
- 0312.Burst Balloons
- 0321.Create Maximum Number
- 0329.Longest Increasing Path in a Matrix
- 0336.Palindrome Pairs
- 0345.Reverse Vowels of a String
- 0363.Max Sum of Rectangle No Larger Than K
- 0373.Find K Pairs with Smallest Sums
- 0383.Ransom Note
- 0389.Find the Difference
- 0400-0499
- 0401.Binary Watch
- 0403.Frog Jump
- 0422.Valid Word Square
- 0437.Path Sum III
- 0445.Add Two Numbers II
- 0449.Serialize and Deserialize BST
- 0454.4Sum II
- 0466.Count The Repetitions
- 0468.Validate IP Address
- 0475.Heaters
- 0486.Predict the Winner
- 0489.Robot Room Cleaner
- 0500-0599
- 0517.Super Washing Machines
- 0529.Minesweeper/images
- 0550.Game Play Analysis IV
- 0560.Subarray Sum Equals K
- 0572.Subtree of Another Tree
- 0577.Employee Bonus
- 0597.Friend Requests I Overall Acceptance Rate
- 0600-0699
- 0605.Can Place Flowers
- 0615.Average Salary Departments VS Company
- 0617.Merge Two Binary Trees
- 0623.Add One Row to Tree
- 0630.Course Schedule III
- 0644.Maximum Average Subarray II
- 0655.Print Binary Tree
- 0664.Strange Printer
- 0669.Trim a Binary Search Tree
- 0680.Valid Palindrome II
- 0686.Repeated String Match
- 0688.Knight Probability in Chessboard
- 0694.Number of Distinct Islands
- 0695.Max Area of Island
- 0700-0799
- 0703.Kth Largest Element in a Stream
- 0733.Flood Fill
- 0735.Asteroid Collision
- 0739.Daily Temperatures
- 0741.Cherry Pickup
- 0767.Reorganize String
- 0789.Escape The Ghosts
- 0799.Champagne Tower
- 0800-0899
- 0808.Soup Servings
- 0813.Largest Sum of Averages
- 0819.Most Common Word
- 0821.Shortest Distance to a Character
- 0822.Card Flipping Game
- 0823.Binary Trees With Factors
- 0827.Making A Large Island
- 0828.Count Unique Characters of All Substrings of a Given String
- 0837.New 21 Game
- 0847.Shortest Path Visiting All Nodes
- 0877.Stone Game
- 0883.Projection Area of 3D Shapes
- 0887.Super Egg Drop
- 0894.All Possible Full Binary Trees
- 0900-0999
- 0928.Minimize Malware Spread II
- 0940.Distinct Subsequences II
- 0956.Tallest Billboard
- 0963.Minimum Area Rectangle II
- 0964.Least Operators to Express Number
- 0966.Vowel Spellchecker
- 0971.Flip Binary Tree To Match Preorder Traversal
- 0972.Equal Rational Numbers
- 0973.K Closest Points to Origin
- 0980.Unique Paths III
- 0986.Interval List Intersections
- 0987.Vertical Order Traversal of a Binary Tree
- 0994.Rotting Oranges
- 0998.Maximum Binary Tree II
- 1000-1099
- 1001.Grid Illumination
- 1008.Construct Binary Search Tree from Preorder Traversal
- 1012.Numbers With Repeated Digits
- 1020.Number of Enclaves
- 1027.Longest Arithmetic Subsequence
- 1034.Coloring A Border
- 1039.Minimum Score Triangulation of Polygon
- 1040.Moving Stones Until Consecutive II
- 1056.Confusing Number
- 1063.Number of Valid Subarrays
- 1064.Fixed Point
- 1065.Index Pairs of a String
- 1066.Campus Bikes II
- 1071.Greatest Common Divisor of Strings
- 1080.Insufficient Nodes in Root to Leaf Paths
- 1081.Smallest Subsequence of Distinct Characters
- 1093.Statistics from a Large Sample
- 1100-1199
- 1109.Corporate Flight Bookings
- 1110.Delete Nodes And Return Forest
- 1118.Number of Days in a Month
- 1125.Smallest Sufficient Team
- 1130.Minimum Cost Tree From Leaf Values
- 1132.Reported Posts II
- 1141.User Activity for the Past 30 Days I
- 1142.User Activity for the Past 30 Days II
- 1145.Binary Tree Coloring Game
- 1160.Find Words That Can Be Formed by Characters
- 1164.Product Price at a Given Date
- 1167.Minimum Cost to Connect Sticks
- 1168.Optimize Water Distribution in a Village
- 1172.Dinner Plate Stacks
- 1173.Immediate Food Delivery I
- 1174.Immediate Food Delivery II
- 1176.Diet Plan Performance
- 1182.Shortest Distance to Target Color
- 1184.Distance Between Bus Stops
- 1187.Make Array Strictly Increasing
- 1195.Fizz Buzz Multithreaded
- 1200-1299
- 1203.Sort Items by Groups Respecting Dependencies
- 1204.Last Person to Fit in the Bus
- 1207.Unique Number of Occurrences
- 1210.Minimum Moves to Reach Target with Rotations
- 1211.Queries Quality and Percentage
- 1212.Team Scores in Football Tournament
- 1214.Two Sum BSTs
- 1222.Queens That Can Attack the King
- 1231.Divide Chocolate
- 1235.Maximum Profit in Job Scheduling
- 1251.Average Selling Price
- 1253.Reconstruct a 2-Row Binary Matrix
- 1262.Greatest Sum Divisible by Three
- 1263.Minimum Moves to Move a Box to Their Target Location
- 1264.Page Recommendations
- 1270.All People Report to the Given Manager
- 1274.Number of Ships in a Rectangle
- 1280.Students and Examinations
- 1285.Find the Start and End Number of Continuous Ranges
- 1292.Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1300-1399
- 1305.All Elements in Two Binary Search Trees
- 1309.Decrypt String from Alphabet to Integer Mapping
- 1325.Delete Leaves With a Given Value
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1333.Filter Restaurants by Vegan-Friendly, Price and Distance
- 1335.Minimum Difficulty of a Job Schedule
- 1359.Count All Valid Pickup and Delivery Options
- 1360.Number of Days Between Two Dates
- 1367.Linked List in Binary Tree
- 1376.Time Needed to Inform All Employees
- 1377.Frog Position After T Seconds
- 1379.Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1383.Maximum Performance of a Team
- 1384.Total Sales Amount by Year
- 1385.Find the Distance Value Between Two Arrays
- 1388.Pizza With 3n Slices
- 1398.Customers Who Bought Products A and B but Not C
- 1400-1499
- 1414.Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
- 1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1444.Number of Ways of Cutting a Pizza
- 1450.Number of Students Doing Homework at a Given Time
- 1456.Maximum Number of Vowels in a Substring of Given Length
- 1462.Course Schedule IV
- 1463.Cherry Pickup II
- 1473.Paint House III
- 1483.Kth Ancestor of a Tree Node
- 1495.Friendly Movies Streamed Last Month
- 1499.Max Value of Equation
- 1500-1599
- 1507.Reformat Date
- 1515.Best Position for a Service Centre
- 1547.Minimum Cost to Cut a Stick
- 1555.Bank Account Summary
- 1565.Unique Orders and Customers Per Month
- 1569.Number of Ways to Reorder Array to Get Same BST
- 1575.Count All Possible Routes
- 1576.Replace All 's to Avoid Consecutive Repeating Characters
- 1600-1699
- 1607.Sellers With No Sales
- 1612.Check If Two Expression Trees are Equivalent
- 1630.Arithmetic Subarrays
- 1639.Number of Ways to Form a Target String Given a Dictionary
- 1645.Hopper Company Queries II
- 1646.Get Maximum in Generated Array
- 1651.Hopper Company Queries III
- 1654.Minimum Jumps to Reach Home
- 1655.Distribute Repeating Integers
- 1667.Fix Names in a Table
- 1670.Design Front Middle Back Queue
- 1691.Maximum Height by Stacking Cuboids
- 1694.Reformat Phone Number
- 1700-1799
- 1724.Checking Existence of Edge Length Limited Paths II
- 1737.Change Minimum Characters to Satisfy One of Three Conditions
- 1751.Maximum Number of Events That Can Be Attended II
- 1752.Check if Array Is Sorted and Rotated
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1770.Maximum Score from Performing Multiplication Operations
- 1773.Count Items Matching a Rule
- 1782.Count Pairs Of Nodes
- 1795.Rearrange Products Table
- 1797.Design Authentication Manager
- 1799.Maximize Score After N Operations
- 1800-1899
- 1809.Ad-Free Sessions
- 1843.Suspicious Bank Accounts
- 1846.Maximum Element After Decreasing and Rearranging
- 1847.Closest Room
- 1876.Substrings of Size Three with Distinct Characters
- 1879.Minimum XOR Sum of Two Arrays
- 1880.Check if Word Equals Summation of Two Words
- 1895.Largest Magic Square
- 1900-1999
- 1905.Count Sub Islands
- 1921.Eliminate Maximum Number of Monsters
- 1934.Confirmation Rate
- 1944.Number of Visible People in a Queue
- 1951.All the Pairs With the Maximum Number of Common Followers
- 2000-2099
- 2010.The Number of Seniors and Juniors to Join the Company II
- 2022.Convert 1D Array Into 2D Array
- 2032.Two Out of Three
- 2043.Simple Bank System
- 2051.The Category of Each Member in the Store
- 2059.Minimum Operations to Convert Number
- 2062.Count Vowel Substrings of a String
- 2065.Maximum Path Quality of a Graph
- 2084.Drop Type 1 Orders for Customers With Type 0 Orders
- 2092.Find All People With Secret
- 2100-2199
- 2103.Rings and Rods
- 2106.Maximum Fruits Harvested After at Most K Steps
- 2120.Execution of All Suffix Instructions Staying in a Grid
- 2123.Minimum Operations to Remove Adjacent Ones in Matrix
- 2129.Capitalize the Title
- 2132.Stamping the Grid
- 2153.The Number of Passengers in Each Bus II
- 2159.Order Two Columns Independently
- 2163.Minimum Difference in Sums After Removal of Elements
- 2164.Sort Even and Odd Indices Independently
- 2172.Maximum AND Sum of Array
- 2175.The Change in Global Rankings
- 2178.Maximum Split of Positive Even Integers
- 2199.Finding the Topic of Each Post
- 2200-2299
- 2201.Count Artifacts That Can Be Extracted
- 2228.Users With Two Purchases Within Seven Days
- 2232.Minimize Result by Adding Parentheses to Expression
- 2234.Maximum Total Beauty of the Gardens
- 2240.Number of Ways to Buy Pens and Pencils
- 2245.Maximum Trailing Zeros in a Cornered Path
- 2246.Longest Path With Different Adjacent Characters
- 2247.Maximum Cost of Trip With K Highways
- 2251.Number of Flowers in Full Bloom
- 2261.K Divisible Elements Subarrays
- 2271.Maximum White Tiles Covered by a Carpet
- 2274.Maximum Consecutive Floors Without Special Floors
- 2279.Maximum Bags With Full Capacity of Rocks
- 2282.Number of People That Can Be Seen in a Grid
- 2291.Maximum Profit From Trading Stocks
- 2292.Products With Three or More Orders in Two Consecutive Years
- 2300-2399
- 2300.Successful Pairs of Spells and Potions
- 2314.The First Day of the Maximum Recorded Degree in Each City
- 2324.Product Sales Analysis IV
- 2329.Product Sales Analysis V
- 2337.Move Pieces to Obtain a String
- 2346.Compute the Rank as a Percentage
- 2352.Equal Row and Column Pairs
- 2359.Find Closest Node to Given Two Nodes
- 2361.Minimum Costs Using the Train Line
- 2366.Minimum Replacements to Sort the Array
- 2368.Reachable Nodes With Restrictions
- 2369.Check if There is a Valid Partition For The Array
- 2372.Calculate the Influence of Each Salesperson
- 2392.Build a Matrix With Conditions
- 2394.Employees With Deductions
- 2400-2499
- 2403.Minimum Time to Kill All Monsters
- 2434.Using a Robot to Print the Lexicographically Smallest String
- 2435.Paths in Matrix Whose Sum Is Divisible by K
- 2456.Most Popular Video Creator
- 2475.Number of Unequal Triplets in Array
- 2483.Minimum Penalty for a Shop
- 2500-2599
- 2511.Maximum Enemy Forts That Can Be Captured
- 2515.Shortest Distance to Target String in a Circular Array
- 2525.Categorize Box According to Criteria
- 2526.Find Consecutive Integers from a Data Stream
- 2527.Find Xor-Beauty of Array
- 2533.Number of Good Binary Strings
- 2542.Maximum Subsequence Score
- 2555.Maximize Win From Two Segments
- 2557.Maximum Number of Integers to Choose From a Range II
- 2558.Take Gifts From the Richest Pile
- 2559.Count Vowel Strings in Ranges
- 2560.House Robber IV
- 2561.Rearranging Fruits
- 2567.Minimum Score by Changing Two Elements
- 2585.Number of Ways to Earn Points
- 2594.Minimum Time to Repair Cars
- 2600-2699
- 2604.Minimum Time to Eat All Grains
- 2606.Find the Substring With Maximum Cost
- 2607.Make K-Subarray Sums Equal
- 2608.Shortest Cycle in a Graph
- 2611.Mice and Cheese
- 2612.Minimum Reverse Operations
- 2613.Beautiful Pairs
- 2622.Cache With Time Limit
- 2624.Snail Traversal
- 2625.Flatten Deeply Nested Array
- 2632.Curry
- 2633.Convert Object to JSON String
- 2637.Promise Time Limit
- 2649.Nested Array Generator
- 2650.Design Cancellable Function
- 2651.Calculate Delayed Arrival Time
- 2662.Minimum Cost of a Path With Special Roads
- 2663.Lexicographically Smallest Beautiful String
- 2674.Split a Circular Linked List
- 2676.Throttle
- 2682.Find the Losers of the Circular Game
- 2686.Immediate Food Delivery III
- 2694.Event Emitter
- 2695.Array Wrapper
- 2700-2799
- 2702.Minimum Operations to Make Numbers Non-positive
- 2705.Compact Object
- 2707.Extra Characters in a String
- 2710.Remove Trailing Zeros From a String
- 2715.Timeout Cancellation
- 2719.Count of Integers
- 2725.Interval Cancellation
- 2734.Lexicographically Smallest String After Substring Operation
- 2737.Find the Closest Marked Node
- 2746.Decremental String Concatenation
- 2747.Count Zero Request Servers
- 2757.Generate Circular Array Values
- 2760.Longest Even Odd Subarray With Threshold
- 2766.Relocate Marbles
- 2768.Number of Black Blocks
- 2774.Array Upper Bound
- 2776.Convert Callback Based Function to Promise Based Function
- 2777.Date Range Generator
- 2782.Number of Unique Categories
- 2786.Visit Array Positions to Maximize Score
- 2790.Maximum Number of Groups With Increasing Length
- 2798.Number of Employees Who Met the Target
- 2799.Count Complete Subarrays in an Array
- 2800-2899
- 2800.Shortest String That Contains Three Strings
- 2801.Count Stepping Numbers in Range
- 2814.Minimum Time Takes to Reach Destination Without Drowning
- 2817.Minimum Absolute Difference Between Elements With Constraint
- 2819.Minimum Relative Loss After Buying Chocolates
- 2823.Deep Object Filter
- 2827.Number of Beautiful Integers in the Range
- 2832.Maximal Range That Each Element Is Maximum in It
- 2833.Furthest Point From Origin
- 2834.Find the Minimum Possible Sum of a Beautiful Array
- 2835.Minimum Operations to Form Subsequence With Target Sum
- 2836.Maximize Value of Function in a Ball Passing Game
- 2837.Total Traveled Distance
- 2838.Maximum Coins Heroes Can Collect
- 2839.Check if Strings Can be Made Equal With Operations I
- 2840.Check if Strings Can be Made Equal With Operations II
- 2841.Maximum Sum of Almost Unique Subarray
- 2842.Count K-Subsequences of a String With Maximum Beauty
- 2843.Count Symmetric Integers
- 2844.Minimum Operations to Make a Special Number
- 2845.Count of Interesting Subarrays
- 2846.Minimum Edge Weight Equilibrium Queries in a Tree
- images
- 2847.Smallest Number With Given Digit Product
- 2848.Points That Intersect With Cars
- 2849.Determine if a Cell Is Reachable at a Given Time
- images
- 2850.Minimum Moves to Spread Stones Over Grid
- images
- 2851.String Transformation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,455 files changed
+55617
-31740
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
|
Lines changed: 5 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
| 4 | + | |
| 5 | + | |
11 | 6 |
| |
12 | 7 |
| |
13 | 8 |
| |
14 | 9 |
| |
15 | 10 |
| |
16 | 11 |
| |
17 |
| - | |
18 |
| - | |
19 |
| - | |
| 12 | + | |
| 13 | + | |
20 | 14 |
| |
21 | 15 |
| |
22 | 16 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
| 17 | + |
Lines changed: 35 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 |
| |
7 |
| - | |
| 19 | + | |
| 20 | + | |
8 | 21 |
| |
9 |
| - | |
| 22 | + | |
| 23 | + | |
10 | 24 |
| |
11 |
| - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
12 | 30 |
| |
13 | 31 |
| |
14 |
| - | |
15 |
| - | |
| 32 | + | |
16 | 33 |
| |
17 | 34 |
| |
18 | 35 |
| |
19 | 36 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
32 | 42 |
| |
| 43 | + | |
33 | 44 |
| |
34 |
| - | |
| 45 | + | |
35 | 46 |
| |
36 |
| - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
|
0 commit comments