Commit d6298fb
File tree
1,311 files changed
+5935
-4497
lines changed- basic
- searching/BinarySearch
- sorting
- CountingSort
- HeapSort
- InsertionSort
- ShellSort
- lcci
- 01.05.One Away
- 01.06.Compress String
- 02.07.Intersection of Two Linked Lists
- 03.02.Min Stack
- 03.03.Stack of Plates
- 04.04.Check Balance
- 04.12.Paths with Sum
- 08.08.Permutation II
- 08.09.Bracket
- 10.03.Search Rotate Array
- 10.09.Sorted Matrix Search
- 16.01.Swap Numbers
- 16.13.Bisect Squares
- 16.14.Best Line
- 16.25.LRU Cache
- 17.05.Find Longest Subarray
- 17.06.Number Of 2s In Range
- 17.15.Longest Word
- 17.21.Volume of Histogram
- 17.23.Max Black Square
- lcof2
- 剑指 Offer II 007. 数组中和为 0 的三个数
- 剑指 Offer II 012. 左右两边子数组的和相等
- 剑指 Offer II 013. 二维子矩阵的和
- 剑指 Offer II 019. 最多删除一个字符得到回文
- 剑指 Offer II 031. 最近最少使用缓存
- 剑指 Offer II 037. 小行星碰撞
- 剑指 Offer II 050. 向下的路径节点之和
- 剑指 Offer II 062. 实现前缀树
- 剑指 Offer II 089. 房屋偷盗
- 剑指 Offer II 097. 子序列的数目
- 剑指 Offer II 098. 路径的数目
- 剑指 Offer II 114. 外星文字典
- 剑指 Offer II 119. 最长连续序列
- lcof
- 面试题04. 二维数组中的查找
- 面试题11. 旋转数组的最小数字
- 面试题12. 矩阵中的路径
- 面试题19. 正则表达式匹配
- 面试题20. 表示数值的字符串
- 面试题25. 合并两个排序的链表
- 面试题28. 对称的二叉树
- 面试题30. 包含min函数的栈
- 面试题32 - II. 从上到下打印二叉树 II
- 面试题33. 二叉搜索树的后序遍历序列
- 面试题38. 字符串的排列
- 面试题43. 1~n整数中1出现的次数
- 面试题46. 把数字翻译成字符串
- 面试题55 - II. 平衡二叉树
- 面试题57 - II. 和为s的连续正数序列
- 面试题65. 不用加减乘除做加法
- 面试题68 - II. 二叉树的最近公共祖先
- lcp
- LCP 05. 发 LeetCoin
- LCP 17. 速算机器人
- LCP 18. 早餐组合
- LCP 19. 秋叶收藏集
- LCP 20. 快速公交
- LCP 21. 追逐游戏
- LCP 22. 黑白方格画
- LCP 23. 魔术排列
- LCP 24. 数字游戏
- LCP 25. 古董键盘
- LCP 26. 导航装置
- LCP 27. 黑盒光线反射
- LCP 28. 采购方案
- LCP 29. 乐团站位
- LCP 30. 魔塔游戏
- LCP 31. 变换的迷宫
- LCP 32. 批量处理任务
- LCP 33. 蓄水
- LCP 34. 二叉树染色
- LCP 35. 电动车游城市
- LCP 36. 最多牌组数
- LCP 37. 最小矩形面积
- LCP 38. 守卫城堡
- LCP 39. 无人机方阵
- LCP 40. 心算挑战
- LCP 41. 黑白翻转棋
- LCP 42. 玩具套圈
- LCP 43. 十字路口的交通
- LCP 44. 开幕式焰火
- LCP 45. 自行车炫技赛场
- LCP 46. 志愿者调配
- LCP 47. 入场安检
- LCP 48. 无限棋局
- LCP 49. 环形闯关游戏
- LCP 50. 宝石补给
- LCP 51. 烹饪料理
- LCP 52. 二叉搜索树染色
- LCP 54. 夺回据点
- LCP 55. 采集果实
- LCP 56. 信物传送
- LCP 57. 打地鼠
- LCP 58. 积木拼接
- LCP 59. 搭桥过河
- LCP 60. 力扣泡泡龙
- LCP 61. 气温变化趋势
- LCP 62. 交通枢纽
- LCP 63. 弹珠游戏
- LCP 64. 二叉树灯饰
- LCP 65. 舒适的湿度
- LCP 66. 最小展台数量
- LCP 67. 装饰树
- LCP 68. 美观的花束
- LCP 69. Hello LeetCode!
- LCP 70. 沙地治理
- LCP 71. 集水器
- LCP 72. 补给马车
- LCP 73. 探险营地
- LCP 74. 最强祝福力场
- LCP 75. 传送卷轴
- LCP 76. 魔法棋盘
- LCP 77. 符文储备
- LCP 78. 城墙防线
- LCP 79. 提取咒文
- LCP 80. 生物进化录
- LCP 81. 与非的谜题
- LCP 82. 万灵之树
- lcs
- LCS 01. 下载插件
- LCS 02. 完成一半题目
- LCS 03. 主题空间
- solution
- 0000-0099
- 0004.Median of Two Sorted Arrays
- 0007.Reverse Integer
- 0009.Palindrome Number
- 0010.Regular Expression Matching
- 0015.3Sum
- 0018.4Sum
- 0021.Merge Two Sorted Lists
- 0022.Generate Parentheses
- 0026.Remove Duplicates from Sorted Array
- 0027.Remove Element
- 0032.Longest Valid Parentheses
- 0033.Search in Rotated Sorted Array
- 0036.Valid Sudoku
- 0039.Combination Sum
- 0040.Combination Sum II
- 0043.Multiply Strings
- 0044.Wildcard Matching
- 0045.Jump Game II
- 0046.Permutations
- 0047.Permutations II
- 0055.Jump Game
- 0056.Merge Intervals
- 0057.Insert Interval
- 0062.Unique Paths
- 0063.Unique Paths II
- 0064.Minimum Path Sum
- 0065.Valid Number
- 0071.Simplify Path
- 0072.Edit Distance
- 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
- 0087.Scramble String
- 0091.Decode Ways
- 0092.Reverse Linked List II
- 0100-0199
- 0101.Symmetric Tree
- 0102.Binary Tree Level Order Traversal
- 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
- 0110.Balanced Binary Tree
- 0115.Distinct Subsequences
- 0123.Best Time to Buy and Sell Stock III
- 0129.Sum Root to Leaf Numbers
- 0130.Surrounded Regions
- 0133.Clone Graph
- 0136.Single Number
- 0137.Single Number II
- 0146.LRU Cache
- 0149.Max Points on a Line
- 0155.Min Stack
- 0161.One Edit Distance
- 0162.Find Peak Element
- 0164.Maximum Gap
- 0170.Two Sum III - Data structure design
- 0177.Nth Highest Salary
- 0178.Rank Scores
- 0187.Repeated DNA Sequences
- 0188.Best Time to Buy and Sell Stock IV
- 0191.Number of 1 Bits
- 0198.House Robber
- 0200-0299
- 0208.Implement Trie (Prefix Tree)
- 0210.Course Schedule II
- 0215.Kth Largest Element in an Array
- 0216.Combination Sum III
- 0224.Basic Calculator
- 0225.Implement Stack using Queues
- 0227.Basic Calculator II
- 0233.Number of Digit One
- 0240.Search a 2D Matrix II
- 0245.Shortest Word Distance III
- 0247.Strobogrammatic Number II
- 0248.Strobogrammatic Number III
- 0250.Count Univalue Subtrees
- 0259.3Sum Smaller
- 0260.Single Number III
- 0268.Missing Number
- 0269.Alien Dictionary
- 0279.Perfect Squares
- 0296.Best Meeting Point
- 0300-0399
- 0301.Remove Invalid Parentheses
- 0303.Range Sum Query - Immutable
- 0307.Range Sum Query - Mutable
- 0308.Range Sum Query 2D - Mutable
- 0315.Count of Smaller Numbers After Self
- 0322.Coin Change
- 0329.Longest Increasing Path in a Matrix
- 0330.Patching Array
- 0337.House Robber III
- 0342.Power of Four
- 0347.Top K Frequent Elements
- 0357.Count Numbers with Unique Digits
- 0358.Rearrange String k Distance Apart
- 0364.Nested List Weight Sum II
- 0365.Water and Jug Problem
- 0370.Range Addition
- 0371.Sum of Two Integers
- 0382.Linked List Random Node
- 0385.Mini Parser
- 0393.UTF-8 Validation
- 0400-0499
- 0402.Remove K Digits
- 0413.Arithmetic Slices
- 0414.Third Maximum Number
- 0435.Non-overlapping Intervals
- 0437.Path Sum III
- 0439.Ternary Expression Parser
- 0440.K-th Smallest in Lexicographical Order
- 0452.Minimum Number of Arrows to Burst Balloons
- 0455.Assign Cookies
- 0460.LFU Cache
- 0462.Minimum Moves to Equal Array Elements II
- 0468.Validate IP Address
- 0472.Concatenated Words
- 0473.Matchsticks to Square
- 0474.Ones and Zeroes
- 0480.Sliding Window Median
- 0481.Magical String
- 0486.Predict the Winner
- 0487.Max Consecutive Ones II
- 0493.Reverse Pairs
- 0500-0599
- 0520.Detect Capital
- 0527.Word Abbreviation
- 0545.Boundary of Binary Tree
- 0552.Student Attendance Record II
- 0562.Longest Line of Consecutive One in Matrix
- 0570.Managers with at Least 5 Direct Reports
- 0577.Employee Bonus
- 0585.Investments in 2016
- 0596.Classes With at Least 5 Students
- 0600-0699
- 0600.Non-negative Integers without Consecutive Ones
- 0608.Tree Node
- 0616.Add Bold Tag in String
- 0617.Merge Two Binary Trees
- 0628.Maximum Product of Three Numbers
- 0629.K Inverse Pairs Array
- 0633.Sum of Square Numbers
- 0634.Find the Derangement of An Array
- 0638.Shopping Offers
- 0640.Solve the Equation
- 0641.Design Circular Deque
- 0645.Set Mismatch
- 0648.Replace Words
- 0649.Dota2 Senate
- 0651.4 Keys Keyboard
- 0657.Robot Return to Origin
- 0668.Kth Smallest Number in Multiplication Table
- 0669.Trim a Binary Search Tree
- 0672.Bulb Switcher II
- 0677.Map Sum Pairs
- 0678.Valid Parenthesis String
- 0682.Baseball Game
- 0692.Top K Frequent Words
- 0698.Partition to K Equal Sum Subsets
- 0699.Falling Squares
- 0700-0799
- 0704.Binary Search
- 0707.Design Linked List
- 0712.Minimum ASCII Delete Sum for Two Strings
- 0715.Range Module
- 0716.Max Stack
- 0717.1-bit and 2-bit Characters
- 0724.Find Pivot Index
- 0731.My Calendar II
- 0732.My Calendar III
- 0735.Asteroid Collision
- 0740.Delete and Earn
- 0746.Min Cost Climbing Stairs
- 0757.Set Intersection Size At Least Two
- 0758.Bold Words in String
- 0767.Reorganize String
- 0776.Split BST
- 0777.Swap Adjacent in LR String
- 0779.K-th Symbol in Grammar
- 0780.Reaching Points
- 0782.Transform to Chessboard
- 0785.Is Graph Bipartite
- 0788.Rotated Digits
- 0790.Domino and Tromino Tiling
- 0794.Valid Tic-Tac-Toe State
- 0795.Number of Subarrays with Bounded Maximum
- 0800-0899
- 0802.Find Eventual Safe States
- 0808.Soup Servings
- 0813.Largest Sum of Averages
- 0818.Race Car
- 0830.Positions of Large Groups
- 0834.Sum of Distances in Tree
- 0836.Rectangle Overlap
- 0837.New 21 Game
- 0838.Push Dominoes
- 0843.Guess the Word
- 0850.Rectangle Area II
- 0856.Score of Parentheses
- 0857.Minimum Cost to Hire K Workers
- 0859.Buddy Strings
- 0860.Lemonade Change
- 0865.Smallest Subtree with all the Deepest Nodes
- 0874.Walking Robot Simulation
- 0877.Stone Game
- 0879.Profitable Schemes
- 0883.Projection Area of 3D Shapes
- 0886.Possible Bipartition
- 0900-0999
- 0902.Numbers At Most N Given Digit Set
- 0905.Sort Array By Parity
- 0906.Super Palindromes
- 0913.Cat and Mouse
- 0918.Maximum Sum Circular Subarray
- 0921.Minimum Add to Make Parentheses Valid
- 0927.Three Equal Parts
- 0936.Stamping The Sequence
- 0938.Range Sum of BST
- 0940.Distinct Subsequences II
- 0955.Delete Columns to Make Sorted II
- 0964.Least Operators to Express Number
- 0968.Binary Tree Cameras
- 0983.Minimum Cost For Tickets
- 0999.Available Captures for Rook
- 1000-1099
- 1004.Max Consecutive Ones III
- 1006.Clumsy Factorial
- 1012.Numbers With Repeated Digits
- 1017.Convert to Base -2
- 1022.Sum of Root To Leaf Binary Numbers
- 1024.Video Stitching
- 1025.Divisor Game
- 1026.Maximum Difference Between Node and Ancestor
- 1029.Two City Scheduling
- 1032.Stream of Characters
- 1039.Minimum Score Triangulation of Polygon
- 1041.Robot Bounded In Circle
- 1044.Longest Duplicate Substring
- 1059.All Paths from Source Lead to Destination
- 1062.Longest Repeating Substring
- 1065.Index Pairs of a String
- 1067.Digit Count in Range
- 1071.Greatest Common Divisor of Strings
- 1072.Flip Columns For Maximum Number of Equal Rows
- 1073.Adding Two Negabinary Numbers
- 1074.Number of Submatrices That Sum to Target
- 1076.Project Employees II
- 1088.Confusing Number II
- 1089.Duplicate Zeros
- 1092.Shortest Common Supersequence
- 1093.Statistics from a Large Sample
- 1100-1199
- 1105.Filling Bookcase Shelves
- 1106.Parsing A Boolean Expression
- 1110.Delete Nodes And Return Forest
- 1116.Print Zero Even Odd
- 1120.Maximum Average Subtree
- 1123.Lowest Common Ancestor of Deepest Leaves
- 1124.Longest Well-Performing Interval
- 1125.Smallest Sufficient Team
- 1129.Shortest Path with Alternating Colors
- 1130.Minimum Cost Tree From Leaf Values
- 1131.Maximum of Absolute Value Expression
- 1140.Stone Game II
- 1141.User Activity for the Past 30 Days I
- 1142.User Activity for the Past 30 Days II
- 1147.Longest Chunked Palindrome Decomposition
- 1157.Online Majority Element In Subarray
- 1166.Design File System
- 1172.Dinner Plate Stacks
- 1185.Day of the Week
- 1191.K-Concatenation Maximum Sum
- 1200-1299
- 1210.Minimum Moves to Reach Target with Rotations
- 1212.Team Scores in Football Tournament
- 1223.Dice Roll Simulation
- 1224.Maximum Equal Frequency
- 1227.Airplane Seat Assignment Probability
- 1235.Maximum Profit in Job Scheduling
- 1237.Find Positive Integer Solution for a Given Equation
- 1240.Tiling a Rectangle with the Fewest Squares
- 1245.Tree Diameter
- 1249.Minimum Remove to Make Valid Parentheses
- 1253.Reconstruct a 2-Row Binary Matrix
- 1259.Handshakes That Don't Cross
- 1262.Greatest Sum Divisible by Three
- 1263.Minimum Moves to Move a Box to Their Target Location
- 1268.Search Suggestions System
- 1272.Remove Interval
- 1277.Count Square Submatrices with All Ones
- 1287.Element Appearing More Than 25% In Sorted Array
- 1298.Maximum Candies You Can Get from Boxes
- 1300-1399
- 1312.Minimum Insertion Steps to Make a String Palindrome
- 1315.Sum of Nodes with Even-Valued Grandparent
- 1320.Minimum Distance to Type a Word Using Two Fingers
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1330.Reverse Subarray To Maximize Array Value
- 1349.Maximum Students Taking Exam
- 1361.Validate Binary Tree Nodes
- 1367.Linked List in Binary Tree
- 1373.Maximum Sum BST in Binary Tree
- 1377.Frog Position After T Seconds
- 1378.Replace Employee ID With The Unique Identifier
- 1382.Balance a Binary Search Tree
- 1383.Maximum Performance of a Team
- 1388.Pizza With 3n Slices
- 1396.Design Underground System
- 1400-1499
- 1401.Circle and Rectangle Overlapping
- 1406.Stone Game III
- 1411.Number of Ways to Paint N × 3 Grid
- 1419.Minimum Number of Frogs Croaking
- 1424.Diagonal Traverse II
- 1425.Constrained Subsequence Sum
- 1441.Build an Array With Stack Operations
- 1444.Number of Ways of Cutting a Pizza
- 1467.Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1483.Kth Ancestor of a Tree Node
- 1487.Making File Names Unique
- 1500-1599
- 1509.Minimum Difference Between Largest and Smallest Value in Three Moves
- 1510.Stone Game IV
- 1513.Number of Substrings With Only 1s
- 1521.Find a Value of a Mysterious Function Closest to Target
- 1526.Minimum Number of Increments on Subarrays to Form a Target Array
- 1535.Find the Winner of an Array Game
- 1541.Minimum Insertions to Balance a Parentheses String
- 1545.Find Kth Bit in Nth Binary String
- 1562.Find Latest Group of Size M
- 1563.Stone Game V
- 1567.Maximum Length of Subarray With Positive Product
- 1573.Number of Ways to Split a String
- 1575.Count All Possible Routes
- 1595.Minimum Cost to Connect Two Groups of Points
- 1600-1699
- 1600.Throne Inheritance
- 1613.Find the Missing IDs
- 1622.Fancy Sequence
- 1630.Arithmetic Subarrays
- 1639.Number of Ways to Form a Target String Given a Dictionary
- 1641.Count Sorted Vowel Strings
- 1649.Create Sorted Array through Instructions
- 1652.Defuse the Bomb
- 1653.Minimum Deletions to Make String Balanced
- 1654.Minimum Jumps to Reach Home
- 1659.Maximize Grid Happiness
- 1664.Ways to Make a Fair Array
- 1674.Minimum Moves to Make Array Complementary
- 1678.Goal Parser Interpretation
- 1679.Max Number of K-Sum Pairs
- 1682.Longest Palindromic Subsequence II
- 1687.Delivering Boxes from Storage to Ports
- 1690.Stone Game VII
- 1697.Checking Existence of Edge Length Limited Paths
- 1700-1799
- 1714.Sum Of Special Evenly-Spaced Elements In Array
- 1717.Maximum Score From Removing Substrings
- 1728.Cat and Mouse II
- 1747.Leetflex Banned Accounts
- 1751.Maximum Number of Events That Can Be Attended II
- 1753.Maximum Score From Removing Stones
- 1755.Closest Subsequence Sum
- 1770.Maximum Score from Performing Multiplication Operations
- 1774.Closest Dessert Cost
- 1778.Shortest Path in a Hidden Grid
- 1797.Design Authentication Manager
- 1800-1899
- 1802.Maximum Value at a Given Index in a Bounded Array
- 1803.Count Pairs With XOR in a Range
- 1804.Implement Trie II (Prefix Tree)
- 1808.Maximize Number of Nice Divisors
- 1815.Maximum Number of Groups Getting Fresh Donuts
- 1825.Finding MK Average
- 1851.Minimum Interval to Include Each Query
- 1863.Sum of All Subset XOR Totals
- 1872.Stone Game VIII
- 1882.Process Tasks Using Servers
- 1884.Egg Drop With 2 Eggs and N Floors
- 1890.The Latest Login in 2020
- 1892.Page Recommendations II
- 1900-1999
- 1908.Game of Nim
- 1915.Number of Wonderful Substrings
- 1918.Kth Smallest Subarray Sum
- 1927.Sum Game
- 1928.Minimum Cost to Reach Destination in Time
- 1944.Number of Visible People in a Queue
- 1948.Delete Duplicate Folders in System
- 1963.Minimum Number of Swaps to Make the String Balanced
- 1973.Count Nodes Equal to Sum of Descendants
- 1976.Number of Ways to Arrive at Destination
- 1987.Number of Unique Good Subsequences
- 1991.Find the Middle Index in Array
- 1993.Operations on Tree
- 1994.The Number of Good Subsets
- 2000-2099
- 2004.The Number of Seniors and Juniors to Join the Company
- 2008.Maximum Earnings From Taxi
- 2010.The Number of Seniors and Juniors to Join the Company II
- 2021.Brightest Position on Street
- 2024.Maximize the Confusion of an Exam
- 2034.Stock Price Fluctuation
- 2039.The Time When the Network Becomes Idle
- 2040.Kth Smallest Product of Two Sorted Arrays
- 2045.Second Minimum Time to Reach Destination
- 2047.Number of Valid Words in a Sentence
- 2050.Parallel Courses III
- 2052.Minimum Cost to Separate Sentence Into Rows
- 2065.Maximum Path Quality of a Graph
- 2079.Watering Plants
- 2087.Minimum Cost Homecoming of a Robot in a Grid
- 2096.Step-By-Step Directions From a Binary Tree Node to Another
- 2100-2199
- 2104.Sum of Subarray Ranges
- 2113.Elements in Array After Removing and Replacing Elements
- 2116.Check if a Parentheses String Can Be Valid
- 2127.Maximum Employees to Be Invited to a Meeting
- 2128.Remove All Ones With Row and Column Flips
- 2131.Longest Palindrome by Concatenating Two Letter Words
- 2140.Solving Questions With Brainpower
- 2147.Number of Ways to Divide a Long Corridor
- 2152.Minimum Number of Lines to Cover Points
- 2158.Amount of New Area Painted Each Day
- 2169.Count Operations to Obtain Zero
- 2179.Count Good Triplets in an Array
- 2185.Counting Words With a Given Prefix
- 2189.Number of Ways to Build House of Cards
- 2193.Minimum Number of Moves to Make Palindrome
- 2198.Number of Single Divisor Triplets
- 2200-2299
- 2204.Distance to a Cycle in Undirected Graph
- 2207.Maximize Number of Subsequences in a String
- 2209.Minimum White Tiles After Covering With Carpets
- 2210.Count Hills and Valleys in an Array
- 2213.Longest Substring of One Repeating Character
- 2232.Minimize Result by Adding Parentheses to Expression
- 2235.Add Two Integers
- 2237.Count Positions on Street With Required Brightness
- 2245.Maximum Trailing Zeros in a Cornered Path
- 2265.Count Nodes Equal to Average of Subtree
- 2276.Count Integers in Intervals
- 2281.Sum of Total Strength of Wizards
- 2282.Number of People That Can Be Seen in a Grid
- 2286.Booking Concert Tickets in Groups
- 2290.Minimum Obstacle Removal to Reach Corner
- 2291.Maximum Profit From Trading Stocks
- 2296.Design a Text Editor
- 2300-2399
- 2307.Check for Contradictions in Equations
- 2312.Selling Pieces of Wood
- 2313.Minimum Flips in Binary Tree to Get Result
- 2320.Count Number of Ways to Place Houses
- 2328.Number of Increasing Paths in a Grid
- 2329.Product Sales Analysis V
- 2331.Evaluate Boolean Binary Tree
- 2332.The Latest Time to Catch a Bus
- 2334.Subarray With Elements Greater Than Varying Threshold
- 2335.Minimum Amount of Time to Fill Cups
- 2336.Smallest Number in Infinite Set
- 2337.Move Pieces to Obtain a String
- 2338.Count the Number of Ideal Arrays
- 2340.Minimum Adjacent Swaps to Make a Valid Array
- 2347.Best Poker Hand
- 2348.Number of Zero-Filled Subarrays
- 2359.Find Closest Node to Given Two Nodes
- 2360.Longest Cycle in a Graph
- 2363.Merge Similar Items
- 2366.Minimum Replacements to Sort the Array
- 2369.Check if There is a Valid Partition For The Array
- 2376.Count Special Integers
- 2378.Choose Edges to Maximize Score in a Tree
- 2382.Maximum Segment Sum After Removals
- 2383.Minimum Hours of Training to Win a Competition
- 2400-2499
- 2400.Number of Ways to Reach a Position After Exactly k Steps
- 2402.Meeting Rooms III
- 2403.Minimum Time to Kill All Monsters
- 2406.Divide Intervals Into Minimum Number of Groups
- 2407.Longest Increasing Subsequence II
- 2416.Sum of Prefix Scores of Strings
- 2417.Closest Fair Integer
- 2430.Maximum Deletions on a String
- 2448.Minimum Cost to Make Array Equal
- 2457.Minimum Addition to Make Integer Beautiful
- 2458.Height of Binary Tree After Subtree Removal Queries
- 2466.Count Ways To Build Good Strings
- 2481.Minimum Cuts to Divide a Circle
- 2483.Minimum Penalty for a Shop
- 2492.Minimum Score of a Path Between Two Cities
- 2500-2599
- 2501.Longest Square Streak in an Array
- 2522.Partition String Into Substrings With Values at Most K
- 2532.Time to Cross a Bridge
- 2538.Difference Between Maximum and Minimum Price Sum
- 2547.Minimum Cost to Split an Array
- 2552.Count Increasing Quadruplets
- 2554.Maximum Number of Integers to Choose From a Range I
- 2567.Minimum Score by Changing Two Elements
- 2569.Handling Sum Queries After Update
- 2570.Merge Two 2D Arrays by Summing Values
- 2571.Minimum Operations to Reduce an Integer to 0
- 2572.Count the Number of Square-Free Subsets
- 2573.Find the String with LCP
- 2574.Left and Right Sum Differences
- 2581.Count Number of Possible Root Nodes
- 2582.Pass the Pillow
- 2597.The Number of Beautiful Subsets
- 2600-2699
- 2600.K Items With the Maximum Sum
- 2603.Collect Coins in a Tree
- 2604.Minimum Time to Eat All Grains
- 2609.Find the Longest Balanced Substring of a Binary String
- 2611.Mice and Cheese
- 2612.Minimum Reverse Operations
- 2630.Memoize II
- 2643.Row With Maximum Ones
- 2644.Find the Maximum Divisibility Score
- 2646.Minimize the Total Price of the Trips
- 2653.Sliding Subarray Beauty
- 2663.Lexicographically Smallest Beautiful String
- 2685.Count the Number of Complete Components
- 2689.Extract Kth Character From The Rope Tree
- 2699.Modify Graph Edge Weights
- 2700-2799
- 2708.Maximum Strength of a Group
- 2714.Find Shortest Path with K Hops
- 2718.Sum of Matrix After Queries
- 2719.Count of Integers
- 2728.Count Houses in a Circular Street
- 2732.Find a Good Subset of the Matrix
- 2735.Collecting Chocolates
- 2736.Maximum Sum Queries
- 2742.Painting the Walls
- 2745.Construct the Longest New String
- 2746.Decremental String Concatenation
- 2749.Minimum Operations to Make the Integer Zero
- 2753.Count Houses in a Circular Street II
- 2763.Sum of Imbalance Numbers of All Subarrays
- 2764.Is Array a Preorder of Some Binary Tree
- 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
- 2772.Apply Operations to Make All Array Elements Equal to Zero
- 2787.Ways to Express an Integer as Sum of Powers
- 2800-2899
- 2801.Count Stepping Numbers in Range
- 2811.Check if it is Possible to Split Array
- 2827.Number of Beautiful Integers in the Range
- 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
- 2844.Minimum Operations to Make a Special Number
- 2860.Happy Students
- 2876.Count Visited Nodes in a Directed Graph
- 2892.Minimizing Array After Replacing Pairs With Their Product
- 2896.Apply Operations to Make Two Strings Equal
- 2900-2999
- 2912.Number of Ways to Reach Destination in the Grid
- 2918.Minimum Equal Sum of Two Arrays After Replacing Zeros
- 2930.Number of Strings Which Can Be Rearranged to Contain Substring
- 2940.Find Building Where Alice and Bob Can Meet
- 2944.Minimum Number of Coins for Fruits
- 2949.Count Beautiful Substrings II
- 2952.Minimum Number of Coins to be Added
- 2967.Minimum Cost to Make Array Equalindromic
- 2973.Find Number of Coins to Place in Tree Nodes
- 2977.Minimum Cost to Convert String II
- 2993.Friday Purchases I
- 3000-3099
- 3004.Maximum Subtree of the Same Color
- 3018.Maximum Number of Removal Queries That Can Be Processed I
- 3020.Find the Maximum Number of Elements in Subset
- 3024.Type of Triangle
- 3025.Find the Number of Ways to Place People I
- 3027.Find the Number of Ways to Place People II
- 3040.Maximum Number of Operations With the Same Score II
- 3047.Find the Largest Area of Square Inside Two Rectangles
- 3075.Maximize Happiness of Selected Children
- 3086.Minimum Moves to Pick K Ones
- 3093.Longest Common Suffix Queries
- 3094.Guess the Number Using Bitwise Questions II
- 3097.Shortest Subarray With OR at Least K II
- 3098.Find the Sum of Subsequence Powers
- 3100-3199
- 3100.Water Bottles II
- 3101.Count Alternating Subarrays
- 3107.Minimum Operations to Make Median of Array Equal to K
- 3109.Find the Index of Permutation
- 3114.Latest Time You Can Obtain After Replacing Characters
- 3117.Minimum Sum of Values by Dividing Array
- 3129.Find All Possible Stable Binary Arrays I
- 3130.Find All Possible Stable Binary Arrays II
- 3149.Find the Minimum Cost Array Permutation
- 3154.Find Number of Ways to Reach the K-th Stair
- 3156.Employee Task Duration and Concurrent Tasks
- 3171.Find Subarray With Bitwise OR Closest to K
- 3175.Find The First Player to win K Games in a Row
- 3178.Find the Child Who Has the Ball After K Seconds
- 3183.The Number of Ways to Make the Sum
- 3190.Find Minimum Operations to Make All Elements Divisible by Three
- 3196.Maximize Total Cost of Alternating Subarrays
- 3200-3299
- 3224.Minimum Array Changes to Make Differences Equal
- 3229.Minimum Operations to Make Array Equal to Target
- 3234.Count the Number of Substrings With Dominant Ones
- 3240.Minimum Number of Flips to Make Binary Grid Palindromic II
- 3253.Construct String with Minimum Cost (Easy)
- 3268.Find Overlapping Shifts II
- 3281.Maximize Score of Numbers in Ranges
- 3283.Maximum Number of Moves to Kill All Pawns
- 3290.Maximum Multiplication Score
- 3291.Minimum Number of Valid Strings to Form Target I
- 3300-3399
- 3307.Find the K-th Character in String Game II
- 3316.Find Maximum Removals From Source String
- 3317.Find the Number of Possible Ways for an Event
- 3318.Find X-Sum of All K-Long Subarrays I
- 3320.Count The Number of Winning Sequences
- 3321.Find X-Sum of All K-Long Subarrays II
- 3333.Find the Original Typed String II
- 3339.Find the Number of K-Even Arrays
- 3346.Maximum Frequency of an Element After Performing Operations I
- 3347.Maximum Frequency of an Element After Performing Operations II
- 3362.Zero Array Transformation III
- 3366.Minimum Array Sum
- 3372.Maximize the Number of Target Nodes After Connecting Trees I
- 3373.Maximize the Number of Target Nodes After Connecting Trees II
- 3400-3499
- 3408.Design Task Manager
- 3418.Maximum Amount of Money Robot Can Earn
- 3433.Count Mentions Per User
- 3439.Reschedule Meetings for Maximum Free Time I
- 3445.Maximum Difference Between Even and Odd Frequency II
- 3452.Sum of Good Numbers
- 3465.Find Products with Valid Serial Numbers
- 3466.Maximum Coin Collection
- 3472.Longest Palindromic Subsequence After at Most K Operations
- 3475.DNA Pattern Recognition
- 3500-3599
- 3516.Find Closest Person
- 3542.Minimum Operations to Convert All Elements to Zero
- 3569.Maximize Count of Distinct Primes After Split
- 3573.Best Time to Buy and Sell Stock V
- 3600-3699
- 3612.Process String with Special Operations I
- 3625.Count Number of Trapezoids II
- 3628.Maximum Number of Subsequences After One Inserting
- 3641.Longest Semi-Repeating Subarray
- 3694.Distinct Points Reachable After Substring Removal
- 3700-3799
- 3703.Remove K-Balanced Substrings
- 3744.Find Kth Character in Expanded String
- 3745.Maximize Expression of Three Elements
- 3746.Minimum String Length After Balanced Removals
- 3747.Count Distinct Integers After Removing Zeros
- 3748.Count Stable Subarrays
- 3749.Evaluate Valid Expressions
- 3750.Minimum Number of Flips to Reverse Binary String
- 3751.Total Waviness of Numbers in Range I
- 3752.Lexicographically Smallest Negated Permutation that Sums to Target
- 3753.Total Waviness of Numbers in Range II
- 3754.Concatenate Non-Zero Digits and Multiply by Sum I
- 3755.Find Maximum Balanced XOR Subarray Length
- 3756.Concatenate Non-Zero Digits and Multiply by Sum II
- 3757.Number of Effective Subsequences
- 3758.Convert Number Words to Digits
- 3759.Count Elements With at Least K Greater Values
- 3760.Maximum Substrings With Distinct Start
- 3761.Minimum Absolute Distance Between Mirror Pairs
- 3762.Minimum Operations to Equalize Subarrays
- 3763.Maximum Total Sum with Threshold Constraints
- 3765.Complete Prime Number
- 3766.Minimum Operations to Make Binary Palindrome
- 3767.Maximize Points After Choosing K Tasks
- 3768.Minimum Inversion Count in Subarrays of Fixed Length
- 3769.Sort Integers by Binary Reflection
- 3770.Largest Prime from Consecutive Prime Sum
- 3771.Total Score of Dungeon Runs
- 3772.Maximum Subgraph Score in a Tree
- 3773.Maximum Number of Equal Length Runs
- 3775.Reverse Words With Same Vowel Count
- 3776.Minimum Moves to Balance Circular Array
- 3778.Minimum Distance Excluding One Maximum Weighted Edge
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,311 files changed
+5935
-4497
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments