LeetCode 16xx
LeetCode problems 1600–1699
LeetCode 16xx
| # | Problem | Difficulty | Time | Notes |
|---|---|---|---|---|
| 1600 | Throne Inheritance | 🟡 Medium | 1m 24s | The problem asks us to design a data structure that simulates a roy… |
| 1601 | Maximum Number of Achievable Transfer Requests | 🔴 Hard | 53s | The problem asks us to maximize the number of employee transfer req… |
| 1602 | Find Nearest Right Node in Binary Tree | 🟡 Medium | 5m 40s | This problem asks us to find the nearest node to the right of a giv… |
| 1603 | Design Parking System | 🟢 Easy | 1m 17s | This problem asks us to design a very small parking lot management … |
| 1604 | Alert Using Same Key-Card Three or More Times in a One Hour Period | 🟡 Medium | 1m 32s | The problem gives us two parallel arrays, keyName and keyTime. Each… |
| 1605 | Find Valid Matrix Given Row and Column Sums | 🟡 Medium | 1m 21s | The problem gives us two arrays: - rowSum, where rowSum[i] represen… |
| 1606 | Find Servers That Handled Most Number of Requests | 🔴 Hard | 1m 10s | The problem presents a simulation scenario involving k servers, eac… |
| 1607 | Sellers With No Sales | 🟢 Easy | 1m 16s | This problem asks us to identify all sellers who did not make any s… |
| 1608 | Special Array With X Elements Greater Than or Equal X | 🟢 Easy | 1m 19s | The problem gives us an array nums containing non-negative integers… |
| 1609 | Even Odd Tree | 🟡 Medium | 1m 23s | Here’s a fully detailed, reference-style solution guide for LeetCod… |
| 1610 | Maximum Number of Visible Points | 🔴 Hard | 2m 19s | In this problem, we are standing at a fixed position on a 2D plane,… |
| 1611 | Minimum One Bit Operations to Make Integers Zero | 🔴 Hard | 52s | This problem asks us to transform a given integer n into 0 using a … |
| 1612 | Check If Two Expression Trees are Equivalent | 🟡 Medium | 55s | The problem asks us to determine whether two binary expression tree… |
| 1613 | Find the Missing IDs | 🟡 Medium | 1m 26s | The problem gives us a database table named Customers, where each r… |
| 1614 | Maximum Nesting Depth of the Parentheses | 🟢 Easy | 2m 19s | This problem asks us to compute the maximum nesting depth of parent… |
| 1615 | Maximal Network Rank | 🟡 Medium | 1m 10s | The problem asks us to compute the maximal network rank for a set o… |
| 1616 | Split Two Strings to Make Palindrome | 🟡 Medium | 1m 27s | This problem gives us two strings, a and b, both having the same le… |
| 1617 | Count Subtrees With Max Distance Between Cities | 🔴 Hard | 1m 38s | The input describes an undirected tree with n cities. Since the gra… |
| 1618 | Maximum Font to Fit a Sentence in a Screen | 🟡 Medium | 1m 24s | In this problem, we are given a string text that must be displayed … |
| 1619 | Mean of Array After Removing Some Elements | 🟢 Easy | 1m 31s | The problem gives us an integer array arr and asks us to compute th… |
| 1620 | Coordinate With Maximum Network Quality | 🟡 Medium | 44s | The problem asks us to find the integral coordinate on a 2D plane w… |
| 1621 | Number of Sets of K Non-Overlapping Line Segments | 🟡 Medium | 2m 20s | This guide is quite large and highly detailed under your required s… |
| 1622 | Fancy Sequence | 🔴 Hard | 1m 56s | The problem asks us to design a mutable sequence data structure tha… |
| 1623 | All Valid Triplets That Can Represent a Country | 🟢 Easy | 2m 10s | The problem asks us to generate all valid triplets of students repr… |
| 1624 | Largest Substring Between Two Equal Characters | 🟢 Easy | 1m 11s | The problem asks us to find the length of the longest substring tha… |
| 1625 | Lexicographically Smallest String After Applying Operations | 🟡 Medium | 1m 30s | The problem gives us a numeric string s of even length and two oper… |
| 1626 | Best Team With No Conflicts | 🟡 Medium | 1m 29s | The problem asks us to build a basketball team with the maximum pos… |
| 1627 | Graph Connectivity With Threshold | 🔴 Hard | 1m 21s | The problem gives us n cities labeled from 1 to n. Two cities are d… |
| 1628 | Design an Expression Tree With Evaluate Function | 🟡 Medium | 45s | The problem requires constructing a binary expression tree from a p… |
| 1629 | Slowest Key | 🟢 Easy | 1m 10s | This problem asks us to determine which key on a keypad was pressed… |
| 1630 | Arithmetic Subarrays | 🟡 Medium | 1m 37s | The problem asks us to determine whether subarrays of a given array… |
| 1631 | Path With Minimum Effort | 🟡 Medium | 2m 12s | The problem gives us a grid called heights, where each cell contain… |
| 1632 | Rank Transform of a Matrix | 🔴 Hard | 1m 48s | The problem asks us to assign a rank to every element in a matrix w… |
| 1633 | Percentage of Users Attended a Contest | 🟢 Easy | 44s | This problem asks us to calculate the percentage of users who atten… |
| 1634 | Add Two Polynomials Represented as Linked Lists | 🟡 Medium | 52s | This problem asks us to add two polynomials represented as singly l… |
| 1635 | Hopper Company Queries I | 🔴 Hard | 1m 50s | This problem asks us to generate monthly statistics for the year 20… |
| 1636 | Sort Array by Increasing Frequency | 🟢 Easy | 1m 19s | The problem asks us to reorder an array of integers based on the fr… |
| 1637 | Widest Vertical Area Between Two Points Containing No Points | 🟢 Easy | 1m 25s | This problem gives us a list of points on a 2D plane, where each po… |
| 1638 | Count Substrings That Differ by One Character | 🟡 Medium | 1m 42s | The problem asks us to count how many pairs of substrings, one take… |
| 1639 | Number of Ways to Form a Target String Given a Dictionary | 🔴 Hard | 1m 21s | The problem gives us a list of strings called words, where every st… |
| 1640 | Check Array Formation Through Concatenation | 🟢 Easy | 1m 31s | This problem gives us two inputs: - arr, a one-dimensional array of… |
| 1641 | Count Sorted Vowel Strings | 🟡 Medium | 1m 1s | The problem asks us to count the number of strings of length n comp… |
| 1642 | Furthest Building You Can Reach | 🟡 Medium | 1m 44s | The problem gives us an array heights, where each value represents … |
| 1643 | Kth Smallest Instructions | 🔴 Hard | 1m 12s | This problem asks us to generate a specific path for Bob from the t… |
| 1644 | Lowest Common Ancestor of a Binary Tree II | 🟡 Medium | 1m 14s | This problem asks us to find the lowest common ancestor (LCA) of tw… |
| 1645 | Hopper Company Queries II | 🔴 Hard | 1m 23s | This problem asks us to calculate, for every month in the year 2020… |
| 1646 | Get Maximum in Generated Array | 🟢 Easy | 1m 17s | The problem asks us to generate an array called nums using a specif… |
| 1647 | Minimum Deletions to Make Character Frequencies Unique | 🟡 Medium | 55s | The problem asks us to make a string good, which means no two disti… |
| 1648 | Sell Diminishing-Valued Colored Balls | 🟡 Medium | 1m 18s | Here is the complete, detailed technical solution guide for LeetCod… |
| 1649 | Create Sorted Array through Instructions | 🔴 Hard | 1m 28s | The problem asks us to simulate building a sorted array incremental… |
| 1650 | Lowest Common Ancestor of a Binary Tree III | 🟡 Medium | 1m 29s | This problem asks us to find the lowest common ancestor, usually ab… |
| 1651 | Hopper Company Queries III | 🔴 Hard | 1m 2s | The problem requires computing a rolling 3-month average of ride di… |
| 1652 | Defuse the Bomb | 🟢 Easy | 1m 17s | The problem gives us a circular array called code and an integer k.… |
| 1653 | Minimum Deletions to Make String Balanced | 🟡 Medium | 1m 3s | The problem asks us to make a string containing only characters 'a'… |
| 1654 | Minimum Jumps to Reach Home | 🟡 Medium | 1m 37s | This problem asks us to find the minimum number of jumps required f… |
| 1655 | Distribute Repeating Integers | 🔴 Hard | 1m 30s | This problem asks whether we can satisfy a set of customer requests… |
| 1656 | Design an Ordered Stream | 🟢 Easy | 1m 9s | This problem asks us to simulate a data stream where each element a… |
| 1657 | Determine if Two Strings Are Close | 🟡 Medium | 1m 3s | The problem asks whether two strings, word1 and word2, are "close" … |
| 1658 | Minimum Operations to Reduce X to Zero | 🟡 Medium | 1m 18s | The problem gives us an integer array nums and a target integer x. … |
| 1659 | Maximize Grid Happiness | 🔴 Hard | 1m 56s | This problem asks us to place introverts and extroverts inside an m… |
| 1660 | Correct a Binary Tree | 🟡 Medium | 1m 25s | Here is a complete, detailed technical solution guide for LeetCode … |
| 1661 | Average Time of Process per Machine | 🟢 Easy | 3m 19s | The problem provides a database table named Activity, which stores … |
| 1662 | Check If Two String Arrays are Equivalent | 🟢 Easy | 1m 37s | The problem gives us two arrays of strings, word1 and word2. Each a… |
| 1663 | Smallest String With A Given Numeric Value | 🟡 Medium | 1m 33s | The problem asks us to construct a lowercase string of length n suc… |
| 1664 | Ways to Make a Fair Array | 🟡 Medium | 1m 32s | The problem gives us an integer array nums, and asks us to remove e… |
| 1665 | Minimum Initial Energy to Finish Tasks | 🔴 Hard | 1m 50s | The problem gives us a list of tasks, where each task is represente… |
| 1666 | Change the Root of a Binary Tree | 🟡 Medium | 3m 28s | This problem asks us to reroot a binary tree at a given leaf node. … |
| 1667 | Fix Names in a Table | 🟢 Easy | 1m 17s | This problem provides a database table named Users with two columns… |
| 1668 | Maximum Repeating Substring | 🟢 Easy | 1m | This problem asks us to determine how many times a given string wor… |
| 1669 | Merge In Between Linked Lists | 🟡 Medium | 2m 16s | The problem asks us to merge two singly linked lists in a very spec… |
| 1670 | Design Front Middle Back Queue | 🟡 Medium | 1m 11s | The problem is asking us to design a specialized queue that allows … |
| 1671 | Minimum Number of Removals to Make Mountain Array | 🔴 Hard | 1m 49s | This problem asks us to remove the minimum number of elements from … |
| 1672 | Richest Customer Wealth | 🟢 Easy | 4m 43s | This problem gives us a two dimensional integer array called accoun… |
| 1673 | Find the Most Competitive Subsequence | 🟡 Medium | 1m 38s | Here is a complete, detailed technical solution guide for LeetCode … |
| 1674 | Minimum Moves to Make Array Complementary | 🟡 Medium | 1m 17s | The problem requires us to transform an array nums of even length n… |
| 1675 | Minimize Deviation in Array | 🔴 Hard | 2m 57s | The problem asks us to minimize the deviation in an array of positi… |
| 1676 | Lowest Common Ancestor of a Binary Tree IV | 🟡 Medium | 1m 35s | This problem asks us to find the Lowest Common Ancestor, or LCA, of… |
| 1677 | Product's Worth Over Invoices | 🟢 Easy | 1m 8s | The problem asks us to calculate aggregate monetary information for… |
| 1678 | Goal Parser Interpretation | 🟢 Easy | 1m 13s | This problem asks us to interpret a Goal Parser command string. The… |
| 1679 | Max Number of K-Sum Pairs | 🟡 Medium | 1m 9s | The problem asks us to repeatedly remove pairs of numbers from an a… |
| 1680 | Concatenation of Consecutive Binary Numbers | 🟡 Medium | 1m 20s | The problem asks us to build a very large binary number by concaten… |
| 1681 | Minimum Incompatibility | 🔴 Hard | 6m 17s | The problem is asking us to partition an integer array nums into ex… |
| 1682 | Longest Palindromic Subsequence II | 🟡 Medium | 1m 35s | The problem is asking us to find the length of the longest good pal… |
| 1683 | Invalid Tweets | 🟢 Easy | 1m 27s | This problem gives us a database table named Tweets with two column… |
| 1684 | Count the Number of Consistent Strings | 🟢 Easy | 1m 15s | This problem asks us to determine how many strings in the words arr… |
| 1685 | Sum of Absolute Differences in a Sorted Array | 🟡 Medium | 1m 28s | The problem gives us a sorted integer array nums, arranged in non-d… |
| 1686 | Stone Game VI | 🟡 Medium | 48s | This is a long, structured technical guide with multiple substantia… |
| 1687 | Delivering Boxes from Storage to Ports | 🔴 Hard | 2m 35s | This problem asks us to minimize the total number of ship trips req… |
| 1688 | Count of Matches in Tournament | 🟢 Easy | 1m | The problem describes a tournament where teams compete until only o… |
| 1689 | Partitioning Into Minimum Number Of Deci-Binary Numbers | 🟡 Medium | 1m 24s | The problem asks us to determine the minimum number of positive dec… |
| 1690 | Stone Game VII | 🟡 Medium | 2m 36s | This problem describes a two player game played on an array of ston… |
| 1691 | Maximum Height by Stacking Cuboids | 🔴 Hard | 3m 33s | This problem gives us a collection of 3D cuboids, where each cuboid… |
| 1692 | Count Ways to Distribute Candies | 🔴 Hard | 1m 20s | The problem asks us to compute the number of ways to distribute n d… |
| 1693 | Daily Leads and Partners | 🟢 Easy | 56s | The problem provides a database table named DailySales, where each … |
| 1694 | Reformat Phone Number | 🟢 Easy | 1m 6s | The problem requires reformatting a phone number string in a specif… |
| 1695 | Maximum Erasure Value | 🟡 Medium | 1m 35s | This problem asks us to find a contiguous subarray that contains on… |
| 1696 | Jump Game VI | 🟡 Medium | 1m 36s | The problem gives us an integer array nums and a maximum jump dista… |
| 1697 | Checking Existence of Edge Length Limited Paths | 🔴 Hard | 1m 55s | This problem gives us an undirected weighted graph with n nodes. Ea… |
| 1698 | Number of Distinct Substrings in a String | 🟡 Medium | 1m 8s | The problem asks for the total number of distinct substrings of a g… |
| 1699 | Number of Calls Between Two Persons | 🟡 Medium | 2m 2s | This problem provides a database table named Calls, where each row … |