LeetCode 18xx
LeetCode problems 1800–1899
LeetCode 18xx
| # | Problem | Difficulty | Time | Notes |
|---|---|---|---|---|
| 1800 | Maximum Ascending Subarray Sum | 🟢 Easy | 1m 19s | The problem gives an array of positive integers called nums. We mus… |
| 1801 | Number of Orders in the Backlog | 🟡 Medium | 1m 45s | This problem simulates a simplified stock exchange order book. Each… |
| 1802 | Maximum Value at a Given Index in a Bounded Array | 🟡 Medium | 1m 26s | This problem asks us to construct an array of length n where every … |
| 1803 | Count Pairs With XOR in a Range | 🔴 Hard | 1m 56s | The problem gives us an integer array nums and two integers, low an… |
| 1804 | Implement Trie II (Prefix Tree) | 🟡 Medium | 57s | This problem asks us to implement a Trie data structure, also known… |
| 1805 | Number of Different Integers in a String | 🟢 Easy | 1m | The problem requires us to process a string word that contains both… |
| 1806 | Minimum Number of Operations to Reinitialize a Permutation | 🟡 Medium | 1m 10s | The problem gives us an even integer n and defines an initial permu… |
| 1807 | Evaluate the Bracket Pairs of a String | 🟡 Medium | 2m 34s | The problem asks us to process a string s that contains bracketed k… |
| 1808 | Maximize Number of Nice Divisors | 🔴 Hard | 1m 21s | The problem gives us an integer primeFactors, representing the maxi… |
| 1809 | Ad-Free Sessions | 🟢 Easy | 50s | The problem is asking us to identify all playback sessions during w… |
| 1810 | Minimum Path Cost in a Hidden Grid | 🟡 Medium | 1m 56s | This problem is an interactive shortest path problem on a hidden we… |
| 1811 | Find Interview Candidates | 🟡 Medium | 1m 2s | The problem is asking us to identify users who qualify as interview… |
| 1812 | Determine Color of a Chessboard Square | 🟢 Easy | 1m 11s | This problem asks us to determine whether a given chessboard square… |
| 1813 | Sentence Similarity III | 🟡 Medium | 1m 15s | The problem is asking us to determine whether two sentences can be … |
| 1814 | Count Nice Pairs in an Array | 🟡 Medium | 2m 4s | The problem gives us an array of non-negative integers called nums.… |
| 1815 | Maximum Number of Groups Getting Fresh Donuts | 🔴 Hard | 1m 56s | This problem asks us to maximize the number of “happy” customer gro… |
| 1816 | Truncate Sentence | 🟢 Easy | 1m 45s | The problem gives us a sentence s and an integer k. A sentence is g… |
| 1817 | Finding the Users Active Minutes | 🟡 Medium | 1m 41s | This problem asks us to analyze a collection of user activity logs … |
| 1818 | Minimum Absolute Sum Difference | 🟡 Medium | 1m 10s | The problem gives two arrays of positive integers, nums1 and nums2,… |
| 1819 | Number of Different Subsequences GCDs | 🔴 Hard | 2m 6s | The problem asks us to compute how many distinct values can appear … |
| 1820 | Maximum Number of Accepted Invitations | 🟡 Medium | 1m 40s | This problem asks us to maximize the number of successful invitatio… |
| 1821 | Find Customers With Positive Revenue this Year | 🟢 Easy | 1m 50s | The problem gives us a database table named Customers with three co… |
| 1822 | Sign of the Product of an Array | 🟢 Easy | 1m 18s | The problem asks us to determine the sign of the product of all num… |
| 1823 | Find the Winner of the Circular Game | 🟡 Medium | 1m 6s | The problem describes a variation of the classic Josephus problem. … |
| 1824 | Minimum Sideway Jumps | 🟡 Medium | 1m 5s | This problem describes a frog navigating a 3-lane road of length n.… |
| 1825 | Finding MK Average | 🔴 Hard | 2m 4s | The problem asks us to design a data structure that continuously re… |
| 1826 | Faulty Sensor | 🟢 Easy | 1m 37s | The problem gives us two arrays, sensor1 and sensor2, representing … |
| 1827 | Minimum Operations to Make the Array Increasing | 🟢 Easy | 59s | The problem asks us to transform a given integer array nums into a … |
| 1828 | Queries on Number of Points Inside a Circle | 🟡 Medium | 1m 20s | This problem gives us two collections of geometric objects on a 2D … |
| 1829 | Maximum XOR for Each Query | 🟡 Medium | 1m 26s | The problem gives us a sorted array nums and an integer maximumBit.… |
| 1830 | Minimum Number of Operations to Make String Sorted | 🔴 Hard | 1m 27s | The operation described in the problem is exactly the process of ge… |
| 1831 | Maximum Transaction Each Day | 🟡 Medium | 3m 51s | The problem gives us a table named Transactions where each row repr… |
| 1832 | Check if the Sentence Is Pangram | 🟢 Easy | 1m 6s | This problem asks us to determine whether a given string is a pangr… |
| 1833 | Maximum Ice Cream Bars | 🟡 Medium | 1m 1s | This problem asks us to determine the maximum number of ice cream b… |
| 1834 | Single-Threaded CPU | 🟡 Medium | 55s | The problem asks us to simulate the execution of tasks on a single-… |
| 1835 | Find XOR Sum of All Pairs Bitwise AND | 🔴 Hard | 1m 17s | This problem asks us to compute the XOR sum of every possible pairw… |
| 1836 | Remove Duplicates From an Unsorted Linked List | 🟡 Medium | 1m 26s | This problem gives us the head of a singly linked list whose values… |
| 1837 | Sum of Digits in Base K | 🟢 Easy | 42s | The problem is asking us to convert a given integer n from base 10 … |
| 1838 | Frequency of the Most Frequent Element | 🟡 Medium | 59s | This problem asks us to determine the maximum frequency of an eleme… |
| 1839 | Longest Substring Of All Vowels in Order | 🟡 Medium | 1m 37s | The problem asks us to find the length of the longest substring tha… |
| 1840 | Maximum Building Height | 🔴 Hard | 1m 49s | This problem asks us to construct heights for n buildings arranged … |
| 1841 | League Statistics | 🟡 Medium | 3m 27s | This problem asks us to compute a complete league table from two da… |
| 1842 | Next Palindrome Using Same Digits | 🔴 Hard | 1m 39s | The input is a numeric string num that is guaranteed to already be … |
| 1843 | Suspicious Bank Accounts | 🟡 Medium | 1m 35s | This problem asks us to identify bank accounts whose monthly income… |
| 1844 | Replace All Digits with Characters | 🟢 Easy | 1m 4s | In this problem, we are given a string s where characters at even i… |
| 1845 | Seat Reservation Manager | 🟡 Medium | 54s | The problem requires designing a system to manage seat reservations… |
| 1846 | Maximum Element After Decreasing and Rearranging | 🟡 Medium | 1m 3s | The problem provides an array of positive integers and asks us to p… |
| 1847 | Closest Room | 🔴 Hard | 1m 24s | We are given a list of hotel rooms, where each room has: - A unique… |
| 1848 | Minimum Distance to the Target Element | 🟢 Easy | 1m 14s | The problem gives us an integer array nums, a value called target, … |
| 1849 | Splitting a String Into Descending Consecutive Values | 🟡 Medium | 1m 52s | The problem gives us a numeric string s and asks whether it can be … |
| 1850 | Minimum Adjacent Swaps to Reach the Kth Smallest Number | 🟡 Medium | 48s | The problem asks us to compute the minimum number of adjacent swaps… |
| 1851 | Minimum Interval to Include Each Query | 🔴 Hard | 1m 28s | The problem gives us a collection of inclusive integer intervals an… |
| 1847 | Closest Room | 🔴 Hard | 2m 10s | The problem gives us a collection of hotel rooms, where each room h… |
| 1848 | Minimum Distance to the Target Element | 🟢 Easy | 1m 14s | The problem gives us an integer array nums, a value called target, … |
| 1849 | Splitting a String Into Descending Consecutive Values | 🟡 Medium | 1m 52s | The problem gives us a numeric string s and asks whether it can be … |
| 1850 | Minimum Adjacent Swaps to Reach the Kth Smallest Number | 🟡 Medium | 48s | The problem asks us to compute the minimum number of adjacent swaps… |
| 1851 | Minimum Interval to Include Each Query | 🔴 Hard | 1m 18s | This problem asks us to answer multiple range queries efficiently o… |
| 1852 | Distinct Numbers in Each Subarray | 🟡 Medium | 1m 29s | The problem gives us an integer array nums and an integer k. For ev… |
| 1853 | Convert Date Format | 🟢 Easy | 1m 24s | The problem provides a database table named Days with a single colu… |
| 1854 | Maximum Population Year | 🟢 Easy | 46s | The problem asks us to determine the year with the highest populati… |
| 1855 | Maximum Distance Between a Pair of Values | 🟡 Medium | 1m 31s | You are given two integer arrays, nums1 and nums2, and both arrays … |
| 1856 | Maximum Subarray Min-Product | 🟡 Medium | 57s | The problem asks us to find the maximum min-product of any contiguo… |
| 1857 | Largest Color Value in a Directed Graph | 🔴 Hard | 57s | The problem asks us to find the largest color value along any path … |
| 1858 | Longest Word With All Prefixes | 🟡 Medium | 1m 22s | The problem gives us an array of lowercase strings called words. We… |
| 1859 | Sorting the Sentence | 🟢 Easy | 53s | The problem gives us a shuffled sentence, where every word has a nu… |
| 1860 | Incremental Memory Leak | 🟡 Medium | 1m 3s | The problem models a faulty program that continuously consumes memo… |
| 1861 | Rotating the Box | 🟡 Medium | 2m 12s | Please provide the specific problem number/title you want the detai… |
| 1862 | Sum of Floored Pairs | 🔴 Hard | 59s | The problem asks us to calculate the sum of the integer division re… |
| 1863 | Sum of All Subset XOR Totals | 🟢 Easy | 1m 9s | This problem asks us to compute the sum of the XOR values of every … |
| 1864 | Minimum Number of Swaps to Make the Binary String Alternating | 🟡 Medium | 1m 18s | The problem gives us a binary string s that contains only '0' and '… |
| 1865 | Finding Pairs With a Certain Sum | 🟡 Medium | 1m 9s | This problem asks us to design a mutable data structure that suppor… |
| 1866 | Number of Ways to Rearrange Sticks With K Sticks Visible | 🔴 Hard | 1m 17s | The problem gives us n sticks with unique lengths from 1 to n. We m… |
| 1867 | Orders With Maximum Quantity Above Average | 🟡 Medium | 45s | The problem asks us to identify "imbalanced orders" from an OrdersD… |
| 1867 | Orders With Maximum Quantity Above Average | 🟡 Medium | 1m 11s | The problem provides a relational table OrdersDetails where each ro… |
| 1868 | Product of Two Run-Length Encoded Arrays | 🟡 Medium | 1m 28s | This problem asks us to multiply two arrays that are already stored… |
| 1869 | Longer Contiguous Segments of Ones than Zeros | 🟢 Easy | 1m 17s | The problem gives us a binary string s, which means the string cont… |
| 1870 | Minimum Speed to Arrive on Time | 🟡 Medium | 2m 22s | The problem asks us to find the minimum constant speed (in kilomete… |
| 1871 | Jump Game VII | 🟡 Medium | 1m 41s | The problem gives us a binary string s, where each character is eit… |
| 1872 | Stone Game VIII | 🔴 Hard | 1m 15s | The problem describes a two-player turn-based game between Alice an… |
| 1873 | Calculate Special Bonus | 🟢 Easy | 1m 49s | This problem asks us to write an SQL query that calculates a specia… |
| 1874 | Minimize Product Sum of Two Arrays | 🟡 Medium | 1m 24s | The problem defines the product sum of two arrays as the sum of the… |
| 1875 | Group Employees of the Same Salary | 🟡 Medium | 1m 9s | This is a SQL database problem where we need to group employees int… |
| 1876 | Substrings of Size Three with Distinct Characters | 🟢 Easy | 1m 8s | The problem asks us to count how many substrings of length exactly … |
| 1877 | Minimize Maximum Pair Sum in Array | 🟡 Medium | 53s | The problem asks us to pair elements in an array of even length suc… |
| 1878 | Get Biggest Three Rhombus Sums in a Grid | 🟡 Medium | 45s | The problem asks us to compute the largest three distinct rhombus s… |
| 1879 | Minimum XOR Sum of Two Arrays | 🔴 Hard | 57s | The problem asks us to take two integer arrays of equal length, num… |
| 1880 | Check if Word Equals Summation of Two Words | 🟢 Easy | 1m 6s | The problem asks us to determine if the sum of the numerical values… |
| 1880 | Check if Word Equals Summation of Two Words | 🟢 Easy | 2m 13s | The problem defines a custom way to convert a word into a number. E… |
| 1881 | Maximum Value after Insertion | 🟡 Medium | 1m 7s | This problem asks us to insert a single digit x into a very large i… |
| 1882 | Process Tasks Using Servers | 🟡 Medium | 1m 38s | This problem asks us to simulate a task scheduling system with two … |
| 1883 | Minimum Skips to Arrive at Meeting On Time | 🔴 Hard | 2m 22s | You are given a sequence of roads that must be traveled in order. E… |
| 1884 | Egg Drop With 2 Eggs and N Floors | 🟡 Medium | 1m 12s | This problem asks us to determine the minimum number of moves requi… |
| 1885 | Count Pairs in Two Arrays | 🟡 Medium | 49s | The problem asks us to count the number of index pairs (i, j) such … |
| 1886 | Determine Whether Matrix Can Be Obtained By Rotation | 🟢 Easy | 1m 14s | The problem gives us two square binary matrices, mat and target, bo… |
| 1887 | Reduction Operations to Make the Array Elements Equal | 🟡 Medium | 1m 29s | This problem asks us to make all elements in an integer array equal… |
| 1888 | Minimum Number of Flips to Make the Binary String Alternating | 🟡 Medium | 57s | The problem asks us to transform a binary string s into an alternat… |
| 1889 | Minimum Space Wasted From Packaging | 🔴 Hard | 1m 26s | The problem gives us a list of package sizes and several suppliers.… |
| 1890 | The Latest Login in 2020 | 🟢 Easy | 54s | The problem provides a database table Logins that records user logi… |
| 1891 | Cutting Ribbons | 🟡 Medium | 1m 4s | The problem requires determining the maximum possible length x of r… |
| 1892 | Page Recommendations II | 🔴 Hard | 1m 4s | The problem asks us to implement a page recommendation system based… |
| 1893 | Check if All the Integers in a Range Are Covered | 🟢 Easy | 48s | The problem asks us to determine whether every integer within a giv… |
| 1894 | Find the Student that Will Replace the Chalk | 🟡 Medium | 53s | The problem presents a classroom scenario where students are given … |
| 1895 | Largest Magic Square | 🟡 Medium | 56s | The problem asks us to find the largest magic square inside a given… |
| 1896 | Minimum Cost to Change the Final Value of Expression | 🔴 Hard | 1m 48s | This problem gives us a boolean expression containing only: - '0' a… |
| 1897 | Redistribute Characters to Make All Strings Equal | 🟢 Easy | 1m 19s | The problem asks whether it is possible to make all strings in the … |
| 1898 | Maximum Number of Removable Characters | 🟡 Medium | 1m 4s | The problem gives us two strings, s and p, and a list of indices re… |
| 1899 | Merge Triplets to Form Target Triplet | 🟡 Medium | 49s | The problem asks whether it is possible to create a specific target… |