LeetCode 17xx
LeetCode problems 1700–1799
LeetCode 17xx
| # | Problem | Difficulty | Time | Notes |
|---|---|---|---|---|
| 1700 | Number of Students Unable to Eat Lunch | 🟢 Easy | 1m 13s | This problem simulates a school cafeteria where students line up to… |
| 1701 | Average Waiting Time | 🟡 Medium | 2m 22s | This problem is asking us to simulate the operation of a single-che… |
| 1702 | Maximum Binary String After Change | 🟡 Medium | 2m 21s | This problem gives us a binary string consisting only of '0' and '1… |
| 1703 | Minimum Adjacent Swaps for K Consecutive Ones | 🔴 Hard | 3m 32s | This problem asks us to determine the minimum number of adjacent sw… |
| 1704 | Determine if String Halves Are Alike | 🟢 Easy | 1m 29s | The problem gives us a string s whose length is guaranteed to be ev… |
| 1705 | Maximum Number of Eaten Apples | 🟡 Medium | 1m 4s | The problem describes a scenario with a series of apple trees that … |
| 1706 | Where Will the Ball Fall | 🟡 Medium | 3m 7s | This problem asks us to simulate the movement of balls dropped into… |
| 1707 | Maximum XOR With an Element From Array | 🔴 Hard | 2m 27s | The problem gives us two inputs: - An integer array nums - A list o… |
| 1708 | Largest Subarray Length K | 🟢 Easy | 1m 36s | The problem asks us to find the lexicographically largest contiguou… |
| 1709 | Biggest Window Between Visits | 🟡 Medium | 1m 27s | The UserVisits table stores records of when users visited a retaile… |
| 1710 | Maximum Units on a Truck | 🟢 Easy | 1m 40s | The problem gives us several types of boxes, where each box type co… |
| 1711 | Count Good Meals | 🟡 Medium | 2m 52s | The problem asks us to count the number of good meals that can be f… |
| 1712 | Ways to Split Array Into Three Subarrays | 🟡 Medium | 1m 35s | The problem asks us to count the number of valid ways to divide an … |
| 1713 | Minimum Operations to Make a Subsequence | 🔴 Hard | 1m 39s | The problem gives us two arrays, target and arr. The target array c… |
| 1714 | Sum Of Special Evenly-Spaced Elements In Array | 🔴 Hard | 3m 29s | The problem requires calculating sums of specific subsets of an int… |
| 1715 | Count Apples and Oranges | 🟡 Medium | 3m 40s | This problem asks us to compute the total number of apples and oran… |
| 1716 | Calculate Money in Leetcode Bank | 🟢 Easy | 1m 17s | The problem describes a repeating weekly saving pattern. Hercy depo… |
| 1717 | Maximum Score From Removing Substrings | 🟡 Medium | 1m 32s | The problem gives us a string s and two scoring rules: - Removing t… |
| 1718 | Construct the Lexicographically Largest Valid Sequence | 🟡 Medium | 2m 18s | The problem asks us to construct a special integer sequence using n… |
| 1719 | Number Of Ways To Reconstruct A Tree | 🔴 Hard | 1m 11s | The problem provides an array of pairs, where each pair [xi, yi] in… |
| 1720 | Decode XORed Array | 🟢 Easy | 1m 30s | The problem gives us an encoded array where each element represents… |
| 1721 | Swapping Nodes in a Linked List | 🟡 Medium | 1m 12s | The problem provides a singly linked list and an integer k. The tas… |
| 1722 | Minimize Hamming Distance After Swap Operations | 🟡 Medium | 1m 21s | The problem asks us to find the minimum Hamming distance between tw… |
| 1723 | Find Minimum Time to Finish All Jobs | 🔴 Hard | 1m 11s | This problem is asking us to assign a set of jobs, each with a spec… |
| 1724 | Checking Existence of Edge Length Limited Paths II | 🔴 Hard | 2m 2s | This problem gives us an undirected weighted graph with n nodes and… |
| 1725 | Number Of Rectangles That Can Form The Largest Square | 🟢 Easy | 1m 44s | The problem gives us a list of rectangles, where each rectangle is … |
| 1726 | Tuple with Same Product | 🟡 Medium | 2m 24s | The problem asks us to count all tuples (a, b, c, d) from a given a… |
| 1727 | Largest Submatrix With Rearrangements | 🟡 Medium | 1m 24s | The problem gives us a binary matrix, meaning every cell contains e… |
| 1728 | Cat and Mouse II | 🔴 Hard | 2m | This problem describes a two-player perfect-information game played… |
| 1729 | Find Followers Count | 🟢 Easy | 1m 16s | The problem is asking us to determine, for each user in a social me… |
| 1730 | Shortest Path to Get Food | 🟡 Medium | 1m 1s | The problem asks us to find the shortest path from a starting locat… |
| 1731 | The Number of Employees Which Report to Each Employee | 🟢 Easy | 2m 5s | The Employees table stores information about employees inside a com… |
| 1732 | Find the Highest Altitude | 🟢 Easy | 1m 52s | In this problem, a biker starts at altitude 0 and travels through a… |
| 1733 | Minimum Number of People to Teach | 🟡 Medium | 1m 58s | This problem models communication in a social network where each us… |
| 1734 | Decode XORed Permutation | 🟡 Medium | 1m 34s | The problem gives us an array called encoded, which was generated f… |
| 1735 | Count Ways to Make Array With Product | 🔴 Hard | 1m 14s | The problem asks us to count the number of ways to fill an array of… |
| 1736 | Latest Time by Replacing Hidden Digits | 🟢 Easy | 1m 45s | The problem presents a string time formatted as hh:mm, where h and … |
| 1737 | Change Minimum Characters to Satisfy One of Three Conditions | 🟡 Medium | 2m 19s | The problem gives us two lowercase English strings, a and b. In a s… |
| 1738 | Find Kth Largest XOR Coordinate Value | 🟡 Medium | 1m 18s | The problem asks us to compute the XOR coordinate value for each el… |
| 1739 | Building Boxes | 🔴 Hard | 1m 37s | The problem gives us n identical unit cubes that must be placed ins… |
| 1740 | Find Distance in a Binary Tree | 🟡 Medium | 1m 29s | This problem asks us to determine the distance between two nodes in… |
| 1741 | Find Total Time Spent by Each Employee | 🟢 Easy | 1m 15s | The problem asks us to calculate the total time each employee spend… |
| 1742 | Maximum Number of Balls in a Box | 🟢 Easy | 59s | The problem describes a scenario in which you have a sequence of ba… |
| 1743 | Restore the Array From Adjacent Pairs | 🟡 Medium | 1m 33s | The problem gives us all adjacent pairs from an unknown array nums,… |
| 1744 | Can You Eat Your Favorite Candy on Your Favorite Day? | 🟡 Medium | 2m 24s | The problem gives us an array candiesCount where candiesCount[i] re… |
| 1745 | Palindrome Partitioning IV | 🔴 Hard | 1m 8s | The problem asks us to determine whether a given string s can be sp… |
| 1746 | Maximum Subarray Sum After One Operation | 🟡 Medium | 1m 33s | The problem gives us an integer array nums, and we must perform exa… |
| 1747 | Leetflex Banned Accounts | 🟡 Medium | 1m 28s | This problem asks us to identify suspicious accounts in the LogInfo… |
| 1748 | Sum of Unique Elements | 🟢 Easy | 1m 12s | The problem gives us an integer array nums and asks us to compute t… |
| 1749 | Maximum Absolute Sum of Any Subarray | 🟡 Medium | 1m 4s | The problem asks us to calculate the maximum absolute sum of any co… |
| 1750 | Minimum Length of String After Deleting Similar Ends | 🟡 Medium | 1m 27s | The problem gives us a string s containing only the characters 'a',… |
| 1751 | Maximum Number of Events That Can Be Attended II | 🔴 Hard | 1m 33s | You are given a list of events, where each event is represented as:… |
| 1752 | Check if Array Is Sorted and Rotated | 🟢 Easy | 54s | The problem is asking us to determine whether a given array nums co… |
| 1753 | Maximum Score From Removing Stones | 🟡 Medium | 1m 13s | The problem is a combinatorial game involving three piles of stones… |
| 1754 | Largest Merge Of Two Strings | 🟡 Medium | 1m 27s | This problem asks us to build the lexicographically largest possibl… |
| 1755 | Closest Subsequence Sum | 🔴 Hard | 53s | The problem asks us to find a subsequence of a given integer array … |
| 1756 | Design Most Recently Used Queue | 🟡 Medium | 1m 34s | The problem asks us to design a special queue called an "Most Recen… |
| 1757 | Recyclable and Low Fat Products | 🟢 Easy | 1m 34s | This problem gives us a database table named Products. Each row rep… |
| 1758 | Minimum Changes To Make Alternating Binary String | 🟢 Easy | 1m 25s | The problem gives us a binary string s, which means the string cont… |
| 1759 | Count Number of Homogenous Substrings | 🟡 Medium | 1m 34s | The problem asks us to count all substrings in a string where every… |
| 1760 | Minimum Limit of Balls in a Bag | 🟡 Medium | 1m 32s | You are given several bags of balls, where nums[i] represents how m… |
| 1761 | Minimum Degree of a Connected Trio in a Graph | 🔴 Hard | 2m 30s | This problem gives us an undirected graph with n nodes and a list o… |
| 1762 | Buildings With an Ocean View | 🟡 Medium | 1m 19s | This problem gives us an array called heights, where each element r… |
| 1763 | Longest Nice Substring | 🟢 Easy | 1m 58s | The problem asks us to find the longest "nice" substring within a g… |
| 1764 | Form Array by Concatenating Subarrays of Another Array | 🟡 Medium | 1m 11s | The problem asks us to determine whether we can select disjoint sub… |
| 1765 | Map of Highest Peak | 🟡 Medium | 1m 33s | The problem presents a matrix isWater of size m x n where each cell… |
| 1766 | Tree of Coprimes | 🔴 Hard | 1m 7s | This problem gives us a tree with n nodes numbered from 0 to n-1, r… |
| 1767 | Find the Subtasks That Did Not Execute | 🔴 Hard | 2m 17s | This problem revolves around identifying which subtasks of a task w… |
| 1768 | Merge Strings Alternately | 🟢 Easy | 3m 7s | The problem requires merging two input strings word1 and word2 in a… |
| 1769 | Minimum Number of Operations to Move All Balls to Each Box | 🟡 Medium | 1m 2s | This problem asks us to compute the minimum number of moves require… |
| 1770 | Maximum Score from Performing Multiplication Operations | 🔴 Hard | 2m 19s | This problem asks us to maximize a score obtained by performing a s… |
| 1771 | Maximize Palindrome Length From Subsequences | 🔴 Hard | 2m 19s | The problem gives us two strings, word1 and word2. We must choose a… |
| 1772 | Sort Features by Popularity | 🟡 Medium | 1m 2s | This problem asks us to determine the popularity of product feature… |
| 1773 | Count Items Matching a Rule | 🟢 Easy | 56s | The problem asks us to determine how many items in a list satisfy a… |
| 1774 | Closest Dessert Cost | 🟡 Medium | 1m 3s | The problem asks us to create a dessert using one ice cream base an… |
| 1775 | Equal Sum Arrays With Minimum Number of Operations | 🟡 Medium | 1m 53s | The problem gives us two integer arrays, nums1 and nums2, where eve… |
| 1776 | Car Fleet II | 🔴 Hard | 54s | The problem is asking us to compute the time at which each car in a… |
| 1777 | Product's Price for Each Store | 🟢 Easy | 1m 50s | The problem provides a table named Products, where each row represe… |
| 1778 | Shortest Path in a Hidden Grid | 🟡 Medium | 1m 43s | This problem asks us to find the shortest path from a robot's unkno… |
| 1779 | Find Nearest Point That Has the Same X or Y Coordinate | 🟢 Easy | 1m 22s | The problem gives your current position on a 2D Cartesian grid as (… |
| 1780 | Check if Number is a Sum of Powers of Three | 🟡 Medium | 1m 17s | The problem asks whether a given integer n can be expressed as the … |
| 1781 | Sum of Beauty of All Substrings | 🟡 Medium | 50s | The problem asks us to calculate the sum of beauty for all substrin… |
| 1782 | Count Pairs Of Nodes | 🔴 Hard | 1m 23s | We are given an undirected graph with n nodes and a list of edges. … |
| 1782 | Count Pairs Of Nodes | 🔴 Hard | 1m 32s | The problem gives an undirected graph with n nodes and a list of ed… |
| 1783 | Grand Slam Titles | 🟡 Medium | 1m 38s | This problem asks us to compute how many Grand Slam tennis titles e… |
| 1784 | Check if Binary String Has at Most One Segment of Ones | 🟢 Easy | 1m 5s | In this problem, we are given a binary string s that contains only … |
| 1785 | Minimum Elements to Add to Form a Given Sum | 🟡 Medium | 1m 24s | The problem gives us an integer array nums, a maximum allowed absol… |
| 1786 | Number of Restricted Paths From First to Last Node | 🟡 Medium | 2m | This problem gives us an undirected weighted graph with n nodes lab… |
| 1787 | Make the XOR of All Segments Equal to Zero | 🔴 Hard | 1m 19s | The problem is asking us to modify an array nums such that the XOR … |
| 1788 | Maximize the Beauty of the Garden | 🔴 Hard | 1m 47s | We are given an integer array flowers, where each element represent… |
| 1789 | Primary Department for Each Employee | 🟢 Easy | 1m 34s | The problem provides a database table named Employee that stores in… |
| 1790 | Check if One String Swap Can Make Strings Equal | 🟢 Easy | 50s | The problem asks us to determine if two strings of equal length, s1… |
| 1791 | Find Center of Star Graph | 🟢 Easy | 48s | The problem is asking us to identify the center node of a star grap… |
| 1792 | Maximum Average Pass Ratio | 🟡 Medium | 1m 47s | The problem gives us several classes, where each class is represent… |
| 1793 | Maximum Score of a Good Subarray | 🔴 Hard | 1m 35s | In this problem, we are given an integer array nums and a specific … |
| 1794 | Count Pairs of Equal Substrings With Minimum Difference | 🟡 Medium | 53s | This problem asks us to count quadruples of indices (i, j, a, b) wh… |
| 1795 | Rearrange Products Table | 🟢 Easy | 1m 36s | The Products table stores product prices across three different sto… |
| 1796 | Second Largest Digit in a String | 🟢 Easy | 1m 19s | The problem gives us a string s that contains lowercase English let… |
| 1797 | Design Authentication Manager | 🟡 Medium | 51s | The problem asks us to design an authentication system that manages… |
| 1798 | Maximum Number of Consecutive Values You Can Make | 🟡 Medium | 1m 19s | The problem gives us an array of coin values, where each coin can b… |
| 1799 | Maximize Score After N Operations | 🔴 Hard | 1m 5s | The problem asks us to maximize the total score obtained by perform… |