File tree
341 files changed
+4638
-4638
lines changed- lcci
- 04.12.Paths with Sum
- 05.01.Insert Into Bits
- 05.04.Closed Number
- 08.01.Three Steps Problem
- 08.05.Recursive Mulitply
- 08.06.Hanota
- 08.08.Permutation II
- 08.13.Pile Box
- 10.03.Search Rotate Array
- 16.07.Maximum
- 16.10.Living People
- 16.13.Bisect Squares
- 16.16.Sub Sort
- 16.18.Pattern Matching
- 16.22.Langtons Ant
- 16.26.Calculator
- 17.09.Get Kth Magic Number
- 17.14.Smallest K
- 17.20.Continuous Median
- 17.21.Volume of Histogram
- 17.25.Word Rectangle
- lcof
- 面试题40. 最小的k个数
- 面试题41. 数据流中的中位数
- 面试题49. 丑数
- lcof2
- 剑指 Offer II 039. 直方图最大矩形面积
- 剑指 Offer II 059. 数据流的第 K 大数值
- 剑指 Offer II 060. 出现频率最高的 k 个数字
- 剑指 Offer II 061. 和最小的 k 个数对
- lcp
- LCP 03. 机器人大冒险
- LCP 07. 传递信息
- LCP 19. 秋叶收藏集
- LCP 22. 黑白方格画
- LCP 39. 无人机方阵
- LCP 50. 宝石补给
- LCP 51. 烹饪料理
- LCP 52. 二叉搜索树染色
- solution
- 0000-0099
- 0023.Merge k Sorted Lists
- 0061.Rotate List
- 0081.Search in Rotated Sorted Array II
- 0200-0299
- 0218.The Skyline Problem
- 0239.Sliding Window Maximum
- 0264.Ugly Number II
- 0295.Find Median from Data Stream
- 0300-0399
- 0313.Super Ugly Number
- 0321.Create Maximum Number
- 0347.Top K Frequent Elements
- 0353.Design Snake Game
- 0358.Rearrange String k Distance Apart
- 0363.Max Sum of Rectangle No Larger Than K
- 0373.Find K Pairs with Smallest Sums
- 0400-0499
- 0407.Trapping Rain Water II
- 0422.Valid Word Square
- 0446.Arithmetic Slices II - Subsequence
- 0449.Serialize and Deserialize BST
- 0466.Count The Repetitions
- 0469.Convex Polygon
- 0470.Implement Rand10() Using Rand7()
- 0471.Encode String with Shortest Length
- 0480.Sliding Window Median
- 0500-0599
- 0502.IPO
- 0529.Minesweeper
- 0600-0699
- 0644.Maximum Average Subarray II
- 0649.Dota2 Senate
- 0659.Split Array into Consecutive Subsequences
- 0700-0799
- 0703.Kth Largest Element in a Stream
- 0722.Remove Comments
- 0727.Minimum Window Subsequence
- 0743.Network Delay Time
- 0750.Number Of Corner Rectangles
- 0767.Reorganize String
- 0786.K-th Smallest Prime Fraction
- 0800-0899
- 0835.Image Overlap
- 0840.Magic Squares In Grid
- 0853.Car Fleet
- 0854.K-Similar Strings
- 0855.Exam Room
- 0857.Minimum Cost to Hire K Workers
- 0858.Mirror Reflection
- 0871.Minimum Number of Refueling Stops
- 0882.Reachable Nodes In Subdivided Graph
- 0895.Maximum Frequency Stack
- 0900-0999
- 0903.Valid Permutations for DI Sequence
- 0961.N-Repeated Element in Size 2N Array
- 0963.Minimum Area Rectangle II
- 0964.Least Operators to Express Number
- 0971.Flip Binary Tree To Match Preorder Traversal
- 1000-1099
- 1046.Last Stone Weight
- 1063.Number of Valid Subarrays
- 1100-1199
- 1167.Minimum Cost to Connect Sticks
- 1199.Minimum Time to Build Blocks
- 1200-1299/1231.Divide Chocolate
- 1300-1399
- 1353.Maximum Number of Events That Can Be Attended
- 1360.Number of Days Between Two Dates
- 1363.Largest Multiple of Three
- 1383.Maximum Performance of a Team
- 1400-1499
- 1405.Longest Happy String
- 1449.Form Largest Integer With Digits That Add up to Target
- 1467.Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1499.Max Value of Equation
- 1500-1599
- 1515.Best Position for a Service Centre
- 1521.Find a Value of a Mysterious Function Closest to Target
- 1538.Guess the Majority in a Hidden Array
- 1548.The Most Similar Path in a Graph
- 1586.Binary Search Tree Iterator II
- 1600-1699
- 1606.Find Servers That Handled Most Number of Requests
- 1642.Furthest Building You Can Reach
- 1675.Minimize Deviation in Array
- 1700-1799
- 1705.Maximum Number of Eaten Apples
- 1786.Number of Restricted Paths From First to Last Node
- 1792.Maximum Average Pass Ratio
- 1800-1899
- 1801.Number of Orders in the Backlog
- 1834.Single-Threaded CPU
- 1845.Seat Reservation Manager
- 1847.Closest Room
- 1851.Minimum Interval to Include Each Query
- 1879.Minimum XOR Sum of Two Arrays
- 1883.Minimum Skips to Arrive at Meeting On Time
- 1900-1999
- 1914.Cyclically Rotating a Grid
- 1935.Maximum Number of Words You Can Type
- 1936.Add Minimum Number of Rungs
- 1937.Maximum Number of Points with Cost
- 1944.Number of Visible People in a Queue
- 1955.Count Number of Special Subsequences
- 1962.Remove Stones to Minimize the Total
- 1986.Minimum Number of Work Sessions to Finish the Tasks
- 1987.Number of Unique Good Subsequences
- 2000-2099
- 2003.Smallest Missing Genetic Value in Each Subtree
- 2019.The Score of Students Solving Math Expression
- 2100-2199
- 2123.Minimum Operations to Remove Adjacent Ones in Matrix
- 2141.Maximum Running Time of N Computers
- 2143.Choose Numbers From Two Arrays in Range
- 2163.Minimum Difference in Sums After Removal of Elements
- 2172.Maximum AND Sum of Array
- 2188.Minimum Time to Finish the Race
- 2200-2299
- 2208.Minimum Operations to Halve Array Sum
- 2233.Maximum Product After K Increments
- 2246.Longest Path With Different Adjacent Characters
- 2247.Maximum Cost of Trip With K Highways
- 2282.Number of People That Can Be Seen in a Grid
- 2300-2399
- 2313.Minimum Flips in Binary Tree to Get Result
- 2336.Smallest Number in Infinite Set
- 2359.Find Closest Node to Given Two Nodes
- 2361.Minimum Costs Using the Train Line
- 2386.Find the K-Sum of an Array
- 2400-2499
- 2402.Meeting Rooms III
- 2406.Divide Intervals Into Minimum Number of Groups
- 2454.Next Greater Element IV
- 2462.Total Cost to Hire K Workers
- 2473.Minimum Cost to Buy Apples
- 2500-2599
- 2501.Longest Square Streak in an Array
- 2503.Maximum Number of Points From Grid Queries
- 2532.Time to Cross a Bridge
- 2542.Maximum Subsequence Score
- 2577.Minimum Time to Visit a Cell In a Grid
- 2593.Find Score of an Array After Marking All Elements
- 2599.Make the Prefix Sum Non-negative
- 2600-2699
- 2617.Minimum Number of Visited Cells in a Grid
- 2662.Minimum Cost of a Path With Special Roads
- 2700-2799
- 2731.Movement of Robots
- 2792.Count Nodes That Are Great Enough
- 2800-2899
- 2808.Minimum Seconds to Equalize a Circular Array
- 2809.Minimum Time to Make Array Sum At Most x
- 2810.Faulty Keyboard
- 2811.Check if it is Possible to Split Array
- 2813.Maximum Elegance of a K-Length Subsequence
- 2815.Max Pair Sum in an Array
- 2816.Double a Number Represented as a Linked List
- 2817.Minimum Absolute Difference Between Elements With Constraint
- 2818.Apply Operations to Maximize Score
- 2819.Minimum Relative Loss After Buying Chocolates
- 2828.Check if a String Is an Acronym of Words
- 2829.Determine the Minimum Sum of a k-avoiding Array
- 2830.Maximize the Profit as the Salesman
- 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
- 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
- 2846.Minimum Edge Weight Equilibrium Queries in a Tree
- 2847.Smallest Number With Given Digit Product
- 2848.Points That Intersect With Cars
- 2849.Determine if a Cell Is Reachable at a Given Time
- 2850.Minimum Moves to Spread Stones Over Grid
- 2855.Minimum Right Shifts to Sort the Array
- 2856.Minimum Array Length After Pair Removals
- 2857.Count Pairs of Points With Distance k
- 2858.Minimum Edge Reversals So Every Node Is Reachable
- 2859.Sum of Values at Indices With K Set Bits
- 2860.Happy Students
- 2861.Maximum Number of Alloys
- 2862.Maximum Element-Sum of a Complete Subset of Indices
- 2864.Maximum Odd Binary Number
- 2865.Beautiful Towers I
- 2866.Beautiful Towers II
- 2867.Count Valid Paths in a Tree
- 2894.Divisible and Non-divisible Sums Difference
- 2895.Minimum Processing Time
- 2896.Apply Operations to Make Two Strings Equal
- 2897.Apply Operations on Array to Maximize Sum of Squares
- 2900-2999
- 2901.Longest Unequal Adjacent Groups Subsequence II
- 2903.Find Indices With Index and Value Difference I
- 2904.Shortest and Lexicographically Smallest Beautiful String
- 2905.Find Indices With Index and Value Difference II
- 2906.Construct Product Matrix
- 2907.Maximum Profitable Triplets With Increasing Prices I
- 2910.Minimum Number of Groups to Create a Valid Assignment
- 2911.Minimum Changes to Make K Semi-palindromes
- 2913.Subarrays Distinct Element Sum of Squares I
- 2914.Minimum Number of Changes to Make Binary String Beautiful
- 2915.Length of the Longest Subsequence That Sums to Target
- 2917.Find the K-or of an Array
- 2918.Minimum Equal Sum of Two Arrays After Replacing Zeros
- 2919.Minimum Increment Operations to Make Array Beautiful
- 2921.Maximum Profitable Triplets With Increasing Prices II
- 2923.Find Champion I
- 2924.Find Champion II
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
341 files changed
+4638
-4638
lines changedOriginal 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 |
| - | |
| 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 | 25 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 |
|
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 |
| - | |
| 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 | 30 |
|
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 |
| - | |
| 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 | 41 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 |
|
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 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 |
|
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 |
| - | |
| 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 | 26 |
|
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 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 |
|
0 commit comments