Medium LeetCode Problems: Page 5 of 8

Problems 801 to 1,000 of the 1,579 Medium-rated problems in this library, continuing the list on the Medium hub.

ProblemsPage 5 of 8
Medium problems, page 5
No.Problem
1915Number of Wonderful Substrings
1921Eliminate Maximum Number of Monsters
1922Count Good Numbers
1926Nearest Exit from Entrance in Maze
1927Sum Game
1930Unique Length-3 Palindromic Subsequences
1936Add Minimum Number of Rungs
1937Maximum Number of Points with Cost
1942The Number of the Smallest Unoccupied Chair
1943Describe the Painting
1946Largest Number After Mutating Substring
1947Maximum Compatibility Score Sum
1953Maximum Number of Weeks for Which You Can Work
1954Minimum Garden Perimeter to Collect Enough Apples
1958Check if Move is Legal
1959Minimum Total Space Wasted With K Resizing Operations
1962Remove Stones to Minimize the Total
1963Minimum Number of Swaps to Make the String Balanced
1968Array With Elements Not Equal to Average of Neighbors
1969Minimum Non-Zero Product of the Array Elements
1975Maximum Matrix Sum
1976Number of Ways to Arrive at Destination
1980Find Unique Binary String
1981Minimize the Difference Between Target and Chosen Elements
1985Find the Kth Largest Integer in the Array
1986Minimum Number of Work Sessions to Finish the Tasks
1992Find All Groups of Farmland
1993Operations on Tree
1996The Number of Weak Characters in the Game
1997First Day Where You Have Been in All the Rooms
2001Number of Pairs of Interchangeable Rectangles
2002Maximum Product of the Length of Two Palindromic Subsequences
2007Find Original Array From Doubled Array
2008Maximum Earnings From Taxi
2012Sum of Beauty in the Array
2013Detect Squares
2017Grid Game
2018Check if Word Can Be Placed In Crossword
2023Number of Pairs of Strings With Concatenation Equal to Target
2024Maximize the Confusion of an Exam
2028Find Missing Observations
2029Stone Game IX
2033Minimum Operations to Make a Uni-Value Grid
2034Stock Price Fluctuation
2038Remove Colored Pieces if Both Neighbors are the Same Color
2039The Time When the Network Becomes Idle
2043Simple Bank System
2044Count Number of Maximum Bitwise-OR Subsets
2048Next Greater Numerically Balanced Number
2049Count Nodes With the Highest Score
2054Two Best Non-Overlapping Events
2055Plates Between Candles
2058Find the Minimum and Maximum Number of Nodes Between Critical Points
2059Minimum Operations to Convert Number
2063Vowels of All Substrings
2064Minimized Maximum of Products Distributed to Any Store
2070Most Beautiful Item for Each Query
2074Reverse Nodes in Even Length Groups
2075Decode the Slanted Ciphertext
2079Watering Plants
2080Range Frequency Queries
2086Minimum Number of Food Buckets to Feed the Hamsters
2087Minimum Cost Homecoming of a Robot in a Grid
2090K Radius Subarray Averages
2091Removing Minimum and Maximum From Array
2095Delete the Middle Node of a Linked List
2096Step-By-Step Directions From a Binary Tree Node to Another
2100Find Good Days to Rob the Bank
2101Detonate the Maximum Bombs
2104Sum of Subarray Ranges
2105Watering Plants II
2109Adding Spaces to a String
2110Number of Smooth Descent Periods of a Stock
2115Find All Possible Recipes from Given Supplies
2116Check if a Parentheses String Can Be Valid
2120Execution of All Suffix Instructions Staying in a Grid
2121Intervals Between Identical Elements
2125Number of Laser Beams in a Bank
2126Destroying Asteroids
2130Maximum Twin Sum of a Linked List
2131Longest Palindrome by Concatenating Two Letter Words
2134Minimum Swaps to Group All 1's Together II
2135Count Words Obtained After Adding a Letter
2139Minimum Moves to Reach Target Score
2140Solving Questions With Brainpower
2145Count the Hidden Sequences
2146K Highest Ranked Items Within a Price Range
2149Rearrange Array Elements by Sign
2150Find All Lonely Numbers in the Array
2155All Divisions With the Highest Score of a Binary Array
2161Partition Array According to Given Pivot
2162Minimum Cost to Set Cooking Time
2165Smallest Value of the Rearranged Number
2166Design Bitset
2170Minimum Operations to Make the Array Alternating
2171Removing Minimum Number of Magic Beans
2177Find Three Consecutive Integers That Sum to a Given Number
2178Maximum Split of Positive Even Integers
2181Merge Nodes in Between Zeros
2182Construct String With Repeat Limit
2186Minimum Number of Steps to Make Two Strings Anagram II
2187Minimum Time to Complete Trips
2191Sort the Jumbled Numbers
2192All Ancestors of a Node in a Directed Acyclic Graph
2195Append K Integers With Minimal Sum
2196Create Binary Tree From Descriptions
2201Count Artifacts That Can Be Extracted
2202Maximize the Topmost Element After K Moves
2207Maximize Number of Subsequences in a String
2208Minimum Operations to Halve Array Sum
2211Count Collisions on a Road
2212Maximum Points in an Archery Competition
2216Minimum Deletions to Make Array Beautiful
2217Find Palindrome With Fixed Length
2221Find Triangular Sum of an Array
2222Number of Ways to Select Buildings
2225Find Players With Zero or One Losses
2226Maximum Candies Allocated to K Children
2232Minimize Result by Adding Parentheses to Expression
2233Maximum Product After K Increments
2240Number of Ways to Buy Pens and Pencils
2241Design an ATM Machine
2244Minimum Rounds to Complete All Tasks
2245Maximum Trailing Zeros in a Cornered Path
2249Count Lattice Points Inside a Circle
2250Count Number of Rectangles Containing Each Point
2256Minimum Average Difference
2257Count Unguarded Cells in the Grid
2260Minimum Consecutive Cards to Pick Up
2261K Divisible Elements Subarrays
2265Count Nodes Equal to Average of Subtree
2266Count Number of Texts
2270Number of Ways to Split Array
2271Maximum White Tiles Covered by a Carpet
2274Maximum Consecutive Floors Without Special Floors
2275Largest Combination With Bitwise AND Greater Than Zero
2279Maximum Bags With Full Capacity of Rocks
2280Minimum Lines to Represent a Line Chart
2284Sender With Largest Word Count
2285Maximum Total Importance of Roads
2288Apply Discount to Prices
2289Steps to Make Array Non-decreasing
2294Partition Array Such That Maximum Difference Is K
2295Replace Elements in an Array
2300Successful Pairs of Spells and Potions
2304Minimum Path Cost in a Grid
2305Fair Distribution of Cookies
2310Sum of Numbers With Units Digit K
2311Longest Binary Subsequence Less Than or Equal to K
2316Count Unreachable Pairs of Nodes in an Undirected Graph
2317Maximum XOR After Operations
2320Count Number of Ways to Place Houses
2326Spiral Matrix IV
2327Number of People Aware of a Secret
2332The Latest Time to Catch a Bus
2333Minimum Sum of Squared Difference
2336Smallest Number in Infinite Set
2337Move Pieces to Obtain a String
2342Max Sum of a Pair With Equal Sum of Digits
2343Query Kth Smallest Trimmed Number
2348Number of Zero-Filled Subarrays
2349Design a Number Container System
2352Equal Row and Column Pairs
2353Design a Food Rating System
2358Maximum Number of Groups Entering a Competition
2359Find Closest Node to Given Two Nodes
2364Count Number of Bad Pairs
2365Task Scheduler II
2368Reachable Nodes With Restrictions
2369Check if There is a Valid Partition For The Array
2370Longest Ideal Subsequence
2374Node With Highest Edge Score
2375Construct Smallest Number From DI String
2380Time Needed to Rearrange a Binary String
2381Shifting Letters II
2384Largest Palindromic Number
2385Amount of Time for Binary Tree to Be Infected
2390Removing Stars From a String
2391Minimum Amount of Time to Collect Garbage
2396Strictly Palindromic Number
2397Maximum Rows Covered by Columns
2400Number of Ways to Reach a Position After Exactly k Steps
2401Longest Nice Subarray
2405Optimal Partition of String
2406Divide Intervals Into Minimum Number of Groups
2410Maximum Matching of Players With Trainers
2411Smallest Subarrays With Maximum Bitwise OR
2414Length of the Longest Alphabetical Continuous Substring
2415Reverse Odd Levels of Binary Tree
2419Longest Subarray With Maximum Bitwise AND
2420Find All Good Indices
2424Longest Uploaded Prefix
2425Bitwise XOR of All Pairings
2428Maximum Sum of an Hourglass
2429Minimize XOR
2433Find The Original Array of Prefix Xor
2434Using a Robot to Print the Lexicographically Smallest String
2438Range Product Queries of Powers
2439Minimize Maximum of Array
2442Count Number of Distinct Integers After Reverse Operations

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