Medium LeetCode Problems: Page 4 of 8

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

ProblemsPage 4 of 8
Medium problems, page 4
No.Problem
1382Balance a Binary Search Tree
1386Cinema Seat Allocation
1387Sort Integers by The Power Value
1390Four Divisors
1391Check if There is a Valid Path in a Grid
1395Count Number of Teams
1396Design Underground System
1400Construct K Palindrome Strings
1401Circle and Rectangle Overlapping
1404Number of Steps to Reduce a Number in Binary Representation to One
1405Longest Happy String
1409Queries on a Permutation With Key
1410HTML Entity Parser
1414Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
1415The k-th Lexicographical String of All Happy Strings of Length n
1418Display Table of Food Orders in a Restaurant
1419Minimum Number of Frogs Croaking
1423Maximum Points You Can Obtain from Cards
1424Diagonal Traverse II
1432Max Difference You Can Get From Changing an Integer
1433Check If a String Can Break Another String
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1441Build an Array With Stack Operations
1442Count Triplets That Can Form Two Arrays of Equal XOR
1443Minimum Time to Collect All Apples in a Tree
1447Simplified Fractions
1448Count Good Nodes in Binary Tree
1451Rearrange Words in a Sentence
1452People Whose List of Favorite Companies Is Not a Subset of Another List
1456Maximum Number of Vowels in a Substring of Given Length
1457Pseudo-Palindromic Paths in a Binary Tree
1461Check If a String Contains All Binary Codes of Size K
1462Course Schedule IV
1465Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1466Reorder Routes to Make All Paths Lead to the City Zero
1471The k Strongest Values in an Array
1472Design Browser History
1476Subrectangle Queries
1477Find Two Non-overlapping Sub-arrays Each With Target Sum
1481Least Number of Unique Integers after K Removals
1482Minimum Number of Days to Make m Bouquets
1487Making File Names Unique
1488Avoid Flood in The City
1492The kth Factor of n
1493Longest Subarray of 1's After Deleting One Element
1497Check If Array Pairs Are Divisible by k
1498Number of Subsequences That Satisfy the Given Sum Condition
1503Last Moment Before All Ants Fall Out of a Plank
1504Count Submatrices With All Ones
1508Range Sum of Sorted Subarray Sums
1509Minimum Difference Between Largest and Smallest Value in Three Moves
1513Number of Substrings With Only 1s
1514Path with Maximum Probability
1519Number of Nodes in the Sub-Tree With the Same Label
1524Number of Sub-arrays With Odd Sum
1525Number of Good Ways to Split a String
1529Minimum Suffix Flips
1530Number of Good Leaf Nodes Pairs
1535Find the Winner of an Array Game
1536Minimum Swaps to Arrange a Binary Grid
1540Can Convert String in K Moves
1541Minimum Insertions to Balance a Parentheses String
1545Find Kth Bit in Nth Binary String
1546Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
1551Minimum Operations to Make Array Equal
1552Magnetic Force Between Two Balls
1557Minimum Number of Vertices to Reach All Nodes
1558Minimum Numbers of Function Calls to Make Target Array
1559Detect Cycles in 2D Grid
1561Maximum Number of Coins You Can Get
1562Find Latest Group of Size M
1567Maximum Length of Subarray With Positive Product
1573Number of Ways to Split a String
1574Shortest Subarray to be Removed to Make Array Sorted
1577Number of Ways Where Square of Number Is Equal to Product of Two Numbers
1578Minimum Time to Make Rope Colorful
1583Count Unhappy Friends
1584Min Cost to Connect All Points
1589Maximum Sum Obtained of Any Permutation
1590Make Sum Divisible by P
1593Split a String Into the Max Number of Unique Substrings
1594Maximum Non Negative Product in a Matrix
1599Maximum Profit of Operating a Centennial Wheel
1600Throne Inheritance
1604Alert Using Same Key-Card Three or More Times in a One Hour Period
1605Find Valid Matrix Given Row and Column Sums
1609Even Odd Tree
1615Maximal Network Rank
1616Split Two Strings to Make Palindrome
1620Coordinate With Maximum Network Quality
1621Number of Sets of K Non-Overlapping Line Segments
1625Lexicographically Smallest String After Applying Operations
1626Best Team With No Conflicts
1630Arithmetic Subarrays
1631Path With Minimum Effort
1638Count Substrings That Differ by One Character
1641Count Sorted Vowel Strings
1642Furthest Building You Can Reach
1647Minimum Deletions to Make Character Frequencies Unique
1648Sell Diminishing-Valued Colored Balls
1653Minimum Deletions to Make String Balanced
1654Minimum Jumps to Reach Home
1657Determine if Two Strings Are Close
1658Minimum Operations to Reduce X to Zero
1663Smallest String With A Given Numeric Value
1664Ways to Make a Fair Array
1669Merge In Between Linked Lists
1670Design Front Middle Back Queue
1673Find the Most Competitive Subsequence
1674Minimum Moves to Make Array Complementary
1679Max Number of K-Sum Pairs
1680Concatenation of Consecutive Binary Numbers
1685Sum of Absolute Differences in a Sorted Array
1686Stone Game VI
1689Partitioning Into Minimum Number Of Deci-Binary Numbers
1690Stone Game VII
1695Maximum Erasure Value
1696Jump Game VI
1701Average Waiting Time
1702Maximum Binary String After Change
1705Maximum Number of Eaten Apples
1706Where Will the Ball Fall
1711Count Good Meals
1712Ways to Split Array Into Three Subarrays
1717Maximum Score From Removing Substrings
1718Construct the Lexicographically Largest Valid Sequence
1721Swapping Nodes in a Linked List
1722Minimize Hamming Distance After Swap Operations
1726Tuple with Same Product
1727Largest Submatrix With Rearrangements
1733Minimum Number of People to Teach
1734Decode XORed Permutation
1737Change Minimum Characters to Satisfy One of Three Conditions
1738Find Kth Largest XOR Coordinate Value
1743Restore the Array From Adjacent Pairs
1744Can You Eat Your Favorite Candy on Your Favorite Day?
1749Maximum Absolute Sum of Any Subarray
1750Minimum Length of String After Deleting Similar Ends
1753Maximum Score From Removing Stones
1754Largest Merge Of Two Strings
1759Count Number of Homogenous Substrings
1760Minimum Limit of Balls in a Bag
1764Form Array by Concatenating Subarrays of Another Array
1765Map of Highest Peak
1769Minimum Number of Operations to Move All Balls to Each Box
1774Closest Dessert Cost
1775Equal Sum Arrays With Minimum Number of Operations
1780Check if Number is a Sum of Powers of Three
1781Sum of Beauty of All Substrings
1785Minimum Elements to Add to Form a Given Sum
1786Number of Restricted Paths From First to Last Node
1792Maximum Average Pass Ratio
1797Design Authentication Manager
1798Maximum Number of Consecutive Values You Can Make
1801Number of Orders in the Backlog
1802Maximum Value at a Given Index in a Bounded Array
1806Minimum Number of Operations to Reinitialize a Permutation
1807Evaluate the Bracket Pairs of a String
1813Sentence Similarity III
1814Count Nice Pairs in an Array
1817Finding the Users Active Minutes
1818Minimum Absolute Sum Difference
1823Find the Winner of the Circular Game
1824Minimum Sideway Jumps
1828Queries on Number of Points Inside a Circle
1829Maximum XOR for Each Query
1833Maximum Ice Cream Bars
1834Single-Threaded CPU
1838Frequency of the Most Frequent Element
1839Longest Substring Of All Vowels in Order
1845Seat Reservation Manager
1846Maximum Element After Decreasing and Rearranging
1849Splitting a String Into Descending Consecutive Values
1850Minimum Adjacent Swaps to Reach the Kth Smallest Number
1855Maximum Distance Between a Pair of Values
1856Maximum Subarray Min-Product
1860Incremental Memory Leak
1861Rotating the Box
1864Minimum Number of Swaps to Make the Binary String Alternating
1865Finding Pairs With a Certain Sum
1870Minimum Speed to Arrive on Time
1871Jump Game VII
1877Minimize Maximum Pair Sum in Array
1878Get Biggest Three Rhombus Sums in a Grid
1881Maximum Value after Insertion
1882Process Tasks Using Servers
1884Egg Drop With 2 Eggs and N Floors
1887Reduction Operations to Make the Array Elements Equal
1888Minimum Number of Flips to Make the Binary String Alternating
1894Find the Student that Will Replace the Chalk
1895Largest Magic Square
1898Maximum Number of Removable Characters
1899Merge Triplets to Form Target Triplet
1901Find a Peak Element II
1904The Number of Full Rounds You Have Played
1905Count Sub Islands
1906Minimum Absolute Difference Queries
1910Remove All Occurrences of a Substring
1911Maximum Alternating Subsequence Sum
1914Cyclically Rotating a Grid

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