LeetCode 21xx

LeetCode problems 2100–2199

100 items

LeetCode 21xx

# Problem Difficulty Time Notes
2100 Find Good Days to Rob the Bank 🟡 Medium 52s The problem asks us to find all days that are "good" for robbing a …
2101 Detonate the Maximum Bombs 🟡 Medium 1m 18s In this problem, each bomb is represented by three integers: its x-…
2102 Sequentially Ordinal Rank Tracker 🔴 Hard 1m 27s The problem asks us to design a data structure that continuously tr…
2103 Rings and Rods 🟢 Easy 52s The problem is asking us to determine how many rods, labeled from 0…
2104 Sum of Subarray Ranges 🟡 Medium 1m 45s The problem gives us an integer array nums, and asks us to compute …
2105 Watering Plants II 🟡 Medium 1m 36s In this problem, we are given a row of plants where each plant requ…
2106 Maximum Fruits Harvested After at Most K Steps 🔴 Hard 1m 32s In this problem, we are given several fruit piles placed on an infi…
2107 Number of Unique Flavors After Sharing K Candies 🟡 Medium 1m 15s The problem gives us an integer array candies, where each value rep…
2108 Find First Palindromic String in the Array 🟢 Easy 1m 28s The problem asks us to examine an array of strings, words, and iden…
2109 Adding Spaces to a String 🟡 Medium 39s The problem requires us to insert spaces into a given string s at s…
2110 Number of Smooth Descent Periods of a Stock 🟡 Medium 1m 8s This problem is asking us to count all "smooth descent periods" in …
2111 Minimum Operations to Make the Array K-Increasing 🔴 Hard 52s The problem asks us to transform a given array arr into a K-increas…
2112 The Airport With the Most Traffic 🟡 Medium 55s This problem asks us to find the airport(s) with the most traffic u…
2113 Elements in Array After Removing and Replacing Elements 🟡 Medium 1m 23s The problem describes an array that continuously goes through a rep…
2114 Maximum Number of Words Found in Sentences 🟢 Easy 1m 6s In this problem, we are given an array of strings called sentences.…
2115 Find All Possible Recipes from Given Supplies 🟡 Medium 1m 14s This problem asks us to determine which recipes can be created when…
2116 Check if a Parentheses String Can Be Valid 🟡 Medium 1m 23s This problem asks whether a given parentheses string can be transfo…
2117 Abbreviating the Product of a Range 🔴 Hard 1m 5s We are given two integers, a and b. The task is deceptively small b…
2118 Build the Equation 🔴 Hard 55s The problem asks us to construct a polynomial equation from a datab…
2119 A Number After a Double Reversal 🟢 Easy 1m 26s The problem asks us to determine whether a number remains unchanged…
2120 Execution of All Suffix Instructions Staying in a Grid 🟡 Medium 59s The problem asks us to simulate a robot moving on an n x n grid, st…
2121 Intervals Between Identical Elements 🟡 Medium 1m 14s You are given a 0-indexed integer array arr. For every index i, you…
2122 Recover the Original Array 🔴 Hard 57s The problem presents a scenario in which Alice has an original arra…
2123 Minimum Operations to Remove Adjacent Ones in Matrix 🔴 Hard 50s The problem presents a binary matrix where each element is either 0…
2124 Check if All A's Appears Before All B's 🟢 Easy 1m 56s The problem gives us a string s that contains only two possible cha…
2125 Number of Laser Beams in a Bank 🟡 Medium 3m 24s The problem describes a bank floor plan as a binary matrix, represe…
2126 Destroying Asteroids 🟡 Medium 1m 19s In this problem, we are given the starting mass of a planet and a l…
2127 Maximum Employees to Be Invited to a Meeting 🔴 Hard 5m 52s This problem describes a group of employees sitting around a circul…
2128 Remove All Ones With Row and Column Flips 🟡 Medium 1m 21s The problem gives us an m x n binary matrix named grid, where every…
2129 Capitalize the Title 🟢 Easy 1m 5s The problem asks us to transform the capitalization of every word i…
2130 Maximum Twin Sum of a Linked List 🟡 Medium 7m 7s The problem gives us a singly linked list with an even number of no…
2131 Longest Palindrome by Concatenating Two Letter Words 🟡 Medium 57s This problem asks us to construct the longest possible palindrome u…
2132 Stamping the Grid 🔴 Hard 1m 43s In this problem, we are given a binary matrix called grid. Every ce…
2133 Check if Every Row and Column Contains All Numbers 🟢 Easy 2m 20s In this problem, we are given an n x n matrix where every value is …
2134 Minimum Swaps to Group All 1's Together II 🟡 Medium 2m 20s The problem is asking us to find the minimum number of swaps requir…
2135 Count Words Obtained After Adding a Letter 🟡 Medium 47s The problem requires us to determine how many strings in targetWord…
2136 Earliest Possible Day of Full Bloom 🔴 Hard 46s The problem presents a scenario where we have n flower seeds, each …
2137 Pour Water Between Buckets to Make Water Levels Equal 🟡 Medium 49s This problem asks us to equalize the water levels in a series of bu…
2138 Divide a String Into Groups of Size k 🟢 Easy 1m 18s The problem asks us to split a string into consecutive groups, wher…
2139 Minimum Moves to Reach Target Score 🟡 Medium 1m 12s The problem asks us to transform the integer 1 into the integer tar…
2140 Solving Questions With Brainpower 🟡 Medium 1m 18s The problem gives us an array called questions, where each element …
2141 Maximum Running Time of N Computers 🔴 Hard 50s The problem is asking us to determine the maximum number of minutes…
2142 The Number of Passengers in Each Bus I 🟡 Medium 48s This problem involves simulating passengers arriving at a bus stati…
2143 Choose Numbers From Two Arrays in Range 🔴 Hard 1m 37s In this problem, we are given two arrays, nums1 and nums2, both of …
2144 Minimum Cost of Buying Candies With Discount 🟢 Easy 1m 39s This problem asks us to minimize the total amount of money spent wh…
2145 Count the Hidden Sequences 🟡 Medium 50s The problem asks us to determine how many possible sequences of int…
2146 K Highest Ranked Items Within a Price Range 🟡 Medium 1m 41s This problem gives us a 2D grid representing a shop layout. Every c…
2147 Number of Ways to Divide a Long Corridor 🔴 Hard 1m 6s The problem presents a long corridor represented as a string, where…
2148 Count Elements With Strictly Smaller and Greater Elements 🟢 Easy 1m 15s The problem gives us an integer array nums and asks us to count how…
2149 Rearrange Array Elements by Sign 🟡 Medium 49s The problem asks us to rearrange a given integer array nums such th…
2150 Find All Lonely Numbers in the Array 🟡 Medium 1m 32s The corridor is represented as a string where each character is eit…
2151 Maximum Good People Based on Statements 🔴 Hard 1m The problem asks us to determine the maximum number of good people …
2152 Minimum Number of Lines to Cover Points 🟡 Medium 54s This problem asks us to determine the minimum number of straight li…
2153 The Number of Passengers in Each Bus II 🔴 Hard 46s The problem describes a simulation of passengers arriving at a bus …
2154 Keep Multiplying Found Values by Two 🟢 Easy 1m 7s This problem asks us to repeatedly search for a value inside an int…
2155 All Divisions With the Highest Score of a Binary Array 🟡 Medium 1m 13s The problem gives us a binary array nums, meaning every element is …
2156 Find Substring With Given Hash Value 🔴 Hard 1m 33s This problem asks us to find the earliest substring of length k who…
2157 Groups of Strings 🔴 Hard 56s The problem asks us to group a list of unique lowercase strings bas…
2158 Amount of New Area Painted Each Day 🔴 Hard 43s This problem describes a painting scenario represented as a one-dim…
2159 Order Two Columns Independently 🟡 Medium 54s The problem provides a database table named Data with two integer c…
2160 Minimum Sum of Four Digit Number After Splitting Digits 🟢 Easy 45s The problem asks us to take a four-digit integer num and split its …
2161 Partition Array According to Given Pivot 🟡 Medium 1m 17s This problem asks us to rearrange an array around a given pivot val…
2162 Minimum Cost to Set Cooking Time 🟡 Medium 1m 18s This problem asks us to simulate the process of entering a cooking …
2163 Minimum Difference in Sums After Removal of Elements 🔴 Hard 9m 32s The array contains exactly 3 n elements. We must remove exactly n e…
2164 Sort Even and Odd Indices Independently 🟢 Easy 2m 19s The problem asks us to take an integer array nums and sort its elem…
2165 Smallest Value of the Rearranged Number 🟡 Medium 1m 7s In this problem, we are given an integer num, which may be positive…
2166 Design Bitset 🟡 Medium 1m 29s This problem asks us to design a custom Bitset data structure that …
2167 Minimum Time to Remove All Cars Containing Illegal Goods 🔴 Hard 47s The problem presents a binary string s representing a sequence of t…
2168 Unique Substrings With Equal Digit Frequency 🟡 Medium 1m 18s The problem gives us a string s consisting only of digits from '0' …
2169 Count Operations to Obtain Zero 🟢 Easy 44s The problem asks us to count the number of operations required to r…
2170 Minimum Operations to Make the Array Alternating 🟡 Medium 49s The problem requires transforming a given integer array nums into a…
2171 Removing Minimum Number of Magic Beans 🟡 Medium 53s The problem asks us to remove beans from bags in such a way that al…
2172 Maximum AND Sum of Array 🔴 Hard 1m 34s This problem asks us to distribute a set of integers into numbered …
2173 Longest Winning Streak 🔴 Hard 1m 1s This problem is asking us to determine the longest sequence of cons…
2174 Remove All Ones With Row and Column Flips II 🟡 Medium 4m 20s The problem gives us an m x n binary matrix where every cell contai…
2175 The Change in Global Rankings 🟡 Medium 2m 1s This problem asks us to determine how the global rankings of nation…
2176 Count Equal and Divisible Pairs in an Array 🟢 Easy 56s The problem gives us a 0-indexed integer array nums and an integer …
2177 Find Three Consecutive Integers That Sum to a Given Number 🟡 Medium 59s This problem asks us to determine whether a given integer num can b…
2178 Maximum Split of Positive Even Integers 🟡 Medium 43s The problem is asking us to take an input integer finalSum and spli…
2179 Count Good Triplets in an Array 🔴 Hard 1m 36s In this problem, we are given two arrays, nums1 and nums2, each con…
2180 Count Integers With Even Digit Sum 🟢 Easy 45s The problem asks us to count all positive integers less than or equ…
2181 Merge Nodes in Between Zeros 🟡 Medium 1m 13s The problem gives us a singly linked list where the values are grou…
2182 Construct String With Repeat Limit 🟡 Medium 1m 41s The problem asks us to construct a string from the characters of a …
2183 Count Array Pairs Divisible by K 🔴 Hard 1m 13s The problem gives us an integer array nums and an integer k. We mus…
2184 Number of Ways to Build Sturdy Brick Wall 🟡 Medium 43s The problem asks us to compute the number of ways to build a wall o…
2185 Counting Words With a Given Prefix 🟢 Easy 1m 16s The problem gives us two inputs: - An array of strings called words…
2186 Minimum Number of Steps to Make Two Strings Anagram II 🟡 Medium 49s The problem asks us to find the minimum number of steps required to…
2187 Minimum Time to Complete Trips 🟡 Medium 54s The problem asks us to determine the minimum time required for a fl…
2188 Minimum Time to Finish the Race 🔴 Hard 5m 35s The problem asks us to find the minimum total time to complete a ra…
2189 Number of Ways to Build House of Cards 🟡 Medium 1m 1s The problem is asking us to count the number of distinct ways to bu…
2190 Most Frequent Number Following Key In an Array 🟢 Easy 2m 20s The problem asks us to find the integer that appears most frequentl…
2191 Sort the Jumbled Numbers 🟡 Medium 37s The problem asks us to sort an array of integers based on a custom …
2192 All Ancestors of a Node in a Directed Acyclic Graph 🟡 Medium 1m 49s This problem gives us a Directed Acyclic Graph (DAG) with n nodes l…
2193 Minimum Number of Moves to Make Palindrome 🔴 Hard 1m 15s This problem asks us to transform a given string into a palindrome …
2194 Cells in a Range on an Excel Sheet 🟢 Easy 39s This problem is asking us to generate all the Excel-style cell refe…
2195 Append K Integers With Minimal Sum 🟡 Medium 2m 24s The problem asks us to append k unique positive integers to an exis…
2196 Create Binary Tree From Descriptions 🟡 Medium 10m 30s The problem asks us to construct a binary tree from a list of relat…
2197 Replace Non-Coprime Numbers in Array 🔴 Hard 2m 21s The problem asks us to repeatedly replace adjacent non-coprime numb…
2198 Number of Single Divisor Triplets 🟡 Medium 1m 22s The problem asks us to count how many ordered triplets of distinct …
2199 Finding the Topic of Each Post 🔴 Hard 1m 20s The problem gives us two database tables, Keywords and Posts. The K…