Commit dba68ba


JavaScalaDeveloper
JavaScalaDeveloper
1 parent fdea593 commit dba68ba
File tree
814 files changed
+134401
-1415
lines changed- change/scripts
- out
- solution
- 0000-0099
- 0004.Median of Two Sorted Arrays
- 0005.Longest Palindromic Substring
- 0007.Reverse Integer
- 0009.Palindrome Number
- 0010.Regular Expression Matching
- 0014.Longest Common Prefix
- 0015.3Sum
- 0016.3Sum Closest
- 0018.4Sum
- 0022.Generate Parentheses
- 0025.Reverse Nodes in k-Group
- 0028.Find the Index of the First Occurrence in a String
- 0029.Divide Two Integers
- 0030.Substring with Concatenation of All Words
- 0031.Next Permutation
- 0032.Longest Valid Parentheses
- 0034.Find First and Last Position of Element in Sorted Array
- 0035.Search Insert Position
- 0036.Valid Sudoku
- 0039.Combination Sum
- 0040.Combination Sum II
- 0043.Multiply Strings
- 0044.Wildcard Matching
- 0046.Permutations
- 0047.Permutations II
- 0049.Group Anagrams
- 0050.Pow(x, n)
- 0054.Spiral Matrix
- 0055.Jump Game
- 0056.Merge Intervals
- 0057.Insert Interval
- 0060.Permutation Sequence
- 0073.Set Matrix Zeroes
- 0074.Search a 2D Matrix
- 0076.Minimum Window Substring
- 0077.Combinations
- 0078.Subsets
- 0080.Remove Duplicates from Sorted Array II
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- 0087.Scramble String
- 0100-0199
- 0100.Same Tree
- 0108.Convert Sorted Array to Binary Search Tree
- 0115.Distinct Subsequences
- 0122.Best Time to Buy and Sell Stock II
- 0125.Valid Palindrome
- 0128.Longest Consecutive Sequence
- 0129.Sum Root to Leaf Numbers
- 0137.Single Number II
- 0149.Max Points on a Line
- 0161.One Edit Distance
- 0164.Maximum Gap
- 0165.Compare Version Numbers
- 0167.Two Sum II - Input Array Is Sorted
- 0174.Dungeon Game
- 0187.Repeated DNA Sequences
- 0188.Best Time to Buy and Sell Stock IV
- 0189.Rotate Array
- 0200-0299
- 0200.Number of Islands
- 0201.Bitwise AND of Numbers Range
- 0202.Happy Number
- 0209.Minimum Size Subarray Sum
- 0212.Word Search II
- 0216.Combination Sum III
- 0217.Contains Duplicate
- 0220.Contains Duplicate III
- 0221.Maximal Square
- 0222.Count Complete Tree Nodes
- 0223.Rectangle Area
- 0233.Number of Digit One
- 0238.Product of Array Except Self
- 0239.Sliding Window Maximum
- 0240.Search a 2D Matrix II
- 0246.Strobogrammatic Number
- 0248.Strobogrammatic Number III
- 0252.Meeting Rooms
- 0264.Ugly Number II
- 0265.Paint House II
- 0267.Palindrome Permutation II
- 0274.H-Index
- 0276.Paint Fence
- 0289.Game of Life
- 0295.Find Median from Data Stream
- 0296.Best Meeting Point
- 0300-0399
- 0300.Longest Increasing Subsequence
- 0301.Remove Invalid Parentheses
- 0304.Range Sum Query 2D - Immutable
- 0307.Range Sum Query - Mutable
- 0308.Range Sum Query 2D - Mutable
- 0313.Super Ugly Number
- 0314.Binary Tree Vertical Order Traversal
- 0315.Count of Smaller Numbers After Self
- 0322.Coin Change
- 0326.Power of Three
- 0327.Count of Range Sum
- 0329.Longest Increasing Path in a Matrix
- 0330.Patching Array
- 0340.Longest Substring with At Most K Distinct Characters
- 0343.Integer Break
- 0347.Top K Frequent Elements
- 0357.Count Numbers with Unique Digits
- 0358.Rearrange String k Distance Apart
- 0367.Valid Perfect Square
- 0368.Largest Divisible Subset
- 0370.Range Addition
- 0371.Sum of Two Integers
- 0374.Guess Number Higher or Lower
- 0377.Combination Sum IV
- 0395.Longest Substring with At Least K Repeating Characters
- 0400-0499
- 0400.Nth Digit
- 0403.Frog Jump
- 0407.Trapping Rain Water II
- 0410.Split Array Largest Sum
- 0413.Arithmetic Slices
- 0435.Non-overlapping Intervals
- 0451.Sort Characters By Frequency
- 0452.Minimum Number of Arrows to Burst Balloons
- 0453.Minimum Moves to Equal Array Elements
- 0455.Assign Cookies
- 0456.132 Pattern
- 0462.Minimum Moves to Equal Array Elements II
- 0465.Optimal Account Balancing
- 0480.Sliding Window Median
- 0483.Smallest Good Base
- 0486.Predict the Winner
- 0493.Reverse Pairs
- 0498.Diagonal Traverse
- 0500-0599
- 0502.IPO
- 0504.Base 7
- 0514.Freedom Trail
- 0547.Number of Provinces
- 0552.Student Attendance Record II
- 0562.Longest Line of Consecutive One in Matrix
- 0566.Reshape the Matrix
- 0567.Permutation in String
- 0568.Maximum Vacation Days
- 0576.Out of Boundary Paths
- 0600-0699
- 0600.Non-negative Integers without Consecutive Ones
- 0611.Valid Triangle Number
- 0621.Task Scheduler
- 0625.Minimum Factorization
- 0628.Maximum Product of Three Numbers
- 0629.K Inverse Pairs Array
- 0632.Smallest Range Covering Elements from K Lists
- 0634.Find the Derangement of An Array
- 0640.Solve the Equation
- 0646.Maximum Length of Pair Chain
- 0650.2 Keys Keyboard
- 0651.4 Keys Keyboard
- 0654.Maximum Binary Tree
- 0655.Print Binary Tree
- 0656.Coin Path
- 0659.Split Array into Consecutive Subsequences
- 0664.Strange Printer
- 0665.Non-decreasing Array
- 0670.Maximum Swap
- 0673.Number of Longest Increasing Subsequence
- 0677.Map Sum Pairs
- 0683.K Empty Slots
- 0688.Knight Probability in Chessboard
- 0698.Partition to K Equal Sum Subsets
- 0700-0799
- 0712.Minimum ASCII Delete Sum for Two Strings
- 0716.Max Stack
- 0718.Maximum Length of Repeated Subarray
- 0733.Flood Fill
- 0738.Monotone Increasing Digits
- 0743.Network Delay Time
- 0746.Min Cost Climbing Stairs
- 0754.Reach a Number
- 0755.Pour Water
- 0762.Prime Number of Set Bits in Binary Representation
- 0763.Partition Labels
- 0766.Toeplitz Matrix
- 0767.Reorganize String
- 0774.Minimize Max Distance to Gas Station
- 0775.Global and Local Inversions
- 0777.Swap Adjacent in LR String
- 0779.K-th Symbol in Grammar
- 0782.Transform to Chessboard
- 0784.Letter Case Permutation
- 0788.Rotated Digits
- 0790.Domino and Tromino Tiling
- 0791.Custom Sort String
- 0792.Number of Matching Subsequences
- 0793.Preimage Size of Factorial Zeroes Function
- 0795.Number of Subarrays with Bounded Maximum
- 0800-0899
- 0801.Minimum Swaps To Make Sequences Increasing
- 0805.Split Array With Same Average
- 0808.Soup Servings
- 0809.Expressive Words
- 0813.Largest Sum of Averages
- 0815.Bus Routes
- 0818.Race Car
- 0823.Binary Trees With Factors
- 0827.Making A Large Island
- 0832.Flipping an Image
- 0836.Rectangle Overlap
- 0837.New 21 Game
- 0842.Split Array into Fibonacci Sequence
- 0845.Longest Mountain in Array
- 0846.Hand of Straights
- 0847.Shortest Path Visiting All Nodes
- 0849.Maximize Distance to Closest Person
- 0855.Exam Room
- 0857.Minimum Cost to Hire K Workers
- 0861.Score After Flipping Matrix
- 0862.Shortest Subarray with Sum at Least K
- 0864.Shortest Path to Get All Keys
- 0875.Koko Eating Bananas
- 0877.Stone Game
- 0878.Nth Magical Number
- 0879.Profitable Schemes
- 0881.Boats to Save People
- 0882.Reachable Nodes In Subdivided Graph
- 0886.Possible Bipartition
- 0887.Super Egg Drop
- 0891.Sum of Subsequence Widths
- 0894.All Possible Full Binary Trees
- 0895.Maximum Frequency Stack
- 0899.Orderly Queue
- 0900-0999
- 0902.Numbers At Most N Given Digit Set
- 0904.Fruit Into Baskets
- 0907.Sum of Subarray Minimums
- 0910.Smallest Range II
- 0912.Sort an Array
- 0914.X of a Kind in a Deck of Cards
- 0920.Number of Music Playlists
- 0921.Minimum Add to Make Parentheses Valid
- 0939.Minimum Area Rectangle
- 0940.Distinct Subsequences II
- 0943.Find the Shortest Superstring
- 0948.Bag of Tokens
- 0950.Reveal Cards In Increasing Order
- 0956.Tallest Billboard
- 0968.Binary Tree Cameras
- 0970.Powerful Integers
- 0973.K Closest Points to Origin
- 0974.Subarray Sums Divisible by K
- 0975.Odd Even Jump
- 0978.Longest Turbulent Subarray
- 0980.Unique Paths III
- 0981.Time Based Key-Value Store
- 0982.Triples with Bitwise AND Equal To Zero
- 0984.String Without AAA or BBB
- 0991.Broken Calculator
- 0996.Number of Squareful Arrays
- 0999.Available Captures for Rook
- 1000-1099
- 1000.Minimum Cost to Merge Stones
- 1005.Maximize Sum Of Array After K Negations
- 1010.Pairs of Songs With Total Durations Divisible by 60
- 1011.Capacity To Ship Packages Within D Days
- 1012.Numbers With Repeated Digits
- 1015.Smallest Integer Divisible by K
- 1016.Binary String With Substrings Representing 1 To N
- 1017.Convert to Base -2
- 1020.Number of Enclaves
- 1023.Camelcase Matching
- 1025.Divisor Game
- 1027.Longest Arithmetic Subsequence
- 1029.Two City Scheduling
- 1030.Matrix Cells in Distance Order
- 1033.Moving Stones Until Consecutive
- 1034.Coloring A Border
- 1035.Uncrossed Lines
- 1039.Minimum Score Triangulation of Polygon
- 1040.Moving Stones Until Consecutive II
- 1041.Robot Bounded In Circle
- 1043.Partition Array for Maximum Sum
- 1044.Longest Duplicate Substring
- 1046.Last Stone Weight
- 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
- 1060.Missing Element in Sorted Array
- 1066.Campus Bikes II
- 1067.Digit Count in Range
- 1072.Flip Columns For Maximum Number of Equal Rows
- 1073.Adding Two Negabinary Numbers
- 1074.Number of Submatrices That Sum to Target
- 1079.Letter Tile Possibilities
- 1092.Shortest Common Supersequence
- 1096.Brace Expansion II
- 1099.Two Sum Less Than K
- 1100-1199
- 1100.Find K-Length Substrings With No Repeated Characters
- 1101.The Earliest Moment When Everyone Become Friends
- 1102.Path With Maximum Minimum Value
- 1104.Path In Zigzag Labelled Binary Tree
- 1105.Filling Bookcase Shelves
- 1109.Corporate Flight Bookings
- 1121.Divide Array Into Increasing Sequences
- 1124.Longest Well-Performing Interval
- 1125.Smallest Sufficient Team
- 1130.Minimum Cost Tree From Leaf Values
- 1133.Largest Unique Number
- 1134.Armstrong Number
- 1135.Connecting Cities With Minimum Cost
- 1139.Largest 1-Bordered Square
- 1140.Stone Game II
- 1143.Longest Common Subsequence
- 1145.Binary Tree Coloring Game
- 1146.Snapshot Array
- 1150.Check If a Number Is Majority Element in a Sorted Array
- 1155.Number of Dice Rolls With Target Sum
- 1157.Online Majority Element In Subarray
- 1160.Find Words That Can Be Formed by Characters
- 1163.Last Substring in Lexicographical Order
- 1170.Compare Strings by Frequency of the Smallest Character
- 1172.Dinner Plate Stacks
- 1176.Diet Plan Performance
- 1177.Can Make Palindrome from Substring
- 1183.Maximum Number of Ones
- 1187.Make Array Strictly Increasing
- 1191.K-Concatenation Maximum Sum
- 1199.Minimum Time to Build Blocks
- 1200-1299
- 1208.Get Equal Substrings Within Budget
- 1213.Intersection of Three Sorted Arrays
- 1216.Valid Palindrome III
- 1223.Dice Roll Simulation
- 1227.Airplane Seat Assignment Probability
- 1229.Meeting Scheduler
- 1230.Toss Strange Coins
- 1233.Remove Sub-Folders from the Filesystem
- 1235.Maximum Profit in Job Scheduling
- 1237.Find Positive Integer Solution for a Given Equation
- 1243.Array Transformation
- 1244.Design A Leaderboard
- 1250.Check If It Is a Good Array
- 1254.Number of Closed Islands
- 1255.Maximum Score Words Formed by Letters
- 1262.Greatest Sum Divisible by Three
- 1263.Minimum Moves to Move a Box to Their Target Location
- 1266.Minimum Time Visiting All Points
- 1267.Count Servers that Communicate
- 1268.Search Suggestions System
- 1269.Number of Ways to Stay in the Same Place After Some Steps
- 1271.Hexspeak
- 1272.Remove Interval
- 1276.Number of Burgers with No Waste of Ingredients
- 1278.Palindrome Partitioning III
- 1289.Minimum Falling Path Sum II
- 1295.Find Numbers with Even Number of Digits
- 1296.Divide Array in Sets of K Consecutive Numbers
- 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
- 1312.Minimum Insertion Steps to Make a String Palindrome
- 1317.Convert Integer to the Sum of Two No-Zero Integers
- 1318.Minimum Flips to Make a OR b Equal to c
- 1320.Minimum Distance to Type a Word Using Two Fingers
- 1323.Maximum 69 Number
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1330.Reverse Subarray To Maximize Array Value
- 1331.Rank Transform of an Array
- 1333.Filter Restaurants by Vegan-Friendly, Price and 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
- 1348.Tweet Counts Per Frequency
- 1349.Maximum Students Taking Exam
- 1351.Count Negative Numbers in a Sorted Matrix
- 1353.Maximum Number of Events That Can Be Attended
- 1356.Sort Integers by The Number of 1 Bits
- 1359.Count All Valid Pickup and Delivery Options
- 1361.Validate Binary Tree Nodes
- 1365.How Many Numbers Are Smaller Than the Current Number
- 1366.Rank Teams by Votes
- 1373.Maximum Sum BST in Binary Tree
- 1383.Maximum Performance of a Team
- 1395.Count Number of Teams
- 1399.Count Largest Group
- 1400-1499
- 1406.Stone Game III
- 1409.Queries on a Permutation With Key
- 1419.Minimum Number of Frogs Croaking
- 1420.Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1424.Diagonal Traverse II
- 1430.Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree
- 1432.Max Difference You Can Get From Changing an Integer
- 1433.Check If a String Can Break Another String
- 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
- 1444.Number of Ways of Cutting a Pizza
- 1451.Rearrange Words in a Sentence
- 1452.People Whose List of Favorite Companies Is Not a Subset of Another List
- 1458.Max Dot Product of Two Subsequences
- 1460.Make Two Arrays Equal by Reversing Subarrays
- 1461.Check If a String Contains All Binary Codes of Size K
- 1463.Cherry Pickup II
- 1464.Maximum Product of Two Elements in an Array
- 1465.Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- 1473.Paint House III
- 1478.Allocate Mailboxes
- 1481.Least Number of Unique Integers after K Removals
- 1483.Kth Ancestor of a Tree Node
- 1488.Avoid Flood in The City
- 1494.Parallel Courses II
- 1498.Number of Subsequences That Satisfy the Given Sum Condition
- 1500-1599
- 1502.Can Make Arithmetic Progression From Sequence
- 1504.Count Submatrices With All Ones
- 1505.Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1508.Range Sum of Sorted Subarray Sums
- 1509.Minimum Difference Between Largest and Smallest Value in Three Moves
- 1510.Stone Game IV
- 1526.Minimum Number of Increments on Subarrays to Form a Target Array
- 1530.Number of Good Leaf Nodes Pairs
- 1534.Count Good Triplets
- 1540.Can Convert String in K Moves
- 1541.Minimum Insertions to Balance a Parentheses String
- 1542.Find Longest Awesome Substring
- 1547.Minimum Cost to Cut a Stick
- 1556.Thousand Separator
- 1563.Stone Game V
- 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
- 1573.Number of Ways to Split a String
- 1574.Shortest Subarray to be Removed to Make Array Sorted
- 1575.Count All Possible Routes
- 1577.Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1579.Remove Max Number of Edges to Keep Graph Fully Traversable
- 1580.Put Boxes Into the Warehouse II
- 1582.Special Positions in a Binary Matrix
- 1584.Min Cost to Connect All Points
- 1585.Check If String Is Transformable With Substring Sort Operations
- 1588.Sum of All Odd Length Subarrays
- 1589.Maximum Sum Obtained of Any Permutation
- 1590.Make Sum Divisible by P
- 1594.Maximum Non Negative Product in a Matrix
- 1600-1699
- 1601.Maximum Number of Achievable Transfer Requests
- 1604.Alert Using Same Key-Card Three or More Times in a One Hour Period
- 1605.Find Valid Matrix Given Row and Column Sums
- 1608.Special Array With X Elements Greater Than or Equal X
- 1615.Maximal Network Rank
- 1616.Split Two Strings to Make Palindrome
- 1617.Count Subtrees With Max Distance Between Cities
- 1618.Maximum Font to Fit a Sentence in a Screen
- 1619.Mean of Array After Removing Some Elements
- 1620.Coordinate With Maximum Network Quality
- 1621.Number of Sets of K Non-Overlapping Line Segments
- 1624.Largest Substring Between Two Equal Characters
- 1625.Lexicographically Smallest String After Applying Operations
- 1626.Best Team With No Conflicts
- 1630.Arithmetic Subarrays
- 1632.Rank Transform of a Matrix
- 1636.Sort Array by Increasing Frequency
- 1637.Widest Vertical Area Between Two Points Containing No Points
- 1638.Count Substrings That Differ by One Character
- 1639.Number of Ways to Form a Target String Given a Dictionary
- 1641.Count Sorted Vowel Strings
- 1642.Furthest Building You Can Reach
- 1643.Kth Smallest Instructions
- 1647.Minimum Deletions to Make Character Frequencies Unique
- 1648.Sell Diminishing-Valued Colored Balls
- 1649.Create Sorted Array through Instructions
- 1652.Defuse the Bomb
- 1653.Minimum Deletions to Make String Balanced
- 1654.Minimum Jumps to Reach Home
- 1655.Distribute Repeating Integers
- 1658.Minimum Operations to Reduce X to Zero
- 1665.Minimum Initial Energy to Finish Tasks
- 1671.Minimum Number of Removals to Make Mountain Array
- 1672.Richest Customer Wealth
- 1674.Minimum Moves to Make Array Complementary
- 1675.Minimize Deviation in Array
- 1679.Max Number of K-Sum Pairs
- 1682.Longest Palindromic Subsequence II
- 1684.Count the Number of Consistent Strings
- 1685.Sum of Absolute Differences in a Sorted Array
- 1686.Stone Game VI
- 1687.Delivering Boxes from Storage to Ports
- 1690.Stone Game VII
- 1691.Maximum Height by Stacking Cuboids
- 1692.Count Ways to Distribute Candies
- 1696.Jump Game VI
- 1697.Checking Existence of Edge Length Limited Paths
- 1700-1799
- 1703.Minimum Adjacent Swaps for K Consecutive Ones
- 1705.Maximum Number of Eaten Apples
- 1710.Maximum Units on a Truck
- 1711.Count Good Meals
- 1712.Ways to Split Array Into Three Subarrays
- 1713.Minimum Operations to Make a Subsequence
- 1727.Largest Submatrix With Rearrangements
- 1730.Shortest Path to Get Food
- 1733.Minimum Number of People to Teach
- 1735.Count Ways to Make Array With Product
- 1742.Maximum Number of Balls in a Box
- 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
- 1755.Closest Subsequence Sum
- 1756.Design Most Recently Used Queue
- 1758.Minimum Changes To Make Alternating Binary String
- 1759.Count Number of Homogenous Substrings
- 1760.Minimum Limit of Balls in a Bag
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1762.Buildings With an Ocean View
- 1763.Longest Nice Substring
- 1764.Form Array by Concatenating Subarrays of Another Array
- 1765.Map of Highest Peak
- 1770.Maximum Score from Performing Multiplication Operations
- 1771.Maximize Palindrome Length From Subsequences
- 1772.Sort Features by Popularity
- 1774.Closest Dessert Cost
- 1775.Equal Sum Arrays With Minimum Number of Operations
- 1780.Check if Number is a Sum of Powers of Three
- 1781.Sum of Beauty of All Substrings
- 1782.Count Pairs Of Nodes
- 1787.Make the XOR of All Segments Equal to Zero
- 1792.Maximum Average Pass Ratio
- 1793.Maximum Score of a Good Subarray
- 1796.Second Largest Digit in a String
- 1798.Maximum Number of Consecutive Values You Can Make
- 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
- 1808.Maximize Number of Nice Divisors
- 1813.Sentence Similarity III
- 1814.Count Nice Pairs in an Array
- 1815.Maximum Number of Groups Getting Fresh Donuts
- 1818.Minimum Absolute Sum Difference
- 1819.Number of Different Subsequences GCDs
- 1820.Maximum Number of Accepted Invitations
- 1825.Finding MK Average
- 1826.Faulty Sensor
- 1827.Minimum Operations to Make the Array Increasing
- 1828.Queries on Number of Points Inside a Circle
- 1829.Maximum XOR for Each Query
- 1830.Minimum Number of Operations to Make String Sorted
- 1833.Maximum Ice Cream Bars
- 1834.Single-Threaded CPU
- 1837.Sum of Digits in Base K
- 1838.Frequency of the Most Frequent Element
- 1840.Maximum Building Height
- 1845.Seat Reservation Manager
- 1855.Maximum Distance Between a Pair of Values
- 1856.Maximum Subarray Min-Product
- 1860.Incremental Memory Leak
- 1861.Rotating the Box
- 1866.Number of Ways to Rearrange Sticks With K Sticks Visible
- 1868.Product of Two Run-Length Encoded Arrays
- 1870.Minimum Speed to Arrive on Time
- 1891.Cutting Ribbons
- 1900-1999
- 1918.Kth Smallest Subarray Sum
- 1921.Eliminate Maximum Number of Monsters
- 1930.Unique Length-3 Palindromic Subsequences
- 1964.Find the Longest Valid Obstacle Course at Each Position
- 1967.Number of Strings That Appear as Substrings in Word
- 1971.Find if Path Exists in Graph
- 1975.Maximum Matrix Sum
- 1977.Number of Ways to Separate Numbers
- 1981.Minimize the Difference Between Target and Chosen Elements
- 1989.Maximum Number of People That Can Be Caught in Tag
- 1994.The Number of Good Subsets
- 1996.The Number of Weak Characters in the Game
- 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
- 2007.Find Original Array From Doubled Array
- 2008.Maximum Earnings From Taxi
- 2009.Minimum Number of Operations to Make Array Continuous
- 2015.Average Height of Buildings in Each Segment
- 2016.Maximum Difference Between Increasing Elements
- 2018.Check if Word Can Be Placed In Crossword
- 2021.Brightest Position on Street
- 2022.Convert 1D Array Into 2D Array
- 2023.Number of Pairs of Strings With Concatenation Equal to Target
- 2028.Find Missing Observations
- 2031.Count Subarrays With More Ones Than Zeros
- 2033.Minimum Operations to Make a Uni-Value Grid
- 2036.Maximum Alternating Subarray Sum
- 2037.Minimum Number of Moves to Seat Everyone
- 2061.Number of Spaces Cleaning Robot Cleaned
- 2063.Vowels of All Substrings
- 2064.Minimized Maximum of Products Distributed to Any Store
- 2067.Number of Equal Count Substrings
- 2071.Maximum Number of Tasks You Can Assign
- 2087.Minimum Cost Homecoming of a Robot in a Grid
- 2088.Count Fertile Pyramids in a Land
- 2089.Find Target Indices After Sorting Array
- 2090.K Radius Subarray Averages
- 2098.Subsequence of Size K With the Largest Even Sum
- 2100-2199
- 2104.Sum of Subarray Ranges
- 2106.Maximum Fruits Harvested After at Most K Steps
- 2110.Number of Smooth Descent Periods of a Stock
- 2113.Elements in Array After Removing and Replacing Elements
- 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
- 2179.Count Good Triplets in an Array
- 2180.Count Integers With Even Digit Sum
- 2185.Counting Words With a Given Prefix
- 2200-2299
- 2209.Minimum White Tiles After Covering With Carpets
- 2240.Number of Ways to Buy Pens and Pencils
- 2245.Maximum Trailing Zeros in a Cornered Path
- 2249.Count Lattice Points Inside a Circle
- 2257.Count Unguarded Cells in the Grid
- 2259.Remove Digit From Number to Maximize Result
- 2261.K Divisible Elements Subarrays
- 2263.Make Array Non-decreasing or Non-increasing
- 2271.Maximum White Tiles Covered by a Carpet
- 2272.Substring With Largest Variance
- 2285.Maximum Total Importance of Roads
- 2286.Booking Concert Tickets in Groups
- 2290.Minimum Obstacle Removal to Reach Corner
- 2291.Maximum Profit From Trading Stocks
- 2294.Partition Array Such That Maximum Difference Is K
- 2300-2399
- 2300.Successful Pairs of Spells and Potions
- 2301.Match Substring After Replacement
- 2302.Count Subarrays With Score Less Than K
- 2304.Minimum Path Cost in a Grid
- 2311.Longest Binary Subsequence Less Than or Equal to K
- 2316.Count Unreachable Pairs of Nodes in an Undirected Graph
- 2328.Number of Increasing Paths in a Grid
- 2335.Minimum Amount of Time to Fill Cups
- 2337.Move Pieces to Obtain a String
- 2338.Count the Number of Ideal Arrays
- 2341.Maximum Number of Pairs in Array
- 2342.Max Sum of a Pair With Equal Sum of Digits
- 2343.Query Kth Smallest Trimmed Number
- 2344.Minimum Deletions to Make Array Divisible
- 2345.Finding the Number of Visible Mountains
- 2355.Maximum Number of Books You Can Take
- 2358.Maximum Number of Groups Entering a Competition
- 2359.Find Closest Node to Given Two Nodes
- 2364.Count Number of Bad Pairs
- 2365.Task Scheduler II
- 2366.Minimum Replacements to Sort the Array
- 2369.Check if There is a Valid Partition For The Array
- 2371.Minimize Maximum Value in a Grid
- 2373.Largest Local Values in a Matrix
- 2376.Count Special Integers
- 2383.Minimum Hours of Training to Win a Competition
- 2386.Find the K-Sum of an Array
- 2387.Median of a Row Wise Sorted Matrix
- 2389.Longest Subsequence With Limited Sum
- 2393.Count Strictly Increasing Subarrays
- 2396.Strictly Palindromic Number
- 2397.Maximum Rows Covered by Columns
- 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
- 2410.Maximum Matching of Players With Trainers
- 2411.Smallest Subarrays With Maximum Bitwise OR
- 2413.Smallest Even Multiple
- 2416.Sum of Prefix Scores of Strings
- 2417.Closest Fair Integer
- 2418.Sort the People
- 2420.Find All Good Indices
- 2421.Number of Good Paths
- 2422.Merge Operations to Turn Array Into a Palindrome
- 2426.Number of Pairs Satisfying Inequality
- 2427.Number of Common Factors
- 2428.Maximum Sum of an Hourglass
- 2429.Minimize XOR
- 2430.Maximum Deletions on a String
- 2431.Maximize Total Tastiness of Purchased Fruits
- 2435.Paths in Matrix Whose Sum Is Divisible by K
- 2436.Minimum Split Into Subarrays With GCD Greater Than One
- 2437.Number of Valid Clock Times
- 2438.Range Product Queries of Powers
- 2439.Minimize Maximum of Array
- 2440.Create Components With Same Value
- 2441.Largest Positive Integer That Exists With Its Negative
- 2443.Sum of Number and Its Reverse
- 2444.Count Subarrays With Fixed Bounds
- 2445.Number of Nodes With Value One
- 2447.Number of Subarrays With GCD Equal to K
- 2448.Minimum Cost to Make Array Equal
- 2449.Minimum Number of Operations to Make Arrays Similar
- 2451.Odd String Difference
- 2452.Words Within Two Edits of Dictionary
- 2454.Next Greater Element IV
- 2457.Minimum Addition to Make Integer Beautiful
- 2462.Total Cost to Hire K Workers
- 2463.Minimum Total Distance Traveled
- 2464.Minimum Subarrays in a Valid Split
- 2465.Number of Distinct Averages
- 2466.Count Ways To Build Good Strings
- 2468.Split Message Based on Limit
- 2471.Minimum Number of Operations to Sort a Binary Tree by Level
- 2472.Maximum Number of Non-overlapping Palindrome Substrings
- 2473.Minimum Cost to Buy Apples
- 2475.Number of Unequal Triplets in Array
- 2476.Closest Nodes Queries in a Binary Search Tree
- 2478.Number of Beautiful Partitions
- 2479.Maximum XOR of Two Non-Overlapping Subtrees
- 2482.Difference Between Ones and Zeros in Row and Column
- 2484.Count Palindromic Subsequences
- 2488.Count Subarrays With Median K
- 2489.Number of Substrings With Fixed Ratio
- 2491.Divide Players Into Teams of Equal Skill
- 2493.Divide Nodes Into the Maximum Number of Groups
- 2497.Maximum Star Sum of a Graph
- 2500-2599
- 2500.Delete Greatest Value in Each Row
- 2501.Longest Square Streak in an Array
- 2502.Design Memory Allocator
- 2503.Maximum Number of Points From Grid Queries
- 2505.Bitwise OR of All Subsequence Sums
- 2509.Cycle Length Queries in a Tree
- 2510.Check if There is a Path With Equal Number of 0's And 1's
- 2517.Maximum Tastiness of Candy Basket
- 2518.Number of Great Partitions
- 2519.Count the Number of K-Big Indices
- 2520.Count the Digits That Divide a Number
- 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
- 2530.Maximal Score After Applying K Operations
- 2532.Time to Cross a Bridge
- 2533.Number of Good Binary Strings
- 2539.Count the Number of Good Subsequences
- 2542.Maximum Subsequence Score
- 2543.Check if Point Is Reachable
- 2544.Alternating Digit Sum
- 2545.Sort the Students by Their Kth Score
- 2547.Minimum Cost to Split an Array
- 2548.Maximum Price to Fill a Bag
- 2550.Count Collisions of Monkeys on a Polygon
- 2551.Put Marbles in Bags
- 2552.Count Increasing Quadruplets
- 2553.Separate the Digits in an Array
- 2554.Maximum Number of Integers to Choose From a Range I
- 2555.Maximize Win From Two Segments
- 2556.Disconnect Path in a Binary Matrix by at Most One Flip
- 2557.Maximum Number of Integers to Choose From a Range II
- 2558.Take Gifts From the Richest Pile
- 2559.Count Vowel Strings in Ranges
- 2560.House Robber IV
- 2561.Rearranging Fruits
- 2562.Find the Array Concatenation Value
- 2563.Count the Number of Fair Pairs
- 2564.Substring XOR Queries
- 2565.Subsequence With the Minimum Score
- 2566.Maximum Difference by Remapping a Digit
- 2567.Minimum Score by Changing Two Elements
- 2568.Minimum Impossible OR
- 2569.Handling Sum Queries After Update
- 2571.Minimum Operations to Reduce an Integer to 0
- 2572.Count the Number of Square-Free Subsets
- 2573.Find the String with LCP
- 2576.Find the Maximum Number of Marked Indices
- 2577.Minimum Time to Visit a Cell In a Grid
- 2578.Split With Minimum Sum
- 2579.Count Total Number of Colored Cells
- 2580.Count Ways to Group Overlapping Ranges
- 2583.Kth Largest Sum in a Binary Tree
- 2585.Number of Ways to Earn Points
- 2587.Rearrange Array to Maximize Prefix Score
- 2588.Count the Number of Beautiful Subarrays
- 2589.Minimum Time to Complete All Tasks
- 2590.Design a Todo List
- 2591.Distribute Money to Maximum Children
- 2592.Maximize Greatness of an Array
- 2593.Find Score of an Array After Marking All Elements
- 2594.Minimum Time to Repair Cars
- 2595.Number of Even and Odd Bits
- 2598.Smallest Missing Non-negative Integer After Operations
- 2599.Make the Prefix Sum Non-negative
- 2600-2699
- 2601.Prime Subtraction Operation
- 2602.Minimum Operations to Make All Array Elements Equal
- 2604.Minimum Time to Eat All Grains
- 2605.Form Smallest Number From Two Digit Arrays
- 2607.Make K-Subarray Sums Equal
- 2608.Shortest Cycle in a Graph
- 2609.Find the Longest Balanced Substring of a Binary String
- 2611.Mice and Cheese
- 2612.Minimum Reverse Operations
- 2613.Beautiful Pairs
- 2614.Prime In Diagonal
- 2615.Sum of Distances
- 2616.Minimize the Maximum Difference of Pairs
- 2617.Minimum Number of Visited Cells in a Grid
- 2638.Count the Number of K-Free Subsets
- 2639.Find the Width of Columns of a Grid
- 2642.Design Graph With Shortest Path Calculator
- 2643.Row With Maximum Ones
- 2644.Find the Maximum Divisibility Score
- 2645.Minimum Additions to Make Valid String
- 2646.Minimize the Total Price of the Trips
- 2651.Calculate Delayed Arrival Time
- 2653.Sliding Subarray Beauty
- 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
- 2658.Maximum Number of Fish in a Grid
- 2659.Make Array Empty
- 2661.First Completely Painted Row or Column
- 2662.Minimum Cost of a Path With Special Roads
- 2664.The Knight’s Tour
- 2679.Sum in a Matrix
- 2680.Maximum OR
- 2681.Power of Heroes
- 2682.Find the Losers of the Circular Game
- 2684.Maximum Number of Moves 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.
814 files changed
+134401
-1415
lines changedLines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
| 12 | + | |
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
| |
| |||
23 | 25 |
| |
24 | 26 |
| |
25 | 27 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
| |||
47 | 49 |
| |
48 | 50 |
| |
49 | 51 |
| |
50 |
| - | |
| 52 | + | |
51 | 53 |
| |
52 | 54 |
| |
| 55 | + | |
| 56 | + | |
53 | 57 |
| |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 |
| |
60 | 65 |
| |
61 | 66 |
| |
|
0 commit comments