Hard LeetCode Problems: Page 2 of 4

Problems 201 to 400 of the 661 Hard-rated problems in this library, continuing the list on the Hard hub.

ProblemsPage 2 of 4
Hard problems, page 2
No.Problem
1293Shortest Path in a Grid with Obstacles Elimination
1298Maximum Candies You Can Get from Boxes
1301Number of Paths with Max Score
1307Verbal Arithmetic Puzzle
1312Minimum Insertion Steps to Make a String Palindrome
1316Distinct Echo Substrings
1320Minimum Distance to Type a Word Using Two Fingers
1326Minimum Number of Taps to Open to Water a Garden
1330Reverse Subarray To Maximize Array Value
1335Minimum Difficulty of a Job Schedule
1340Jump Game V
1345Jump Game IV
1349Maximum Students Taking Exam
1354Construct Target Array With Multiple Sums
1359Count All Valid Pickup and Delivery Options
1363Largest Multiple of Three
1368Minimum Cost to Make at Least One Valid Path in a Grid
1373Maximum Sum BST in Binary Tree
1377Frog Position After T Seconds
1383Maximum Performance of a Team
1388Pizza With 3n Slices
1392Longest Happy Prefix
1402Reducing Dishes
1406Stone Game III
1411Number of Ways to Paint N × 3 Grid
1420Build Array Where You Can Find The Maximum Exactly K Comparisons
1425Constrained Subsequence Sum
1434Number of Ways to Wear Different Hats to Each Other
1439Find the Kth Smallest Sum of a Matrix With Sorted Rows
1444Number of Ways of Cutting a Pizza
1449Form Largest Integer With Digits That Add up to Target
1453Maximum Number of Darts Inside of a Circular Dartboard
1458Max Dot Product of Two Subsequences
1463Cherry Pickup II
1467Probability of a Two Boxes Having The Same Number of Distinct Balls
1473Paint House III
1478Allocate Mailboxes
1483Kth Ancestor of a Tree Node
1489Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
1494Parallel Courses II
1499Max Value of Equation
1505Minimum Possible Integer After at Most K Adjacent Swaps On Digits
1510Stone Game IV
1515Best Position for a Service Centre
1521Find a Value of a Mysterious Function Closest to Target
1526Minimum Number of Increments on Subarrays to Form a Target Array
1531String Compression II
1537Get the Maximum Score
1542Find Longest Awesome Substring
1547Minimum Cost to Cut a Stick
1553Minimum Number of Days to Eat N Oranges
1563Stone Game V
1568Minimum Number of Days to Disconnect Island
1569Number of Ways to Reorder Array to Get Same BST
1575Count All Possible Routes
1579Remove Max Number of Edges to Keep Graph Fully Traversable
1585Check If String Is Transformable With Substring Sort Operations
1595Minimum Cost to Connect Two Groups of Points
1601Maximum Number of Achievable Transfer Requests
1606Find Servers That Handled Most Number of Requests
1610Maximum Number of Visible Points
1611Minimum One Bit Operations to Make Integers Zero
1617Count Subtrees With Max Distance Between Cities
1622Fancy Sequence
1627Graph Connectivity With Threshold
1632Rank Transform of a Matrix
1639Number of Ways to Form a Target String Given a Dictionary
1643Kth Smallest Instructions
1649Create Sorted Array through Instructions
1655Distribute Repeating Integers
1659Maximize Grid Happiness
1665Minimum Initial Energy to Finish Tasks
1671Minimum Number of Removals to Make Mountain Array
1675Minimize Deviation in Array
1681Minimum Incompatibility
1687Delivering Boxes from Storage to Ports
1691Maximum Height by Stacking Cuboids
1697Checking Existence of Edge Length Limited Paths
1703Minimum Adjacent Swaps for K Consecutive Ones
1707Maximum XOR With an Element From Array
1713Minimum Operations to Make a Subsequence
1719Number Of Ways To Reconstruct A Tree
1723Find Minimum Time to Finish All Jobs
1728Cat and Mouse II
1735Count Ways to Make Array With Product
1739Building Boxes
1745Palindrome Partitioning IV
1751Maximum Number of Events That Can Be Attended II
1755Closest Subsequence Sum
1761Minimum Degree of a Connected Trio in a Graph
1766Tree of Coprimes
1770Maximum Score from Performing Multiplication Operations
1771Maximize Palindrome Length From Subsequences
1776Car Fleet II
1782Count Pairs Of Nodes
1787Make the XOR of All Segments Equal to Zero
1793Maximum Score of a Good Subarray
1799Maximize Score After N Operations
1803Count Pairs With XOR in a Range
1808Maximize Number of Nice Divisors
1815Maximum Number of Groups Getting Fresh Donuts
1819Number of Different Subsequences GCDs
1825Finding MK Average
1830Minimum Number of Operations to Make String Sorted
1835Find XOR Sum of All Pairs Bitwise AND
1840Maximum Building Height
1847Closest Room
1851Minimum Interval to Include Each Query
1857Largest Color Value in a Directed Graph
1862Sum of Floored Pairs
1866Number of Ways to Rearrange Sticks With K Sticks Visible
1872Stone Game VIII
1879Minimum XOR Sum of Two Arrays
1883Minimum Skips to Arrive at Meeting On Time
1889Minimum Space Wasted From Packaging
1900The Earliest and Latest Rounds Where Players Compete
1912Design Movie Rental System
1916Count Ways to Build Rooms in an Ant Colony
1923Longest Common Subpath
1928Minimum Cost to Reach Destination in Time
1931Painting a Grid With Three Different Colors
1944Number of Visible People in a Queue
1948Delete Duplicate Folders in System
1955Count Number of Special Subsequences
1960Maximum Product of the Length of Two Palindromic Substrings
1964Find the Longest Valid Obstacle Course at Each Position
1970Last Day Where You Can Still Cross
1977Number of Ways to Separate Numbers
1982Find Array Given Subset Sums
1987Number of Unique Good Subsequences
1994The Number of Good Subsets
1998GCD Sort of an Array
2003Smallest Missing Genetic Value in Each Subtree
2009Minimum Number of Operations to Make Array Continuous
2014Longest Subsequence Repeated k Times
2019The Score of Students Solving Math Expression
2025Maximum Number of Ways to Partition an Array
2035Partition Array Into Two Arrays to Minimize Sum Difference
2040Kth Smallest Product of Two Sorted Arrays
2045Second Minimum Time to Reach Destination
2050Parallel Courses III
2056Number of Valid Move Combinations On Chessboard
2060Check if an Original String Exists Given Two Encoded Strings
2065Maximum Path Quality of a Graph
2071Maximum Number of Tasks You Can Assign
2076Process Restricted Friend Requests
2081Sum of k-Mirror Numbers
2088Count Fertile Pyramids in a Land
2092Find All People With Secret
2102Sequentially Ordinal Rank Tracker
2106Maximum Fruits Harvested After at Most K Steps
2111Minimum Operations to Make the Array K-Increasing
2117Abbreviating the Product of a Range
2122Recover the Original Array
2127Maximum Employees to Be Invited to a Meeting
2132Stamping the Grid
2136Earliest Possible Day of Full Bloom
2141Maximum Running Time of N Computers
2147Number of Ways to Divide a Long Corridor
2151Maximum Good People Based on Statements
2156Find Substring With Given Hash Value
2157Groups of Strings
2163Minimum Difference in Sums After Removal of Elements
2167Minimum Time to Remove All Cars Containing Illegal Goods
2172Maximum AND Sum of Array
2179Count Good Triplets in an Array
2188Minimum Time to Finish the Race
2193Minimum Number of Moves to Make Palindrome
2197Replace Non-Coprime Numbers in Array
2203Minimum Weighted Subgraph With the Required Paths
2209Minimum White Tiles After Covering With Carpets
2213Longest Substring of One Repeating Character
2218Maximum Value of K Coins From Piles
2227Encrypt and Decrypt Strings
2234Maximum Total Beauty of the Gardens
2242Maximum Score of a Node Sequence
2246Longest Path With Different Adjacent Characters
2251Number of Flowers in Full Bloom
2258Escape the Spreading Fire
2262Total Appeal of A String
2267Check if There Is a Valid Parentheses String Path
2272Substring With Largest Variance
2276Count Integers in Intervals
2281Sum of Total Strength of Wizards
2286Booking Concert Tickets in Groups
2290Minimum Obstacle Removal to Reach Corner
2296Design a Text Editor
2301Match Substring After Replacement
2302Count Subarrays With Score Less Than K
2306Naming a Company
2312Selling Pieces of Wood
2318Number of Distinct Roll Sequences
2321Maximum Score Of Spliced Array
2322Minimum Score After Removals on a Tree
2328Number of Increasing Paths in a Grid
2334Subarray With Elements Greater Than Varying Threshold
2338Count the Number of Ideal Arrays
2344Minimum Deletions to Make Array Divisible
2350Shortest Impossible Sequence of Rolls
2354Number of Excellent Pairs

Problems with a complete Python solution are listed first, then by ascending problem number. Or go by technique instead: all LeetCode patterns.