LeetCode 20xx

LeetCode problems 2000–2099

100 items

LeetCode 20xx

# Problem Difficulty Time Notes
2000 Reverse Prefix of Word 🟢 Easy 58s The problem gives us a string word and a character ch. We must loca…
2001 Number of Pairs of Interchangeable Rectangles 🟡 Medium 2m 30s This problem asks us to count how many pairs of rectangles are inte…
2002 Maximum Product of the Length of Two Palindromic Subsequences 🟡 Medium 6m 9s The problem is asking us to find two disjoint palindromic subsequen…
2003 Smallest Missing Genetic Value in Each Subtree 🔴 Hard 6m 10s This problem asks us to compute, for every node in a rooted tree, t…
2004 The Number of Seniors and Juniors to Join the Company 🔴 Hard 1m 20s This problem requires determining how many candidates a company can…
2005 Subtree Removal Game with Fibonacci Tree 🔴 Hard 1m 12s The problem defines a special kind of binary tree called a Fibonacc…
2006 Count Number of Pairs With Absolute Difference K 🟢 Easy 1m 20s The problem gives us an integer array nums and an integer k. We nee…
2007 Find Original Array From Doubled Array 🟡 Medium 1m 27s The problem gives us an array called changed, which was supposedly …
2008 Maximum Earnings From Taxi 🟡 Medium 1m 24s The problem describes a taxi traveling along a one directional road…
2009 Minimum Number of Operations to Make Array Continuous 🔴 Hard 1m 1s The problem asks us to transform a given integer array nums into a …
2010 The Number of Seniors and Juniors to Join the Company II 🔴 Hard 1m 25s The problem asks us to simulate a hiring process with a fixed salar…
2011 Final Value of Variable After Performing Operations 🟢 Easy 57s This problem asks us to simulate a simple programming language with…
2012 Sum of Beauty in the Array 🟡 Medium 1m The problem asks us to compute a "beauty" score for each element in…
2013 Detect Squares 🟡 Medium 1m 41s The problem presents a stream of points in a 2D plane and asks us t…
2014 Longest Subsequence Repeated k Times 🔴 Hard 59s The problem asks us to find the longest subsequence of a string s t…
2015 Average Height of Buildings in Each Segment 🟡 Medium 1m 57s The problem describes a street as a number line, and each building …
2016 Maximum Difference Between Increasing Elements 🟢 Easy 55s The problem is asking us to find the maximum difference between two…
2017 Grid Game 🟡 Medium 1m 21s The problem gives us a 2 x n grid where each cell contains some num…
2018 Check if Word Can Be Placed In Crossword 🟡 Medium 1m 8s This problem asks us to determine whether a given word can be legal…
2019 The Score of Students Solving Math Expression 🔴 Hard 1m 38s The problem gives us a mathematical expression string s containing …
2020 Number of Accounts That Did Not Stream 🟡 Medium 1m 17s This problem asks us to analyze two database tables, Subscriptions …
2021 Brightest Position on Street 🟡 Medium 1m 2s The problem asks us to find the position on a straight street that …
2022 Convert 1D Array Into 2D Array 🟢 Easy 47s The problem asks us to transform a one-dimensional array, original,…
2023 Number of Pairs of Strings With Concatenation Equal to Target 🟡 Medium 1m 2s The problem asks us to find the number of ordered pairs of indices …
2024 Maximize the Confusion of an Exam 🟡 Medium 1m 26s This problem asks us to maximize the length of a contiguous block o…
2025 Maximum Number of Ways to Partition an Array 🔴 Hard 1m 39s The problem asks us to count how many valid partition points exist …
2026 Low-Quality Problems 🟢 Easy 1m 26s The problem gives us a database table named Problems. Each row repr…
2027 Minimum Moves to Convert String 🟢 Easy 1m 1s The problem asks us to transform a string s containing only charact…
2028 Find Missing Observations 🟡 Medium 1m 33s The problem gives us the results of some dice rolls and asks us to …
2029 Stone Game IX 🟡 Medium 58s The problem describes a turn-based game between Alice and Bob with …
2030 Smallest K-Length Subsequence With Occurrences of a Letter 🔴 Hard 1m 45s The problem asks us to construct the lexicographically smallest sub…
2031 Count Subarrays With More Ones Than Zeros 🟡 Medium 1m 53s This problem asks us to count all subarrays of a binary array nums …
2032 Two Out of Three 🟢 Easy 1m 4s The problem asks us to identify all distinct integers that appear i…
2033 Minimum Operations to Make a Uni-Value Grid 🟡 Medium 1m 28s The problem gives us a 2D integer matrix called grid and an integer…
2034 Stock Price Fluctuation 🟡 Medium 1m 13s Here’s a complete, detailed technical solution guide for LeetCode 2…
2035 Partition Array Into Two Arrays to Minimize Sum Difference 🔴 Hard 1m 37s The problem gives an array nums containing exactly 2 n integers. We…
2036 Maximum Alternating Subarray Sum 🟡 Medium 56s The problem asks us to compute the maximum alternating subarray sum…
2037 Minimum Number of Moves to Seat Everyone 🟢 Easy 1m 10s This problem asks us to assign students to seats such that every st…
2038 Remove Colored Pieces if Both Neighbors are the Same Color 🟡 Medium 1m 1s This problem describes a two-player game played on a line of colore…
2039 The Time When the Network Becomes Idle 🟡 Medium 1m 2s This problem involves a network of servers where server 0 is the ma…
2040 Kth Smallest Product of Two Sorted Arrays 🔴 Hard 1m The problem asks for the k-th smallest product that can be formed b…
2041 Accepted Candidates From the Interviews 🟡 Medium 1m 24s The problem gives us two database tables, Candidates and Rounds, th…
2042 Check if Numbers Are Ascending in a Sentence 🟢 Easy 59s The problem asks us to analyze a sentence represented as a string s…
2043 Simple Bank System 🟡 Medium 1m 20s This problem asks us to design a very simple banking system that su…
2044 Count Number of Maximum Bitwise-OR Subsets 🟡 Medium 1m 14s The problem asks us to examine every possible non-empty subset of t…
2045 Second Minimum Time to Reach Destination 🔴 Hard 51s Here is a comprehensive technical solution guide for LeetCode 2045 …
2046 Sort Linked List Already Sorted Using Absolute Values 🟡 Medium 51s The problem provides a singly linked list where the nodes are sorte…
2047 Number of Valid Words in a Sentence 🟢 Easy 1m 5s This problem asks us to count the number of valid words in a senten…
2048 Next Greater Numerically Balanced Number 🟡 Medium 1m 17s The problem asks us to find the smallest integer strictly greater t…
2049 Count Nodes With the Highest Score 🟡 Medium 1m 31s The input describes a rooted binary tree using a parent array. Ever…
2050 Parallel Courses III 🔴 Hard 53s The problem asks us to determine the minimum number of months requi…
2051 The Category of Each Member in the Store 🟡 Medium 1m 30s This problem asks us to classify every store member into a category…
2052 Minimum Cost to Separate Sentence Into Rows 🟡 Medium 1m 26s This problem asks us to format a sentence into multiple rows such t…
2053 Kth Distinct String in an Array 🟢 Easy 1m 23s The problem asks us to find the kth distinct string in an array of …
2054 Two Best Non-Overlapping Events 🟡 Medium 1m 27s The problem gives us a list of events, where each event is represen…
2055 Plates Between Candles 🟡 Medium 1m 28s The problem gives us a string s made of two characters: - '' repres…
2056 Number of Valid Move Combinations On Chessboard 🔴 Hard 53s The problem asks us to calculate the total number of valid move com…
2057 Smallest Index With Equal Value 🟢 Easy 1m 12s The problem gives us a 0-indexed integer array nums. We must find t…
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points 🟡 Medium 1m 23s The problem gives us a singly linked list and asks us to identify a…
2059 Minimum Operations to Convert Number 🟡 Medium 1m 25s This problem asks us to transform a starting integer into a target …
2060 Check if an Original String Exists Given Two Encoded Strings 🔴 Hard 56s The problem is asking us to determine whether there exists a single…
2061 Number of Spaces Cleaning Robot Cleaned 🟡 Medium 1m 22s In this problem, we are given a 2D binary matrix called room. Each …
2062 Count Vowel Substrings of a String 🟢 Easy 52s The problem requires counting the number of vowel substrings in a g…
2063 Vowels of All Substrings 🟡 Medium 1m 17s The problem asks us to compute the total number of vowels that appe…
2064 Minimized Maximum of Products Distributed to Any Store 🟡 Medium 1m 15s The problem gives us n retail stores and an array quantities, where…
2065 Maximum Path Quality of a Graph 🔴 Hard 1m 20s We are given an undirected weighted graph where each node has an as…
2066 Account Balance 🟡 Medium 1m 16s This problem asks us to compute the running balance for every bank …
2067 Number of Equal Count Substrings 🟡 Medium 52s The problem asks us to count the number of substrings in a string s…
2068 Check Whether Two Strings are Almost Equivalent 🟢 Easy 1m 13s The problem asks us to determine whether two strings are "almost eq…
2069 Walking Robot Simulation II 🟡 Medium 53s The problem describes a simulation of a robot moving on a rectangul…
2070 Most Beautiful Item for Each Query 🟡 Medium 1m 22s The problem gives us a list of items, where each item has two prope…
2071 Maximum Number of Tasks You Can Assign 🔴 Hard 1m 23s This problem asks us to maximize the number of tasks that can be co…
2072 The Winner University 🟢 Easy 1m 26s The problem gives us two database tables, NewYork and California. E…
2073 Time Needed to Buy Tickets 🟢 Easy 53s This problem describes a queue of n people, each wanting to buy a c…
2074 Reverse Nodes in Even Length Groups 🟡 Medium 1m 25s This problem gives us a singly linked list and asks us to process t…
2075 Decode the Slanted Ciphertext 🟡 Medium 46s The problem requires decoding a string that was encoded using a sla…
2076 Process Restricted Friend Requests 🔴 Hard 1m 33s This problem models a social network with friendship restrictions. …
2077 Paths in Maze That Lead to Same Room 🟡 Medium 48s The problem asks us to analyze a maze represented as an undirected …
2078 Two Furthest Houses With Different Colors 🟢 Easy 1m The problem is asking us to find the maximum distance between two h…
2079 Watering Plants 🟡 Medium 1m 2s This problem asks us to simulate watering a row of plants with a wa…
2080 Range Frequency Queries 🟡 Medium 1m 25s The problem asks us to design a data structure that can efficiently…
2081 Sum of k-Mirror Numbers 🔴 Hard 46s The problem asks us to find the sum of the n smallest k-mirror numb…
2082 The Number of Rich Customers 🟢 Easy 1m 10s The problem gives us a database table named Store. Each row in the …
2083 Substrings That Begin and End With the Same Letter 🟡 Medium 42s The problem asks us to count all substrings in a given string s tha…
2084 Drop Type 1 Orders for Customers With Type 0 Orders 🟡 Medium 1m 39s In this problem, we are given a database table named Orders. Each r…
2085 Count Common Words With One Occurrence 🟢 Easy 1m 18s This problem gives us two arrays of strings, words1 and words2. Our…
2086 Minimum Number of Food Buckets to Feed the Hamsters 🟡 Medium 52s The problem is asking us to place the minimum number of food bucket…
2087 Minimum Cost Homecoming of a Robot in a Grid 🟡 Medium 1m 23s The problem gives us a robot located on a two dimensional grid. The…
2088 Count Fertile Pyramids in a Land 🔴 Hard 1m 32s The problem gives us a binary matrix where each cell represents a p…
2089 Find Target Indices After Sorting Array 🟢 Easy 1m 4s The problem gives us an integer array nums and an integer target. W…
2090 K Radius Subarray Averages 🟡 Medium 1m 11s The problem asks us to compute a special average for every index in…
2091 Removing Minimum and Maximum From Array 🟡 Medium 1m 18s The problem gives us a 0-indexed array of distinct integers. Among …
2092 Find All People With Secret 🔴 Hard 1m 49s The problem describes a network of people who meet at different tim…
2093 Minimum Cost to Reach City With Discounts 🟡 Medium 1m 29s This problem describes a weighted, undirected graph where each city…
2094 Finding 3-Digit Even Numbers 🟢 Easy 1m 45s The problem gives us an array named digits, where every element is …
2095 Delete the Middle Node of a Linked List 🟡 Medium 1m 17s The problem gives us the head of a singly linked list and asks us t…
2096 Step-By-Step Directions From a Binary Tree Node to Another 🟡 Medium 1m 24s The problem gives us a binary tree where every node contains a uniq…
2097 Valid Arrangement of Pairs 🔴 Hard 1m 23s This problem gives us a list of directed pairs, where each pair [st…
2098 Subsequence of Size K With the Largest Even Sum 🟡 Medium 1m 6s The problem asks us to find the largest possible even sum of a subs…
2099 Find Subsequence of Length K With the Largest Sum 🟢 Easy 50s The problem asks us to find a subsequence of length k from a given …