File tree
1,937 files changed
+8
-16855
lines changed- lcci
- 01.05.One Away
- 03.02.Min Stack
- 04.04.Check Balance
- 05.03.Reverse Bits
- 08.13.Pile Box
- 16.06.Smallest Difference
- 16.15.Master Mind
- 16.17.Contiguous Sequence
- 16.22.Langtons Ant
- 17.08.Circus Tower
- 17.09.Get Kth Magic Number
- 17.11.Find Closest
- 17.13.Re-Space
- 17.16.The Masseuse
- 17.21.Volume of Histogram
- 17.25.Word Rectangle
- lcof
- 面试题14- I. 剪绳子
- 面试题30. 包含min函数的栈
- 面试题42. 连续子数组的最大和
- 面试题47. 礼物的最大价值
- 面试题48. 最长不含重复字符的子字符串
- 面试题49. 丑数
- 面试题55 - II. 平衡二叉树
- 面试题61. 扑克牌中的顺子
- 面试题63. 股票的最大利润
- lcof2
- 剑指 Offer II 005. 单词长度的最大乘积
- 剑指 Offer II 008. 和大于等于 target 的最短子数组
- 剑指 Offer II 011. 0 和 1 个数相同的子数组
- 剑指 Offer II 016. 不含重复字符的最长子字符串
- 剑指 Offer II 034. 外星语言是否排序
- 剑指 Offer II 035. 最小时间差
- 剑指 Offer II 039. 直方图最大矩形面积
- 剑指 Offer II 040. 矩阵中最大的矩形
- 剑指 Offer II 041. 滑动窗口的平均值
- 剑指 Offer II 044. 二叉树每层的最大值
- 剑指 Offer II 051. 节点之和最大的路径
- 剑指 Offer II 061. 和最小的 k 个数对
- 剑指 Offer II 067. 最大的异或
- 剑指 Offer II 073. 狒狒吃香蕉
- 剑指 Offer II 088. 爬楼梯的最少成本
- 剑指 Offer II 089. 房屋偷盗
- 剑指 Offer II 090. 环形房屋偷盗
- 剑指 Offer II 091. 粉刷房子
- 剑指 Offer II 092. 翻转字符
- 剑指 Offer II 093. 最长斐波那契数列
- 剑指 Offer II 094. 最少回文分割
- 剑指 Offer II 095. 最长公共子序列
- 剑指 Offer II 099. 最小路径之和
- 剑指 Offer II 100. 三角形中最小路径之和
- 剑指 Offer II 103. 最少的硬币数目
- 剑指 Offer II 105. 岛屿的最大面积
- 剑指 Offer II 112. 最长递增路径
- 剑指 Offer II 119. 最长连续序列
- lcp
- LCP 03. 机器人大冒险
- LCP 12. 小张刷题计划
- LCP 19. 秋叶收藏集
- LCP 33. 蓄水
- LCP 40. 心算挑战
- LCP 41. 黑白翻转棋
- LCP 50. 宝石补给
- LCP 61. 气温变化趋势
- LCP 64. 二叉树灯饰
- LCP 68. 美观的花束
- LCP 78. 城墙防线
- solution
- 0000-0099
- 0003.Longest Substring Without Repeating Characters
- 0004.Median of Two Sorted Arrays
- 0005.Longest Palindromic Substring
- 0011.Container With Most Water
- 0032.Longest Valid Parentheses
- 0042.Trapping Rain Water
- 0045.Jump Game II
- 0053.Maximum Subarray
- 0055.Jump Game
- 0056.Merge Intervals
- 0057.Insert Interval
- 0064.Minimum Path Sum
- 0072.Edit Distance
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- 0100-0199
- 0104.Maximum Depth of Binary Tree
- 0111.Minimum Depth of Binary Tree
- 0120.Triangle
- 0121.Best Time to Buy and Sell Stock
- 0122.Best Time to Buy and Sell Stock II
- 0123.Best Time to Buy and Sell Stock III
- 0124.Binary Tree Maximum Path Sum
- 0128.Longest Consecutive Sequence
- 0132.Palindrome Partitioning II
- 0135.Candy
- 0152.Maximum Product Subarray
- 0155.Min Stack
- 0159.Longest Substring with At Most Two Distinct Characters
- 0164.Maximum Gap
- 0174.Dungeon Game
- 0188.Best Time to Buy and Sell Stock IV
- 0198.House Robber
- 0200-0299
- 0209.Minimum Size Subarray Sum
- 0213.House Robber II
- 0221.Maximal Square
- 0223.Rectangle Area
- 0243.Shortest Word Distance
- 0244.Shortest Word Distance II
- 0245.Shortest Word Distance III
- 0253.Meeting Rooms II
- 0256.Paint House
- 0264.Ugly Number II
- 0274.H-Index
- 0279.Perfect Squares
- 0298.Binary Tree Longest Consecutive Sequence
- 0299.Bulls and Cows
- 0300-0399
- 0300.Longest Increasing Subsequence
- 0306.Additive Number
- 0309.Best Time to Buy and Sell Stock with Cooldown
- 0312.Burst Balloons
- 0318.Maximum Product of Word Lengths
- 0321.Create Maximum Number
- 0322.Coin Change
- 0329.Longest Increasing Path in a Matrix
- 0333.Largest BST Subtree
- 0337.House Robber III
- 0340.Longest Substring with At Most K Distinct Characters
- 0343.Integer Break
- 0346.Moving Average from Data Stream
- 0356.Line Reflection
- 0363.Max Sum of Rectangle No Larger Than K
- 0368.Largest Divisible Subset
- 0375.Guess Number Higher or Lower II
- 0376.Wiggle Subsequence
- 0388.Longest Absolute File Path
- 0391.Perfect Rectangle
- 0395.Longest Substring with At Least K Repeating Characters
- 0400-0499
- 0407.Trapping Rain Water II
- 0410.Split Array Largest Sum
- 0421.Maximum XOR of Two Numbers in an Array
- 0440.K-th Smallest in Lexicographical Order
- 0456.132 Pattern
- 0465.Optimal Account Balancing
- 0467.Unique Substrings in Wraparound String
- 0474.Ones and Zeroes
- 0484.Find Permutation
- 0485.Max Consecutive Ones
- 0486.Predict the Winner
- 0487.Max Consecutive Ones II
- 0495.Teemo Attacking
- 0500-0599
- 0514.Freedom Trail
- 0515.Find Largest Value in Each Tree Row
- 0516.Longest Palindromic Subsequence
- 0517.Super Washing Machines
- 0525.Contiguous Array
- 0530.Minimum Absolute Difference in BST
- 0539.Minimum Time Difference
- 0541.Reverse String II
- 0543.Diameter of Binary Tree
- 0546.Remove Boxes
- 0549.Binary Tree Longest Consecutive Sequence II
- 0559.Maximum Depth of N-ary Tree
- 0568.Maximum Vacation Days
- 0573.Squirrel Simulation
- 0575.Distribute Candies
- 0583.Delete Operation for Two Strings
- 0594.Longest Harmonious Subsequence
- 0598.Range Addition II
- 0600-0699
- 0616.Add Bold Tag in String
- 0621.Task Scheduler
- 0624.Maximum Distance in Arrays
- 0628.Maximum Product of Three Numbers
- 0629.K Inverse Pairs Array
- 0646.Maximum Length of Pair Chain
- 0650.2 Keys Keyboard
- 0651.4 Keys Keyboard
- 0654.Maximum Binary Tree
- 0655.Print Binary Tree
- 0662.Maximum Width of Binary Tree
- 0664.Strange Printer
- 0668.Kth Smallest Number in Multiplication Table
- 0673.Number of Longest Increasing Subsequence
- 0674.Longest Continuous Increasing Subsequence
- 0687.Longest Univalue Path
- 0695.Max Area of Island
- 0696.Count Binary Substrings
- 0697.Degree of an Array
- 0699.Falling Squares
- 0700-0799
- 0712.Minimum ASCII Delete Sum for Two Strings
- 0714.Best Time to Buy and Sell Stock with Transaction Fee
- 0731.My Calendar II
- 0732.My Calendar III
- 0741.Cherry Pickup
- 0743.Network Delay Time
- 0746.Min Cost Climbing Stairs
- 0758.Bold Words in String
- 0763.Partition Labels
- 0764.Largest Plus Sign
- 0767.Reorganize String
- 0769.Max Chunks To Make Sorted
- 0775.Global and Local Inversions
- 0782.Transform to Chessboard
- 0783.Minimum Distance Between BST Nodes
- 0787.Cheapest Flights Within K Stops
- 0800-0899
- 0801.Minimum Swaps To Make Sequences Increasing
- 0803.Bricks Falling When Hit
- 0807.Max Increase to Keep City Skyline
- 0818.Race Car
- 0821.Shortest Distance to a Character
- 0822.Card Flipping Game
- 0826.Most Profit Assigning Work
- 0827.Making A Large Island
- 0835.Image Overlap
- 0837.New 21 Game
- 0845.Longest Mountain in Array
- 0849.Maximize Distance to Closest Person
- 0857.Minimum Cost to Hire K Workers
- 0862.Shortest Subarray with Sum at Least K
- 0873.Length of Longest Fibonacci Subsequence
- 0874.Walking Robot Simulation
- 0877.Stone Game
- 0879.Profitable Schemes
- 0882.Reachable Nodes In Subdivided Graph
- 0883.Projection Area of 3D Shapes
- 0887.Super Egg Drop
- 0892.Surface Area of 3D Shapes
- 0895.Maximum Frequency Stack
- 0900-0999
- 0904.Fruit Into Baskets
- 0908.Smallest Range I
- 0910.Smallest Range II
- 0915.Partition Array into Disjoint Intervals
- 0916.Word Subsets
- 0918.Maximum Sum Circular Subarray
- 0926.Flip String to Monotone Increasing
- 0931.Minimum Falling Path Sum
- 0939.Minimum Area Rectangle
- 0943.Find the Shortest Superstring
- 0948.Bag of Tokens
- 0949.Largest Time for Given Digits
- 0952.Largest Component Size by Common Factor
- 0956.Tallest Billboard
- 0960.Delete Columns to Make Sorted III
- 0962.Maximum Width Ramp
- 0964.Least Operators to Express Number
- 0968.Binary Tree Cameras
- 0978.Longest Turbulent Subarray
- 0982.Triples with Bitwise AND Equal To Zero
- 0983.Minimum Cost For Tickets
- 0986.Interval List Intersections
- 1000-1099
- 1000.Minimum Cost to Merge Stones
- 1002.Find Common Characters
- 1004.Max Consecutive Ones III
- 1005.Maximize Sum Of Array After K Negations
- 1007.Minimum Domino Rotations For Equal Row
- 1014.Best Sightseeing Pair
- 1024.Video Stitching
- 1026.Maximum Difference Between Node and Ancestor
- 1027.Longest Arithmetic Subsequence
- 1031.Maximum Sum of Two Non-Overlapping Subarrays
- 1033.Moving Stones Until Consecutive
- 1035.Uncrossed Lines
- 1039.Minimum Score Triangulation of Polygon
- 1040.Moving Stones Until Consecutive II
- 1043.Partition Array for Maximum Sum
- 1048.Longest String Chain
- 1049.Last Stone Weight II
- 1052.Grumpy Bookstore Owner
- 1054.Distant Barcodes
- 1062.Longest Repeating Substring
- 1066.Campus Bikes II
- 1072.Flip Columns For Maximum Number of Equal Rows
- 1092.Shortest Common Supersequence
- 1093.Statistics from a Large Sample
- 1099.Two Sum Less Than K
- 1100-1199
- 1103.Distribute Candies to People
- 1105.Filling Bookcase Shelves
- 1124.Longest Well-Performing Interval
- 1130.Minimum Cost Tree From Leaf Values
- 1131.Maximum of Absolute Value Expression
- 1139.Largest 1-Bordered Square
- 1140.Stone Game II
- 1143.Longest Common Subsequence
- 1144.Decrease Elements To Make Array Zigzag
- 1145.Binary Tree Coloring Game
- 1151.Minimum Swaps to Group All 1's Together
- 1155.Number of Dice Rolls With Target Sum
- 1156.Swap For Longest Repeated Character Substring
- 1182.Shortest Distance to Target Color
- 1184.Distance Between Bus Stops
- 1186.Maximum Subarray Sum with One Deletion
- 1187.Make Array Strictly Increasing
- 1191.K-Concatenation Maximum Sum
- 1192.Critical Connections in a Network
- 1200-1299
- 1216.Valid Palindrome III
- 1218.Longest Arithmetic Subsequence of Given Difference
- 1219.Path with Maximum Gold
- 1224.Maximum Equal Frequency
- 1229.Meeting Scheduler
- 1234.Replace the Substring for Balanced String
- 1235.Maximum Profit in Job Scheduling
- 1239.Maximum Length of a Concatenated String with Unique Characters
- 1240.Tiling a Rectangle with the Fewest Squares
- 1246.Palindrome Removal
- 1262.Greatest Sum Divisible by Three
- 1266.Minimum Time Visiting All Points
- 1277.Count Square Submatrices with All Ones
- 1278.Palindrome Partitioning III
- 1289.Minimum Falling Path Sum II
- 1292.Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1300-1399
- 1300.Sum of Mutated Array Closest to Target
- 1312.Minimum Insertion Steps to Make a String Palindrome
- 1314.Matrix Block Sum
- 1320.Minimum Distance to Type a Word Using Two Fingers
- 1324.Print Words Vertically
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1330.Reverse Subarray To Maximize Array Value
- 1334.Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1335.Minimum Difficulty of a Job Schedule
- 1338.Reduce Array Size to The Half
- 1339.Maximum Product of Splitted Binary Tree
- 1340.Jump Game V
- 1349.Maximum Students Taking Exam
- 1353.Maximum Number of Events That Can Be Attended
- 1358.Number of Substrings Containing All Three Characters
- 1363.Largest Multiple of Three
- 1371.Find the Longest Substring Containing Vowels in Even Counts
- 1372.Longest ZigZag Path in a Binary Tree
- 1373.Maximum Sum BST in Binary Tree
- 1375.Number of Times Binary String Is Prefix-Aligned
- 1376.Time Needed to Inform All Employees
- 1380.Lucky Numbers in a Matrix
- 1381.Design a Stack With Increment Operation
- 1383.Maximum Performance of a Team
- 1388.Pizza With 3n Slices
- 1400-1499
- 1406.Stone Game III
- 1419.Minimum Number of Frogs Croaking
- 1422.Maximum Score After Splitting a String
- 1423.Maximum Points You Can Obtain from Cards
- 1425.Constrained Subsequence Sum
- 1428.Leftmost Column with at Least a One
- 1431.Kids With the Greatest Number of Candies
- 1434.Number of Ways to Wear Different Hats to Each Other
- 1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1439.Find the Kth Smallest Sum of a Matrix With Sorted Rows
- 1446.Consecutive Characters
- 1456.Maximum Number of Vowels in a Substring of Given Length
- 1458.Max Dot Product of Two Subsequences
- 1463.Cherry Pickup II
- 1465.Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- 1467.Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1473.Paint House III
- 1477.Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1478.Allocate Mailboxes
- 1482.Minimum Number of Days to Make m Bouquets
- 1491.Average Salary Excluding the Minimum and Maximum Salary
- 1493.Longest Subarray of 1's After Deleting One Element
- 1499.Max Value of Equation
- 1500-1599
- 1503.Last Moment Before All Ants Fall Out of a Plank
- 1504.Count Submatrices With All Ones
- 1509.Minimum Difference Between Largest and Smallest Value in Three Moves
- 1521.Find a Value of a Mysterious Function Closest to Target
- 1522.Diameter of N-Ary Tree
- 1537.Get the Maximum Score
- 1542.Find Longest Awesome Substring
- 1547.Minimum Cost to Cut a Stick
- 1553.Minimum Number of Days to Eat N Oranges
- 1558.Minimum Numbers of Function Calls to Make Target Array
- 1563.Stone Game V
- 1564.Put Boxes Into the Warehouse I
- 1567.Maximum Length of Subarray With Positive Product
- 1574.Shortest Subarray to be Removed to Make Array Sorted
- 1580.Put Boxes Into the Warehouse II
- 1584.Min Cost to Connect All Points
- 1590.Make Sum Divisible by P
- 1593.Split a String Into the Max Number of Unique Substrings
- 1594.Maximum Non Negative Product in a Matrix
- 1595.Minimum Cost to Connect Two Groups of Points
- 1599.Maximum Profit of Operating a Centennial Wheel
- 1600-1699
- 1605.Find Valid Matrix Given Row and Column Sums
- 1610.Maximum Number of Visible Points
- 1614.Maximum Nesting Depth of the Parentheses
- 1615.Maximal Network Rank
- 1624.Largest Substring Between Two Equal Characters
- 1626.Best Team With No Conflicts
- 1632.Rank Transform of a Matrix
- 1637.Widest Vertical Area Between Two Points Containing No Points
- 1646.Get Maximum in Generated Array
- 1649.Create Sorted Array through Instructions
- 1653.Minimum Deletions to Make String Balanced
- 1658.Minimum Operations to Reduce X to Zero
- 1659.Maximize Grid Happiness
- 1671.Minimum Number of Removals to Make Mountain Array
- 1674.Minimum Moves to Make Array Complementary
- 1675.Minimize Deviation in Array
- 1681.Minimum Incompatibility
- 1682.Longest Palindromic Subsequence II
- 1687.Delivering Boxes from Storage to Ports
- 1690.Stone Game VII
- 1691.Maximum Height by Stacking Cuboids
- 1695.Maximum Erasure Value
- 1700-1799
- 1701.Average Waiting Time
- 1703.Minimum Adjacent Swaps for K Consecutive Ones
- 1710.Maximum Units on a Truck
- 1711.Count Good Meals
- 1713.Minimum Operations to Make a Subsequence
- 1714.Sum Of Special Evenly-Spaced Elements In Array
- 1723.Find Minimum Time to Finish All Jobs
- 1727.Largest Submatrix With Rearrangements
- 1733.Minimum Number of People to Teach
- 1737.Change Minimum Characters to Satisfy One of Three Conditions
- 1740.Find Distance in a Binary Tree
- 1746.Maximum Subarray Sum After One Operation
- 1749.Maximum Absolute Sum of Any Subarray
- 1750.Minimum Length of String After Deleting Similar Ends
- 1751.Maximum Number of Events That Can Be Attended II
- 1755.Closest Subsequence Sum
- 1758.Minimum Changes To Make Alternating Binary String
- 1760.Minimum Limit of Balls in a Bag
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1770.Maximum Score from Performing Multiplication Operations
- 1771.Maximize Palindrome Length From Subsequences
- 1788.Maximize the Beauty of the Garden
- 1793.Maximum Score of a Good Subarray
- 1799.Maximize Score After N Operations
- 1800-1899
- 1815.Maximum Number of Groups Getting Fresh Donuts
- 1818.Minimum Absolute Sum Difference
- 1819.Number of Different Subsequences GCDs
- 1824.Minimum Sideway Jumps
- 1827.Minimum Operations to Make the Array Increasing
- 1834.Single-Threaded CPU
- 1838.Frequency of the Most Frequent Element
- 1839.Longest Substring Of All Vowels in Order
- 1840.Maximum Building Height
- 1846.Maximum Element After Decreasing and Rearranging
- 1857.Largest Color Value in a Directed Graph
- 1868.Product of Two Run-Length Encoded Arrays
- 1869.Longer Contiguous Segments of Ones than Zeros
- 1877.Minimize Maximum Pair Sum in Array
- 1879.Minimum XOR Sum of Two Arrays
- 1888.Minimum Number of Flips to Make the Binary String Alternating
- 1889.Minimum Space Wasted From Packaging
- 1891.Cutting Ribbons
- 1895.Largest Magic Square
- 1899.Merge Triplets to Form Target Triplet
- 1900-1999
- 1911.Maximum Alternating Subsequence Sum
- 1918.Kth Smallest Subarray Sum
- 1937.Maximum Number of Points with Cost
- 1947.Maximum Compatibility Score Sum
- 1950.Maximum of Minimum Values in All Subarrays
- 1953.Maximum Number of Weeks for Which You Can Work
- 1959.Minimum Total Space Wasted With K Resizing Operations
- 1974.Minimum Time to Type Word Using Special Typewriter
- 1975.Maximum Matrix Sum
- 1977.Number of Ways to Separate Numbers
- 1981.Minimize the Difference Between Target and Chosen Elements
- 1982.Find Array Given Subset Sums
- 1983.Widest Pair of Indices With Equal Range Sum
- 1984.Minimum Difference Between Highest and Lowest of K Scores
- 1986.Minimum Number of Work Sessions to Finish the Tasks
- 1998.GCD Sort of an Array
- 2000-2099
- 2002.Maximum Product of the Length of Two Palindromic Subsequences
- 2008.Maximum Earnings From Taxi
- 2009.Minimum Number of Operations to Make Array Continuous
- 2012.Sum of Beauty in the Array
- 2016.Maximum Difference Between Increasing Elements
- 2017.Grid Game
- 2024.Maximize the Confusion of an Exam
- 2029.Stone Game IX
- 2034.Stock Price Fluctuation
- 2035.Partition Array Into Two Arrays to Minimize Sum Difference
- 2036.Maximum Alternating Subarray Sum
- 2039.The Time When the Network Becomes Idle
- 2050.Parallel Courses III
- 2052.Minimum Cost to Separate Sentence Into Rows
- 2054.Two Best Non-Overlapping Events
- 2058.Find the Minimum and Maximum Number of Nodes Between Critical Points
- 2070.Most Beautiful Item for Each Query
- 2071.Maximum Number of Tasks You Can Assign
- 2073.Time Needed to Buy Tickets
- 2078.Two Furthest Houses With Different Colors
- 2088.Count Fertile Pyramids in a Land
- 2091.Removing Minimum and Maximum From Array
- 2098.Subsequence of Size K With the Largest Even Sum
- 2100-2199
- 2101.Detonate the Maximum Bombs
- 2104.Sum of Subarray Ranges
- 2105.Watering Plants II
- 2106.Maximum Fruits Harvested After at Most K Steps
- 2107.Number of Unique Flavors After Sharing K Candies
- 2127.Maximum Employees to Be Invited to a Meeting
- 2130.Maximum Twin Sum of a Linked List
- 2131.Longest Palindrome by Concatenating Two Letter Words
- 2134.Minimum Swaps to Group All 1's Together II
- 2136.Earliest Possible Day of Full Bloom
- 2140.Solving Questions With Brainpower
- 2141.Maximum Running Time of N Computers
- 2145.Count the Hidden Sequences
- 2151.Maximum Good People Based on Statements
- 2152.Minimum Number of Lines to Cover Points
- 2157.Groups of Strings
- 2162.Minimum Cost to Set Cooking Time
- 2163.Minimum Difference in Sums After Removal of Elements
- 2167.Minimum Time to Remove All Cars Containing Illegal Goods
- 2171.Removing Minimum Number of Magic Beans
- 2172.Maximum AND Sum of Array
- 2182.Construct String With Repeat Limit
- 2188.Minimum Time to Finish the Race
- 2195.Append K Integers With Minimal Sum
- 2200-2299
- 2202.Maximize the Topmost Element After K Moves
- 2207.Maximize Number of Subsequences in a String
- 2209.Minimum White Tiles After Covering With Carpets
- 2213.Longest Substring of One Repeating Character
- 2214.Minimum Health to Beat Game
- 2218.Maximum Value of K Coins From Piles
- 2219.Maximum Sum Score of Array
- 2229.Check if an Array Is Consecutive
- 2234.Maximum Total Beauty of the Gardens
- 2237.Count Positions on Street With Required Brightness
- 2241.Design an ATM Machine
- 2245.Maximum Trailing Zeros in a Cornered Path
- 2246.Longest Path With Different Adjacent Characters
- 2247.Maximum Cost of Trip With K Highways
- 2249.Count Lattice Points Inside a Circle
- 2263.Make Array Non-decreasing or Non-increasing
- 2271.Maximum White Tiles Covered by a Carpet
- 2272.Substring With Largest Variance
- 2286.Booking Concert Tickets in Groups
- 2287.Rearrange Characters to Make Target String
- 2289.Steps to Make Array Non-decreasing
- 2291.Maximum Profit From Trading Stocks
- 2293.Min Max Game
- 2296.Design a Text Editor
- 2297.Jump Game VIII
- 2300-2399
- 2303.Calculate Amount Paid in Taxes
- 2304.Minimum Path Cost in a Grid
- 2305.Fair Distribution of Cookies
- 2312.Selling Pieces of Wood
- 2313.Minimum Flips in Binary Tree to Get Result
- 2321.Maximum Score Of Spliced Array
- 2322.Minimum Score After Removals on a Tree
- 2323.Find Minimum Time to Finish All Jobs II
- 2333.Minimum Sum of Squared Difference
- 2342.Max Sum of a Pair With Equal Sum of Digits
- 2344.Minimum Deletions to Make Array Divisible
- 2355.Maximum Number of Books You Can Take
- 2359.Find Closest Node to Given Two Nodes
- 2360.Longest Cycle in a Graph
- 2361.Minimum Costs Using the Train Line
- 2370.Longest Ideal Subsequence
- 2371.Minimize Maximum Value in a Grid
- 2373.Largest Local Values in a Matrix
- 2378.Choose Edges to Maximize Score in a Tree
- 2380.Time Needed to Rearrange a Binary String
- 2382.Maximum Segment Sum After Removals
- 2385.Amount of Time for Binary Tree to Be Infected
- 2398.Maximum Number of Robots Within Budget
- 2400-2499
- 2403.Minimum Time to Kill All Monsters
- 2407.Longest Increasing Subsequence II
- 2411.Smallest Subarrays With Maximum Bitwise OR
- 2412.Minimum Money Required Before Transactions
- 2414.Length of the Longest Alphabetical Continuous Substring
- 2419.Longest Subarray With Maximum Bitwise AND
- 2428.Maximum Sum of an Hourglass
- 2430.Maximum Deletions on a String
- 2431.Maximize Total Tastiness of Purchased Fruits
- 2439.Minimize Maximum of Array
- 2440.Create Components With Same Value
- 2444.Count Subarrays With Fixed Bounds
- 2448.Minimum Cost to Make Array Equal
- 2458.Height of Binary Tree After Subtree Removal Queries
- 2459.Sort Array by Moving Items to Empty Space
- 2463.Minimum Total Distance Traveled
- 2464.Minimum Subarrays in a Valid Split
- 2467.Most Profitable Path in a Tree
- 2468.Split Message Based on Limit
- 2472.Maximum Number of Non-overlapping Palindrome Substrings
- 2473.Minimum Cost to Buy Apples
- 2479.Maximum XOR of Two Non-Overlapping Subtrees
- 2492.Minimum Score of a Path Between Two Cities
- 2493.Divide Nodes Into the Maximum Number of Groups
- 2497.Maximum Star Sum of a Graph
- 2498.Frog Jump II
- 2500-2599
- 2511.Maximum Enemy Forts That Can Be Captured
- 2515.Shortest Distance to Target String in a Circular Array
- 2516.Take K of Each Character From Left and Right
- 2522.Partition String Into Substrings With Values at Most K
- 2524.Maximum Frequency Score of a Subarray
- 2528.Maximize the Minimum Powered City
- 2529.Maximum Count of Positive Integer and Negative Integer
- 2532.Time to Cross a Bridge
- 2538.Difference Between Maximum and Minimum Price Sum
- 2539.Count the Number of Good Subsequences
- 2542.Maximum Subsequence Score
- 2547.Minimum Cost to Split an Array
- 2548.Maximum Price to Fill a Bag
- 2555.Maximize Win From Two Segments
- 2561.Rearranging Fruits
- 2567.Minimum Score by Changing Two Elements
- 2584.Split the Array to Make Coprime Products
- 2600-2699
- 2604.Minimum Time to Eat All Grains
- 2605.Form Smallest Number From Two Digit Arrays
- 2606.Find the Substring With Maximum Cost
- 2608.Shortest Cycle in a Graph
- 2609.Find the Longest Balanced Substring of a Binary String
- 2612.Minimum Reverse Operations
- 2613.Beautiful Pairs
- 2614.Prime In Diagonal
- 2639.Find the Width of Columns of a Grid
- 2640.Find the Score of All Prefixes of an Array
- 2642.Design Graph With Shortest Path Calculator
- 2646.Minimize the Total Price of the Trips
- 2654.Minimum Number of Operations to Make All Array Elements Equal to 1
- 2655.Find Maximal Uncovered Ranges
- 2656.Maximum Sum With Exactly K Elements
- 2657.Find the Prefix Common Array of Two Arrays
- 2658.Maximum Number of Fish in a Grid
- 2662.Minimum Cost of a Path With Special Roads
- 2673.Make Costs of Paths Equal in a Binary Tree
- 2679.Sum in a Matrix
- 2680.Maximum OR
- 2684.Maximum Number of Moves in a Grid
- 2699.Modify Graph Edge Weights
- 2700-2799
- 2702.Minimum Operations to Make Numbers Non-positive
- 2709.Greatest Common Divisor Traversal
- 2712.Minimum Cost to Make All Characters Equal
- 2713.Maximum Strictly Increasing Cells in a Matrix
- 2714.Find Shortest Path with K Hops
- 2730.Find the Longest Semi-Repetitive Substring
- 2735.Collecting Chocolates
- 2737.Find the Closest Marked Node
- 2740.Find the Value of the Partition
- 2742.Painting the Walls
- 2746.Decremental String Concatenation
- 2760.Longest Even Odd Subarray With Threshold
- 2767.Partition String Into Minimum Beautiful Substrings
- 2770.Maximum Number of Jumps to Reach the Last Index
- 2771.Longest Non-decreasing Subarray From Two Arrays
- 2781.Length of the Longest Valid Substring
- 2786.Visit Array Positions to Maximize Score
- 2789.Largest Element in an Array after Merge Operations
- 2800-2899
- 2800.Shortest String That Contains Three Strings
- 2808.Minimum Seconds to Equalize a Circular Array
- 2809.Minimum Time to Make Array Sum At Most x
- 2813.Maximum Elegance of a K-Length Subsequence
- 2815.Max Pair Sum in an Array
- 2817.Minimum Absolute Difference Between Elements With Constraint
- 2826.Sorting Three Groups
- 2830.Maximize the Profit as the Salesman
- 2831.Find the Longest Equal Subarray
- 2836.Maximize Value of Function in a Ball Passing Game
- 2841.Maximum Sum of Almost Unique Subarray
- 2844.Minimum Operations to Make a Special Number
- 2846.Minimum Edge Weight Equilibrium Queries in a Tree
- 2849.Determine if a Cell Is Reachable at a Given Time
- 2850.Minimum Moves to Spread Stones Over Grid
- 2861.Maximum Number of Alloys
- 2862.Maximum Element-Sum of a Complete Subset of Indices
- 2863.Maximum Length of Semi-Decreasing Subarrays
- 2865.Beautiful Towers I
- 2866.Beautiful Towers II
- 2873.Maximum Value of an Ordered Triplet I
- 2874.Maximum Value of an Ordered Triplet II
- 2875.Minimum Size Subarray in Infinite Array
- 2876.Count Visited Nodes in a Directed Graph
- 2895.Minimum Processing Time
- 2896.Apply Operations to Make Two Strings Equal
- 2898.Maximum Linear Stock Score
- 2900-2999
- 2907.Maximum Profitable Triplets With Increasing Prices I
- 2908.Minimum Sum of Mountain Triplets I
- 2909.Minimum Sum of Mountain Triplets II
- 2910.Minimum Number of Groups to Create a Valid Assignment
- 2911.Minimum Changes to Make K Semi-palindromes
- 2915.Length of the Longest Subsequence That Sums to Target
- 2918.Minimum Equal Sum of Two Arrays After Replacing Zeros
- 2919.Minimum Increment Operations to Make Array Beautiful
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,937 files changed
+8
-16855
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 | 183 |
| |
197 | 184 |
| |
198 | 185 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 | 167 |
| |
181 | 168 |
| |
182 | 169 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 | 29 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 | 220 |
| |
228 | 221 |
| |
229 | 222 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 | 179 |
| |
187 | 180 |
| |
188 | 181 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 | 29 |
| |
37 | 30 |
| |
38 | 31 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 | 166 |
| |
174 | 167 |
| |
175 | 168 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 | 190 |
| |
198 | 191 |
| |
199 | 192 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 | 24 |
| |
32 | 25 |
| |
33 | 26 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 | 106 |
| |
114 | 107 |
| |
115 | 108 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 | 98 |
| |
106 | 99 |
| |
107 | 100 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 | 12 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 | 129 |
| |
137 | 130 |
| |
138 | 131 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 | 119 |
| |
127 | 120 |
| |
128 | 121 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 | 18 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 | 190 |
| |
198 | 191 |
| |
199 | 192 |
| |
| |||
219 | 212 |
| |
220 | 213 |
| |
221 | 214 |
| |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 | 215 |
| |
230 | 216 |
| |
231 | 217 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 | 190 |
| |
198 | 191 |
| |
199 | 192 |
| |
| |||
219 | 212 |
| |
220 | 213 |
| |
221 | 214 |
| |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 | 215 |
| |
230 | 216 |
| |
231 | 217 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 | 22 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 | 112 |
| |
120 | 113 |
| |
121 | 114 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 | 113 |
| |
121 | 114 |
| |
122 | 115 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 | 17 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 | 101 |
| |
109 | 102 |
| |
110 | 103 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 | 107 |
| |
115 | 108 |
| |
116 | 109 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 | 8 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 | 221 |
| |
237 | 222 |
| |
238 | 223 |
| |
|
0 commit comments