File tree
1,385 files changed
+375
-4119
lines changed- lcci
- 03.03.Stack of Plates
- 04.09.BST Sequences
- 05.01.Insert Into Bits
- 05.02.Bianry Number to String
- 05.03.Reverse Bits
- 05.04.Closed Number
- 05.06.Convert Integer
- 05.08.Draw Line
- 08.02.Robot in a Grid
- 08.05.Recursive Mulitply
- 08.06.Hanota
- 08.08.Permutation II
- 08.11.Coin
- 08.13.Pile Box
- 10.03.Search Rotate Array
- 10.11.Peaks and Valleys
- 16.03.Intersection
- 16.04.Tic-Tac-Toe
- 16.05.Factorial Zeros
- 16.07.Maximum
- 16.08.English Int
- 16.09.Operations
- 16.13.Bisect Squares
- 16.14.Best Line
- 16.15.Master Mind
- 16.16.Sub Sort
- 16.17.Contiguous Sequence
- 16.18.Pattern Matching
- 16.20.T9
- 16.22.Langtons Ant
- 16.24.Pairs With Sum
- 16.26.Calculator
- 17.01.Add Without Plus
- 17.06.Number Of 2s In Range
- 17.08.Circus Tower
- 17.09.Get Kth Magic Number
- 17.14.Smallest K
- 17.18.Shortest Supersequence
- 17.23.Max Black Square
- 17.25.Word Rectangle
- 17.26.Sparse Similarity
- lcof
- lcof2/剑指 Offer II 039. 直方图最大矩形面积
- lcp
- LCP 03. 机器人大冒险
- LCP 04. 覆盖
- LCP 10. 二叉树任务调度
- LCP 11. 期望个数统计
- LCP 12. 小张刷题计划
- LCP 13. 寻宝
- LCP 14. 切分数组
- LCP 15. 游乐园的迷宫
- LCP 16. 游乐园的游览计划
- LCP 19. 秋叶收藏集
- LCP 20. 快速公交
- LCP 21. 追逐游戏
- LCP 22. 黑白方格画
- LCP 23. 魔术排列
- LCP 24. 数字游戏
- LCP 25. 古董键盘
- LCP 26. 导航装置
- LCP 27. 黑盒光线反射
- LCP 29. 乐团站位
- LCP 30. 魔塔游戏
- LCP 31. 变换的迷宫
- LCP 32. 批量处理任务
- LCP 33. 蓄水
- LCP 35. 电动车游城市
- LCP 36. 最多牌组数
- LCP 37. 最小矩形面积
- LCP 38. 守卫城堡
- LCP 39. 无人机方阵
- LCP 41. 黑白翻转棋
- LCP 42. 玩具套圈
- LCP 43. 十字路口的交通
- LCP 45. 自行车炫技赛场
- LCP 46. 志愿者调配
- LCP 47. 入场安检
- LCP 48. 无限棋局
- LCP 49. 环形闯关游戏
- solution
- 0000-0099
- 0031.Next Permutation
- 0032.Longest Valid Parentheses
- 0037.Sudoku Solver
- 0044.Wildcard Matching
- 0052.N-Queens II
- 0060.Permutation Sequence
- 0065.Valid Number
- 0100-0199
- 0134.Gas Station
- 0135.Candy
- 0157.Read N Characters Given Read4
- 0158.Read N Characters Given read4 II - Call Multiple Times
- 0163.Missing Ranges
- 0174.Dungeon Game
- 0200-0299
- 0218.The Skyline Problem
- 0224.Basic Calculator
- 0248.Strobogrammatic Number III
- 0254.Factor Combinations
- 0265.Paint House II
- 0267.Palindrome Permutation II
- 0271.Encode and Decode Strings
- 0276.Paint Fence
- 0277.Find the Celebrity
- 0296.Best Meeting Point
- 0300-0399
- 0313.Super Ugly Number
- 0316.Remove Duplicate Letters
- 0319.Bulb Switcher
- 0321.Create Maximum Number
- 0326.Power of Three
- 0330.Patching Array
- 0331.Verify Preorder Serialization of a Binary Tree
- 0332.Reconstruct Itinerary
- 0340.Longest Substring with At Most K Distinct Characters
- 0351.Android Unlock Patterns
- 0353.Design Snake Game
- 0358.Rearrange String k Distance Apart
- 0363.Max Sum of Rectangle No Larger Than K
- 0400-0499
- 0402.Remove K Digits
- 0408.Valid Word Abbreviation
- 0411.Minimum Unique Word Abbreviation
- 0418.Sentence Screen Fitting
- 0422.Valid Word Square
- 0428.Serialize and Deserialize N-ary Tree
- 0431.Encode N-ary Tree to Binary Tree
- 0439.Ternary Expression Parser
- 0446.Arithmetic Slices II - Subsequence
- 0455.Assign Cookies
- 0459.Repeated Substring Pattern
- 0460.LFU Cache
- 0465.Optimal Account Balancing
- 0466.Count The Repetitions
- 0468.Validate IP Address
- 0469.Convex Polygon
- 0470.Implement Rand10() Using Rand7()
- 0471.Encode String with Shortest Length
- 0478.Generate Random Point in a Circle
- 0480.Sliding Window Median
- 0481.Magical String
- 0483.Smallest Good Base
- 0484.Find Permutation
- 0486.Predict the Winner
- 0500-0599
- 0502.IPO
- 0514.Freedom Trail
- 0517.Super Washing Machines
- 0529.Minesweeper
- 0546.Remove Boxes
- 0555.Split Concatenated Strings
- 0562.Longest Line of Consecutive One in Matrix
- 0567.Permutation in String
- 0568.Maximum Vacation Days
- 0571.Find Median Given Frequency of Numbers
- 0573.Squirrel Simulation
- 0576.Out of Boundary Paths
- 0600-0699
- 0600.Non-negative Integers without Consecutive Ones
- 0601.Human Traffic of Stadium
- 0604.Design Compressed String Iterator
- 0621.Task Scheduler
- 0624.Maximum Distance in Arrays
- 0625.Minimum Factorization
- 0631.Design Excel Sum Formula
- 0632.Smallest Range Covering Elements from K Lists
- 0634.Find the Derangement of An Array
- 0635.Design Log Storage System
- 0644.Maximum Average Subarray II
- 0649.Dota2 Senate
- 0650.2 Keys Keyboard
- 0651.4 Keys Keyboard
- 0656.Coin Path
- 0659.Split Array into Consecutive Subsequences
- 0660.Remove 9
- 0664.Strange Printer
- 0665.Non-decreasing Array
- 0667.Beautiful Arrangement II
- 0672.Bulb Switcher II
- 0679.24 Game
- 0700-0799
- 0716.Max Stack
- 0722.Remove Comments
- 0726.Number of Atoms
- 0727.Minimum Window Subsequence
- 0738.Monotone Increasing Digits
- 0750.Number Of Corner Rectangles
- 0751.IP to CIDR
- 0753.Cracking the Safe
- 0754.Reach a Number
- 0755.Pour Water
- 0756.Pyramid Transition Matrix
- 0759.Employee Free Time
- 0764.Largest Plus Sign
- 0770.Basic Calculator IV
- 0772.Basic Calculator III
- 0774.Minimize Max Distance to Gas Station
- 0775.Global and Local Inversions
- 0776.Split BST
- 0777.Swap Adjacent in LR String
- 0782.Transform to Chessboard
- 0788.Rotated Digits
- 0789.Escape The Ghosts
- 0790.Domino and Tromino Tiling
- 0793.Preimage Size of Factorial Zeroes Function
- 0795.Number of Subarrays with Bounded Maximum
- 0799.Champagne Tower
- 0800-0899
- 0801.Minimum Swaps To Make Sequences Increasing
- 0805.Split Array With Same Average
- 0808.Soup Servings
- 0809.Expressive Words
- 0810.Chalkboard XOR Game
- 0813.Largest Sum of Averages
- 0815.Bus Routes
- 0818.Race Car
- 0823.Binary Trees With Factors
- 0828.Count Unique Characters of All Substrings of a Given String
- 0830.Positions of Large Groups
- 0831.Masking Personal Information
- 0833.Find And Replace in String
- 0834.Sum of Distances in Tree
- 0835.Image Overlap
- 0836.Rectangle Overlap
- 0837.New 21 Game
- 0840.Magic Squares In Grid
- 0842.Split Array into Fibonacci Sequence
- 0843.Guess the Word
- 0848.Shifting Letters
- 0849.Maximize Distance to Closest Person
- 0853.Car Fleet
- 0855.Exam Room
- 0856.Score of Parentheses
- 0857.Minimum Cost to Hire K Workers
- 0858.Mirror Reflection
- 0878.Nth Magical Number
- 0879.Profitable Schemes
- 0880.Decoded String at Index
- 0882.Reachable Nodes In Subdivided Graph
- 0887.Super Egg Drop
- 0891.Sum of Subsequence Widths
- 0895.Maximum Frequency Stack
- 0900-0999
- 0902.Numbers At Most N Given Digit Set
- 0903.Valid Permutations for DI Sequence
- 0906.Super Palindromes
- 0910.Smallest Range II
- 0915.Partition Array into Disjoint Intervals
- 0916.Word Subsets
- 0920.Number of Music Playlists
- 0923.3Sum With Multiplicity
- 0936.Stamping The Sequence
- 0939.Minimum Area Rectangle
- 0940.Distinct Subsequences II
- 0943.Find the Shortest Superstring
- 0948.Bag of Tokens
- 0949.Largest Time for Given Digits
- 0950.Reveal Cards In Increasing Order
- 0955.Delete Columns to Make Sorted II
- 0956.Tallest Billboard
- 0957.Prison Cells After N Days
- 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
- 0975.Odd Even Jump
- 0978.Longest Turbulent Subarray
- 0980.Unique Paths III
- 0982.Triples with Bitwise AND Equal To Zero
- 0983.Minimum Cost For Tickets
- 0984.String Without AAA or BBB
- 0991.Broken Calculator
- 0992.Subarrays with K Different Integers
- 0995.Minimum Number of K Consecutive Bit Flips
- 0996.Number of Squareful Arrays
- 1000-1099
- 1000.Minimum Cost to Merge Stones
- 1003.Check If Word Is Valid After Substitutions
- 1007.Minimum Domino Rotations For Equal Row
- 1010.Pairs of Songs With Total Durations Divisible by 60
- 1012.Numbers With Repeated Digits
- 1013.Partition Array Into Three Parts With Equal Sum
- 1015.Smallest Integer Divisible by K
- 1017.Convert to Base -2
- 1018.Binary Prefix Divisible By 5
- 1023.Camelcase Matching
- 1024.Video Stitching
- 1028.Recover a Tree From Preorder Traversal
- 1032.Stream of Characters
- 1039.Minimum Score Triangulation of Polygon
- 1040.Moving Stones Until Consecutive II
- 1043.Partition Array for Maximum Sum
- 1053.Previous Permutation With One Swap
- 1054.Distant Barcodes
- 1055.Shortest Way to Form String
- 1056.Confusing Number
- 1057.Campus Bikes
- 1058.Minimize Rounding Error to Meet Target
- 1059.All Paths from Source Lead to Destination
- 1060.Missing Element in Sorted Array
- 1062.Longest Repeating Substring
- 1063.Number of Valid Subarrays
- 1066.Campus Bikes II
- 1067.Digit Count in Range
- 1073.Adding Two Negabinary Numbers
- 1074.Number of Submatrices That Sum to Target
- 1081.Smallest Subsequence of Distinct Characters
- 1088.Confusing Number II
- 1092.Shortest Common Supersequence
- 1093.Statistics from a Large Sample
- 1095.Find in Mountain Array
- 1096.Brace Expansion II
- 1098.Unpopular Books
- 1100-1199
- 1104.Path In Zigzag Labelled Binary Tree
- 1106.Parsing A Boolean Expression
- 1110.Delete Nodes And Return Forest
- 1116.Print Zero Even Odd
- 1117.Building H2O
- 1121.Divide Array Into Increasing Sequences
- 1125.Smallest Sufficient Team
- 1130.Minimum Cost Tree From Leaf Values
- 1131.Maximum of Absolute Value Expression
- 1138.Alphabet Board Path
- 1139.Largest 1-Bordered Square
- 1140.Stone Game II
- 1144.Decrease Elements To Make Array Zigzag
- 1145.Binary Tree Coloring Game
- 1146.Snapshot Array
- 1147.Longest Chunked Palindrome Decomposition
- 1151.Minimum Swaps to Group All 1's Together
- 1152.Analyze User Website Visit Pattern
- 1153.String Transforms Into Another String
- 1155.Number of Dice Rolls With Target Sum
- 1156.Swap For Longest Repeated Character Substring
- 1157.Online Majority Element In Subarray
- 1163.Last Substring in Lexicographical Order
- 1169.Invalid Transactions
- 1170.Compare Strings by Frequency of the Smallest Character
- 1172.Dinner Plate Stacks
- 1176.Diet Plan Performance
- 1177.Can Make Palindrome from Substring
- 1178.Number of Valid Words for Each Puzzle
- 1179.Reformat Department Table
- 1183.Maximum Number of Ones
- 1186.Maximum Subarray Sum with One Deletion
- 1187.Make Array Strictly Increasing
- 1191.K-Concatenation Maximum Sum
- 1192.Critical Connections in a Network
- 1195.Fizz Buzz Multithreaded
- 1199.Minimum Time to Build Blocks
- 1200-1299
- 1201.Ugly Number III
- 1203.Sort Items by Groups Respecting Dependencies
- 1209.Remove All Adjacent Duplicates in String II
- 1216.Valid Palindrome III
- 1223.Dice Roll Simulation
- 1224.Maximum Equal Frequency
- 1226.The Dining Philosophers
- 1229.Meeting Scheduler
- 1231.Divide Chocolate
- 1232.Check If It Is a Straight Line
- 1235.Maximum Profit in Job Scheduling
- 1238.Circular Permutation in Binary Representation
- 1240.Tiling a Rectangle with the Fewest Squares
- 1242.Web Crawler Multithreaded
- 1246.Palindrome Removal
- 1247.Minimum Swaps to Make Strings Equal
- 1248.Count Number of Nice Subarrays
- 1249.Minimum Remove to Make Valid Parentheses
- 1250.Check If It Is a Good Array
- 1253.Reconstruct a 2-Row Binary Matrix
- 1255.Maximum Score Words Formed by Letters
- 1256.Encode Number
- 1259.Handshakes That Don't Cross
- 1262.Greatest Sum Divisible by Three
- 1263.Minimum Moves to Move a Box to Their Target Location
- 1269.Number of Ways to Stay in the Same Place After Some Steps
- 1271.Hexspeak
- 1272.Remove Interval
- 1274.Number of Ships in a Rectangle
- 1276.Number of Burgers with No Waste of Ingredients
- 1278.Palindrome Partitioning III
- 1289.Minimum Falling Path Sum II
- 1291.Sequential Digits
- 1297.Maximum Number of Occurrences of a Substring
- 1300-1399
- 1300.Sum of Mutated Array Closest to Target
- 1301.Number of Paths with Max Score
- 1307.Verbal Arithmetic Puzzle
- 1312.Minimum Insertion Steps to Make a String Palindrome
- 1317.Convert Integer to the Sum of Two No-Zero Integers
- 1320.Minimum Distance to Type a Word Using Two Fingers
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1328.Break a Palindrome
- 1330.Reverse Subarray To Maximize Array Value
- 1333.Filter Restaurants by Vegan-Friendly, Price and Distance
- 1334.Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1335.Minimum Difficulty of a Job Schedule
- 1339.Maximum Product of Splitted Binary Tree
- 1340.Jump Game V
- 1343.Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
- 1344.Angle Between Hands of a Clock
- 1348.Tweet Counts Per Frequency
- 1349.Maximum Students Taking Exam
- 1353.Maximum Number of Events That Can Be Attended
- 1354.Construct Target Array With Multiple Sums
- 1357.Apply Discount Every n Orders
- 1358.Number of Substrings Containing All Three Characters
- 1359.Count All Valid Pickup and Delivery Options
- 1360.Number of Days Between Two Dates
- 1362.Closest Divisors
- 1363.Largest Multiple of Three
- 1372.Longest ZigZag Path in a Binary Tree
- 1373.Maximum Sum BST in Binary Tree
- 1387.Sort Integers by The Power Value
- 1388.Pizza With 3n Slices
- 1390.Four Divisors
- 1397.Find All Good Strings
- 1400-1499
- 1406.Stone Game III
- 1416.Restore The Array
- 1420.Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1422.Maximum Score After Splitting a String
- 1424.Diagonal Traverse II
- 1427.Perform String Shifts
- 1432.Max Difference You Can Get From Changing an Integer
- 1437.Check If All 1's Are at Least Length K Places Away
- 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
- 1449.Form Largest Integer With Digits That Add up to Target
- 1451.Rearrange Words in a Sentence
- 1452.People Whose List of Favorite Companies Is Not a Subset of Another List
- 1453.Maximum Number of Darts Inside of a Circular Dartboard
- 1456.Maximum Number of Vowels in a Substring of Given Length
- 1458.Max Dot Product of Two Subsequences
- 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
- 1483.Kth Ancestor of a Tree Node
- 1487.Making File Names Unique
- 1488.Avoid Flood in The City
- 1491.Average Salary Excluding the Minimum and Maximum Salary
- 1492.The kth Factor of n
- 1493.Longest Subarray of 1's After Deleting One Element
- 1494.Parallel Courses II
- 1498.Number of Subsequences That Satisfy the Given Sum Condition
- 1500-1599
- 1504.Count Submatrices With All Ones
- 1509.Minimum Difference Between Largest and Smallest Value in Three Moves
- 1510.Stone Game IV
- 1513.Number of Substrings With Only 1s
- 1515.Best Position for a Service Centre
- 1516.Move Sub-Tree of N-Ary Tree
- 1519.Number of Nodes in the Sub-Tree With the Same Label
- 1520.Maximum Number of Non-Overlapping Substrings
- 1521.Find a Value of a Mysterious Function Closest to Target
- 1525.Number of Good Ways to Split a String
- 1526.Minimum Number of Increments on Subarrays to Form a Target Array
- 1530.Number of Good Leaf Nodes Pairs
- 1531.String Compression II
- 1535.Find the Winner of an Array Game
- 1536.Minimum Swaps to Arrange a Binary Grid
- 1537.Get the Maximum Score
- 1538.Guess the Majority in a Hidden Array
- 1540.Can Convert String in K Moves
- 1541.Minimum Insertions to Balance a Parentheses String
- 1542.Find Longest Awesome Substring
- 1544.Make The String Great
- 1545.Find Kth Bit in Nth Binary String
- 1547.Minimum Cost to Cut a Stick
- 1548.The Most Similar Path in a Graph
- 1550.Three Consecutive Odds
- 1555.Bank Account Summary
- 1556.Thousand Separator
- 1563.Stone Game V
- 1564.Put Boxes Into the Warehouse I
- 1565.Unique Orders and Customers Per Month
- 1566.Detect Pattern of Length M Repeated K or More Times
- 1568.Minimum Number of Days to Disconnect Island
- 1569.Number of Ways to Reorder Array to Get Same BST
- 1571.Warehouse Manager
- 1573.Number of Ways to Split a String
- 1574.Shortest Subarray to be Removed to Make Array Sorted
- 1577.Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1578.Minimum Time to Make Rope Colorful
- 1580.Put Boxes Into the Warehouse II
- 1582.Special Positions in a Binary Matrix
- 1583.Count Unhappy Friends
- 1585.Check If String Is Transformable With Substring Sort Operations
- 1586.Binary Search Tree Iterator II
- 1590.Make Sum Divisible by P
- 1591.Strange Printer II
- 1592.Rearrange Spaces Between Words
- 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
- 1596.The Most Frequently Ordered Products for Each Customer
- 1597.Build Binary Expression Tree From Infix Expression
- 1598.Crawler Log Folder
- 1599.Maximum Profit of Operating a Centennial Wheel
- 1600-1699
- 1600.Throne Inheritance
- 1604.Alert Using Same Key-Card Three or More Times in a One Hour Period
- 1611.Minimum One Bit Operations to Make Integers Zero
- 1615.Maximal Network Rank
- 1616.Split Two Strings to Make Palindrome
- 1617.Count Subtrees With Max Distance Between Cities
- 1620.Coordinate With Maximum Network Quality
- 1621.Number of Sets of K Non-Overlapping Line Segments
- 1624.Largest Substring Between Two Equal Characters
- 1627.Graph Connectivity With Threshold
- 1632.Rank Transform of a Matrix
- 1639.Number of Ways to Form a Target String Given a Dictionary
- 1642.Furthest Building You Can Reach
- 1643.Kth Smallest Instructions
- 1644.Lowest Common Ancestor of a Binary Tree II
- 1648.Sell Diminishing-Valued Colored Balls
- 1653.Minimum Deletions to Make String Balanced
- 1655.Distribute Repeating Integers
- 1657.Determine if Two Strings Are Close
- 1659.Maximize Grid Happiness
- 1663.Smallest String With A Given Numeric Value
- 1664.Ways to Make a Fair Array
- 1665.Minimum Initial Energy to Finish Tasks
- 1666.Change the Root of a Binary Tree
- 1668.Maximum Repeating Substring
- 1671.Minimum Number of Removals to Make Mountain Array
- 1673.Find the Most Competitive Subsequence
- 1674.Minimum Moves to Make Array Complementary
- 1675.Minimize Deviation in Array
- 1680.Concatenation of Consecutive Binary Numbers
- 1681.Minimum Incompatibility
- 1682.Longest Palindromic Subsequence II
- 1686.Stone Game VI
- 1687.Delivering Boxes from Storage to Ports
- 1690.Stone Game VII
- 1692.Count Ways to Distribute Candies
- 1694.Reformat Phone Number
- 1695.Maximum Erasure Value
- 1696.Jump Game VI
- 1700-1799
- 1702.Maximum Binary String After Change
- 1703.Minimum Adjacent Swaps for K Consecutive Ones
- 1707.Maximum XOR With an Element From Array
- 1708.Largest Subarray Length K
- 1710.Maximum Units on a Truck
- 1713.Minimum Operations to Make a Subsequence
- 1714.Sum Of Special Evenly-Spaced Elements In Array
- 1724.Checking Existence of Edge Length Limited Paths II
- 1726.Tuple with Same Product
- 1727.Largest Submatrix With Rearrangements
- 1728.Cat and Mouse II
- 1733.Minimum Number of People to Teach
- 1735.Count Ways to Make Array With Product
- 1737.Change Minimum Characters to Satisfy One of Three Conditions
- 1739.Building Boxes
- 1744.Can You Eat Your Favorite Candy on Your Favorite Day
- 1745.Palindrome Partitioning IV
- 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
- 1752.Check if Array Is Sorted and Rotated
- 1753.Maximum Score From Removing Stones
- 1754.Largest Merge Of Two Strings
- 1759.Count Number of Homogenous Substrings
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1764.Form Array by Concatenating Subarrays of Another Array
- 1766.Tree of Coprimes
- 1770.Maximum Score from Performing Multiplication Operations
- 1771.Maximize Palindrome Length From Subsequences
- 1774.Closest Dessert Cost
- 1776.Car Fleet II
- 1779.Find Nearest Point That Has the Same X or Y Coordinate
- 1780.Check if Number is a Sum of Powers of Three
- 1782.Count Pairs Of Nodes
- 1785.Minimum Elements to Add to Form a Given Sum
- 1787.Make the XOR of All Segments Equal to Zero
- 1788.Maximize the Beauty of the Garden
- 1792.Maximum Average Pass Ratio
- 1793.Maximum Score of a Good Subarray
- 1794.Count Pairs of Equal Substrings With Minimum Difference
- 1799.Maximize Score After N Operations
- 1800-1899
- 1801.Number of Orders in the Backlog
- 1802.Maximum Value at a Given Index in a Bounded Array
- 1803.Count Pairs With XOR in a Range
- 1806.Minimum Number of Operations to Reinitialize a Permutation
- 1808.Maximize Number of Nice Divisors
- 1814.Count Nice Pairs in an Array
- 1815.Maximum Number of Groups Getting Fresh Donuts
- 1819.Number of Different Subsequences GCDs
- 1820.Maximum Number of Accepted Invitations
- 1824.Minimum Sideway Jumps
- 1825.Finding MK Average
- 1830.Minimum Number of Operations to Make String Sorted
- 1834.Single-Threaded CPU
- 1835.Find XOR Sum of All Pairs Bitwise AND
- 1839.Longest Substring Of All Vowels in Order
- 1840.Maximum Building Height
- 1842.Next Palindrome Using Same Digits
- 1847.Closest Room
- 1849.Splitting a String Into Descending Consecutive Values
- 1850.Minimum Adjacent Swaps to Reach the Kth Smallest Number
- 1851.Minimum Interval to Include Each Query
- 1852.Distinct Numbers in Each Subarray
- 1862.Sum of Floored Pairs
- 1866.Number of Ways to Rearrange Sticks With K Sticks Visible
- 1868.Product of Two Run-Length Encoded Arrays
- 1878.Get Biggest Three Rhombus Sums in a Grid
- 1879.Minimum XOR Sum of Two Arrays
- 1884.Egg Drop With 2 Eggs and N Floors
- 1896.Minimum Cost to Change the Final Value of Expression
- 1900-1999
- 1900.The Earliest and Latest Rounds Where Players Compete
- 1901.Find a Peak Element II
- 1908.Game of Nim
- 1910.Remove All Occurrences of a Substring
- 1911.Maximum Alternating Subsequence Sum
- 1912.Design Movie Rental System
- 1916.Count Ways to Build Rooms in an Ant Colony
- 1918.Kth Smallest Subarray Sum
- 1924.Erect the Fence II
- 1927.Sum Game
- 1928.Minimum Cost to Reach Destination in Time
- 1931.Painting a Grid With Three Different Colors
- 1932.Merge BSTs to Create Single BST
- 1933.Check if String Is Decomposable Into Value-Equal Substrings
- 1937.Maximum Number of Points with Cost
- 1938.Maximum Genetic Difference Query
- 1948.Delete Duplicate Folders in System
- 1950.Maximum of Minimum Values in All Subarrays
- 1954.Minimum Garden Perimeter to Collect Enough Apples
- 1955.Count Number of Special Subsequences
- 1956.Minimum Time For K Virus Variants to Spread
- 1960.Maximum Product of the Length of Two Palindromic Substrings
- 1966.Binary Searchable Numbers in an Unsorted Array
- 1969.Minimum Non-Zero Product of the Array Elements
- 1973.Count Nodes Equal to Sum of Descendants
- 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
- 1986.Minimum Number of Work Sessions to Finish the Tasks
- 1987.Number of Unique Good Subsequences
- 1989.Maximum Number of People That Can Be Caught in Tag
- 1997.First Day Where You Have Been in All the Rooms
- 1999.Smallest Greater Multiple Made of Two Digits
- 2000-2099
- 2001.Number of Pairs of Interchangeable Rectangles
- 2002.Maximum Product of the Length of Two Palindromic Subsequences
- 2003.Smallest Missing Genetic Value in Each Subtree
- 2005.Subtree Removal Game with Fibonacci Tree
- 2008.Maximum Earnings From Taxi
- 2014.Longest Subsequence Repeated k Times
- 2015.Average Height of Buildings in Each Segment
- 2018.Check if Word Can Be Placed In Crossword
- 2019.The Score of Students Solving Math Expression
- 2025.Maximum Number of Ways to Partition an Array
- 2027.Minimum Moves to Convert String
- 2030.Smallest K-Length Subsequence With Occurrences of a Letter
- 2036.Maximum Alternating Subarray Sum
- 2040.Kth Smallest Product of Two Sorted Arrays
- 2056.Number of Valid Move Combinations On Chessboard
- 2060.Check if an Original String Exists Given Two Encoded Strings
- 2061.Number of Spaces Cleaning Robot Cleaned
- 2065.Maximum Path Quality of a Graph
- 2069.Walking Robot Simulation II
- 2071.Maximum Number of Tasks You Can Assign
- 2077.Paths in Maze That Lead to Same Room
- 2081.Sum of k-Mirror Numbers
- 2086.Minimum Number of Buckets Required to Collect Rainwater from Houses
- 2087.Minimum Cost Homecoming of a Robot in a Grid
- 2088.Count Fertile Pyramids in a Land
- 2093.Minimum Cost to Reach City With Discounts
- 2097.Valid Arrangement of Pairs
- 2098.Subsequence of Size K With the Largest Even Sum
- 2100-2199
- 2102.Sequentially Ordinal Rank Tracker
- 2107.Number of Unique Flavors After Sharing K Candies
- 2113.Elements in Array After Removing and Replacing Elements
- 2115.Find All Possible Recipes from Given Supplies
- 2116.Check if a Parentheses String Can Be Valid
- 2117.Abbreviating the Product of a Range
- 2123.Minimum Operations to Remove Adjacent Ones in Matrix
- 2124.Check if All A's Appears Before All B's
- 2128.Remove All Ones With Row and Column Flips
- 2129.Capitalize the Title
- 2131.Longest Palindrome by Concatenating Two Letter Words
- 2137.Pour Water Between Buckets to Make Water Levels Equal
- 2141.Maximum Running Time of N Computers
- 2143.Choose Numbers From Two Arrays in Range
- 2147.Number of Ways to Divide a Long Corridor
- 2152.Minimum Number of Lines to Cover Points
- 2156.Find Substring With Given Hash Value
- 2163.Minimum Difference in Sums After Removal of Elements
- 2172.Maximum AND Sum of Array
- 2183.Count Array Pairs Divisible by K
- 2184.Number of Ways to Build Sturdy Brick Wall
- 2188.Minimum Time to Finish the Race
- 2189.Number of Ways to Build House of Cards
- 2197.Replace Non-Coprime Numbers in Array
- 2200-2299
- 2204.Distance to a Cycle in Undirected Graph
- 2209.Minimum White Tiles After Covering With Carpets
- 2223.Sum of Scores of Built Strings
- 2234.Maximum Total Beauty of the Gardens
- 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
- 2254.Design Video Sharing Platform
- 2263.Make Array Non-decreasing or Non-increasing
- 2271.Maximum White Tiles Covered by a Carpet
- 2272.Substring With Largest Variance
- 2277.Closest Node to Path in Tree
- 2282.Number of People That Can Be Seen in a Grid
- 2286.Booking Concert Tickets in Groups
- 2297.Jump Game VIII
- 2300-2399
- 2307.Check for Contradictions in Equations
- 2313.Minimum Flips in Binary Tree to Get Result
- 2340.Minimum Adjacent Swaps to Make a Valid Array
- 2345.Finding the Number of Visible Mountains
- 2361.Minimum Costs Using the Train Line
- 2371.Minimize Maximum Value in a Grid
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,385 files changed
+375
-4119
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
43 | 42 |
| |
44 | 43 |
| |
45 | 44 |
| |
| |||
48 | 47 |
| |
49 | 48 |
| |
50 | 49 |
| |
51 |
| - | |
52 | 50 |
| |
53 | 51 |
| |
54 | 52 |
| |
| |||
115 | 113 |
| |
116 | 114 |
| |
117 | 115 |
| |
118 |
| - | |
119 | 116 |
| |
120 | 117 |
| |
121 | 118 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
67 | 66 |
| |
68 | 67 |
| |
69 | 68 |
| |
70 | 69 |
| |
71 | 70 |
| |
72 | 71 |
| |
73 |
| - | |
74 | 72 |
| |
75 | 73 |
| |
76 | 74 |
| |
| |||
137 | 135 |
| |
138 | 136 |
| |
139 | 137 |
| |
140 |
| - | |
141 | 138 |
| |
142 | 139 |
| |
143 | 140 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
39 | 38 |
| |
40 | 39 |
| |
41 | 40 |
| |
| |||
44 | 43 |
| |
45 | 44 |
| |
46 | 45 |
| |
47 |
| - | |
48 | 46 |
| |
49 | 47 |
| |
50 | 48 |
| |
51 | 49 |
| |
52 | 50 |
| |
53 | 51 |
| |
54 |
| - | |
55 | 52 |
| |
56 | 53 |
| |
57 | 54 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
59 | 58 |
| |
60 | 59 |
| |
61 |
| - | |
62 | 60 |
| |
63 | 61 |
| |
64 | 62 |
| |
65 | 63 |
| |
66 | 64 |
| |
67 | 65 |
| |
68 |
| - | |
69 | 66 |
| |
70 | 67 |
| |
71 | 68 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 | 36 |
| |
38 | 37 |
| |
39 | 38 |
| |
| |||
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 |
| - | |
59 | 57 |
| |
60 | 58 |
| |
61 | 59 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 | 43 |
| |
45 | 44 |
| |
46 | 45 |
| |
| |||
60 | 59 |
| |
61 | 60 |
| |
62 | 61 |
| |
63 |
| - | |
64 | 62 |
| |
65 | 63 |
| |
66 | 64 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
42 | 41 |
| |
43 | 42 |
| |
44 | 43 |
| |
| |||
47 | 46 |
| |
48 | 47 |
| |
49 | 48 |
| |
50 |
| - | |
51 | 49 |
| |
52 | 50 |
| |
53 | 51 |
| |
54 | 52 |
| |
55 | 53 |
| |
56 | 54 |
| |
57 |
| - | |
58 | 55 |
| |
59 | 56 |
| |
60 | 57 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 | 52 |
| |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
59 |
| - | |
60 | 58 |
| |
61 | 59 |
| |
62 | 60 |
| |
63 | 61 |
| |
64 | 62 |
| |
65 | 63 |
| |
66 |
| - | |
67 | 64 |
| |
68 | 65 |
| |
69 | 66 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 | 34 |
| |
36 | 35 |
| |
37 | 36 |
| |
| |||
40 | 39 |
| |
41 | 40 |
| |
42 | 41 |
| |
43 |
| - | |
44 | 42 |
| |
45 | 43 |
| |
46 | 44 |
| |
47 | 45 |
| |
48 | 46 |
| |
49 | 47 |
| |
50 |
| - | |
51 | 48 |
| |
52 | 49 |
| |
53 | 50 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 | 43 |
| |
45 | 44 |
| |
46 | 45 |
| |
47 | 46 |
| |
48 | 47 |
| |
49 | 48 |
| |
50 |
| - | |
51 | 49 |
| |
52 | 50 |
| |
53 | 51 |
| |
54 | 52 |
| |
55 | 53 |
| |
56 | 54 |
| |
57 |
| - | |
58 | 55 |
| |
59 | 56 |
| |
60 | 57 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 | 43 |
| |
45 | 44 |
| |
46 | 45 |
| |
| |||
49 | 48 |
| |
50 | 49 |
| |
51 | 50 |
| |
52 |
| - | |
53 | 51 |
| |
54 | 52 |
| |
55 | 53 |
| |
56 | 54 |
| |
57 | 55 |
| |
58 | 56 |
| |
59 |
| - | |
60 | 57 |
| |
61 | 58 |
| |
62 | 59 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 | 50 |
| |
52 | 51 |
| |
53 | 52 |
| |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
57 |
| - | |
58 | 56 |
| |
59 | 57 |
| |
60 | 58 |
| |
61 | 59 |
| |
62 | 60 |
| |
63 | 61 |
| |
64 |
| - | |
65 | 62 |
| |
66 | 63 |
| |
67 | 64 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
43 | 42 |
| |
44 | 43 |
| |
45 | 44 |
| |
| |||
84 | 83 |
| |
85 | 84 |
| |
86 | 85 |
| |
87 |
| - | |
88 | 86 |
| |
89 | 87 |
| |
90 | 88 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
50 | 49 |
| |
51 | 50 |
| |
52 | 51 |
| |
| |||
89 | 88 |
| |
90 | 89 |
| |
91 | 90 |
| |
92 |
| - | |
93 | 91 |
| |
94 | 92 |
| |
95 | 93 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 | 37 |
| |
39 | 38 |
| |
40 | 39 |
| |
| |||
43 | 42 |
| |
44 | 43 |
| |
45 | 44 |
| |
46 |
| - | |
47 | 45 |
| |
48 | 46 |
| |
49 | 47 |
| |
50 | 48 |
| |
51 | 49 |
| |
52 | 50 |
| |
53 |
| - | |
54 | 51 |
| |
55 | 52 |
| |
56 | 53 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 | 48 |
| |
50 | 49 |
| |
51 | 50 |
| |
52 | 51 |
| |
53 | 52 |
| |
54 | 53 |
| |
55 |
| - | |
56 | 54 |
| |
57 | 55 |
| |
58 | 56 |
| |
59 | 57 |
| |
60 | 58 |
| |
61 | 59 |
| |
62 |
| - | |
63 | 60 |
| |
64 | 61 |
| |
65 | 62 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
50 | 49 |
| |
51 | 50 |
| |
52 | 51 |
| |
| |||
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 |
| - | |
59 | 57 |
| |
60 | 58 |
| |
61 | 59 |
| |
| |||
119 | 117 |
| |
120 | 118 |
| |
121 | 119 |
| |
122 |
| - | |
123 | 120 |
| |
124 | 121 |
| |
125 | 122 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
59 | 58 |
| |
60 | 59 |
| |
61 |
| - | |
62 | 60 |
| |
63 | 61 |
| |
64 | 62 |
| |
| |||
122 | 120 |
| |
123 | 121 |
| |
124 | 122 |
| |
125 |
| - | |
126 | 123 |
| |
127 | 124 |
| |
128 | 125 |
|
0 commit comments