LeetCode 23xx

LeetCode problems 2300–2399

100 items

LeetCode 23xx

# Problem Difficulty Time Notes
2300 Successful Pairs of Spells and Potions 🟡 Medium 35s The problem asks us to determine, for each spell, how many potions …
2301 Match Substring After Replacement 🔴 Hard 1m 26s The problem gives us a string s, a target string sub, and a list of…
2302 Count Subarrays With Score Less Than K 🔴 Hard 42s The problem asks us to count the number of contiguous subarrays of …
2303 Calculate Amount Paid in Taxes 🟢 Easy 37s This problem is asking us to simulate a progressive tax system. We …
2304 Minimum Path Cost in a Grid 🟡 Medium 1m 13s The problem gives us a matrix called grid with m rows and n columns…
2305 Fair Distribution of Cookies 🟡 Medium 37s The problem asks us to distribute a set of cookie bags among k chil…
2306 Naming a Company 🔴 Hard 1m 22s The problem gives us a list of unique strings called ideas. We must…
2307 Check for Contradictions in Equations 🔴 Hard 1m 35s This problem gives us a collection of equations of the form: Each v…
2308 Arrange Table by Gender 🟡 Medium 1m 33s The problem asks us to rearrange the rows of a Genders table in a s…
2309 Greatest English Letter in Upper and Lower Case 🟢 Easy 58s The problem gives us a string s containing only uppercase and lower…
2310 Sum of Numbers With Units Digit K 🟡 Medium 1m 2s This problem asks us to construct a set of positive integers such t…
2311 Longest Binary Subsequence Less Than or Equal to K 🟡 Medium 47s The problem asks us to find the length of the longest subsequence o…
2312 Selling Pieces of Wood 🔴 Hard 57s The problem presents a rectangular piece of wood of size m x n and …
2313 Minimum Flips in Binary Tree to Get Result 🔴 Hard 35s The problem presents a binary tree where leaf nodes represent boole…
2314 The First Day of the Maximum Recorded Degree in Each City 🟡 Medium 1m 34s The problem gives us a database table named Weather that stores tem…
2315 Count Asterisks 🟢 Easy 1m 2s The problem gives us a string s containing lowercase English letter…
2316 Count Unreachable Pairs of Nodes in an Undirected Graph 🟡 Medium 54s The problem asks us to find the number of pairs of nodes in an undi…
2317 Maximum XOR After Operations 🟡 Medium 1m 5s The problem gives us an integer array nums, and we may perform a sp…
2318 Number of Distinct Roll Sequences 🔴 Hard 39s The problem is asking us to compute the total number of distinct se…
2319 Check if Matrix Is X-Matrix 🟢 Easy 1m 25s The problem gives us a square matrix grid of size n x n. We must de…
2320 Count Number of Ways to Place Houses 🟡 Medium 46s The problem presents a street with n plots on each side, for a tota…
2321 Maximum Score Of Spliced Array 🔴 Hard 48s The problem presents two integer arrays, nums1 and nums2, of equal …
2322 Minimum Score After Removals on a Tree 🔴 Hard 43s That is a long, multi-section technical guide with code, worked exa…
2323 Find Minimum Time to Finish All Jobs II 🟡 Medium 1m 1s This problem asks us to assign jobs to workers in a way that minimi…
2324 Product Sales Analysis IV 🟡 Medium 54s This problem asks us to analyze sales data to determine which produ…
2325 Decode the Message 🟢 Easy 57s This problem is asking us to decode a secret message using a substi…
2326 Spiral Matrix IV 🟡 Medium 1m 12s The problem gives us a linked list and asks us to place its values …
2327 Number of People Aware of a Secret 🟡 Medium 1m The problem describes how a secret spreads over time. On day 1, exa…
2328 Number of Increasing Paths in a Grid 🔴 Hard 1m 10s In this problem, we are given a two dimensional matrix called grid.…
2329 Product Sales Analysis V 🟢 Easy 1m 3s This problem asks us to calculate how much money each user has spen…
2330 Valid Palindrome IV 🟡 Medium 1m 31s The problem gives us a string s containing only lowercase English l…
2331 Evaluate Boolean Binary Tree 🟢 Easy 46s The problem asks us to evaluate a full binary tree where each node …
2332 The Latest Time to Catch a Bus 🟡 Medium 48s The problem asks us to determine the latest time we can arrive at a…
2333 Minimum Sum of Squared Difference 🟡 Medium 37s I can do that, but the complete guide with all requested sections a…
2334 Subarray With Elements Greater Than Varying Threshold 🔴 Hard 1m 20s This problem asks us to find a contiguous subarray whose elements a…
2335 Minimum Amount of Time to Fill Cups 🟢 Easy 1m 15s The problem gives us an array amount of length 3. Each index repres…
2336 Smallest Number in Infinite Set 🟡 Medium 51s The problem asks us to implement a data structure representing an i…
2337 Move Pieces to Obtain a String 🟡 Medium 1m 14s The problem gives us two strings, start and target, both having the…
2338 Count the Number of Ideal Arrays 🔴 Hard 1m 18s The problem asks us to count how many arrays of length n satisfy a …
2339 All the Matches of the League 🟢 Easy 58s The Teams table contains the names of all teams participating in a …
2340 Minimum Adjacent Swaps to Make a Valid Array 🟡 Medium 3m 13s The previous solution fails immediately under a counterexample chec…
2341 Maximum Number of Pairs in Array 🟢 Easy 52s The problem asks us to take an array of integers, nums, and repeate…
2342 Max Sum of a Pair With Equal Sum of Digits 🟡 Medium 42s The problem requires finding the maximum sum of a pair of numbers i…
2343 Query Kth Smallest Trimmed Number 🟡 Medium 41s This problem provides a list of numbers represented as strings, all…
2344 Minimum Deletions to Make Array Divisible 🔴 Hard 1m 18s The problem gives us two arrays of positive integers, nums and nums…
2345 Finding the Number of Visible Mountains 🟡 Medium 1m 32s Each mountain is represented by a peak point (x, y). Because the mo…
2346 Compute the Rank as a Percentage 🟡 Medium 1m 37s The problem provides a database table named Students, where each ro…
2347 Best Poker Hand 🟢 Easy 1m 6s The problem gives us exactly five playing cards. Each card is repre…
2348 Number of Zero-Filled Subarrays 🟡 Medium 33s The problem asks us to count the number of contiguous subarrays in …
2349 Design a Number Container System 🟡 Medium 1m 10s The problem asks us to design a data structure that supports two op…
2350 Shortest Impossible Sequence of Rolls 🔴 Hard 56s Here is a complete, detailed technical solution guide for LeetCode …
2351 First Letter to Appear Twice 🟢 Easy 1m 3s The problem gives us a string s containing only lowercase English l…
2352 Equal Row and Column Pairs 🟡 Medium 1m 4s The problem gives us a square matrix grid of size n x n, where ever…
2353 Design a Food Rating System 🟡 Medium 1m The problem is asking us to implement a food rating system that sup…
2354 Number of Excellent Pairs 🔴 Hard 49s The problem provides a 0-indexed array of positive integers nums an…
2355 Maximum Number of Books You Can Take 🔴 Hard 2m 20s That is a long, multi-section technical reference document. I can p…
2356 Number of Unique Subjects Taught by Each Teacher 🟢 Easy 38s The problem requires calculating the number of unique subjects each…
2357 Make Array Zero by Subtracting Equal Amounts 🟢 Easy 1m 6s This problem gives us an array nums containing non-negative integer…
2358 Maximum Number of Groups Entering a Competition 🟡 Medium 49s The problem asks us to partition a list of student grades into mult…
2359 Find Closest Node to Given Two Nodes 🟡 Medium 39s The problem asks us to find a node in a directed graph with a very …
2360 Longest Cycle in a Graph 🔴 Hard 1m 14s This problem gives us a directed graph represented by an array call…
2361 Minimum Costs Using the Train Line 🔴 Hard 37s This problem models a scenario where you are traversing a train lin…
2362 Generate the Invoice 🔴 Hard 1m 7s This is a SQL database problem involving two tables:
2363 Merge Similar Items 🟢 Easy 1m 7s The problem gives us two collections of items, items1 and items2, w…
2364 Count Number of Bad Pairs 🟡 Medium 1m 17s The problem asks us to count the number of bad pairs in an array. W…
2365 Task Scheduler II 🟡 Medium 1m 8s The problem gives us an array tasks, where each value represents a …
2366 Minimum Replacements to Sort the Array 🔴 Hard 2m 19s The problem asks us to transform a given integer array nums into a …
2367 Number of Arithmetic Triplets 🟢 Easy 2m 19s The problem requires us to find the number of arithmetic triplets i…
2368 Reachable Nodes With Restrictions 🟡 Medium 2m 15s That is a large, highly structured guide. To make sure I target the…
2369 Check if There is a Valid Partition For The Array 🟡 Medium 1m 15s The problem gives us an integer array nums, and we must determine w…
2370 Longest Ideal Subsequence 🟡 Medium 1m 1s In this problem, we are given a string s containing only lowercase …
2371 Minimize Maximum Value in a Grid 🔴 Hard 42s The problem presents a matrix grid of size m x n with distinct posi…
2372 Calculate the Influence of Each Salesperson 🟡 Medium 1m 17s This problem asks us to calculate the total sales value generated b…
2373 Largest Local Values in a Matrix 🟢 Easy 2m 19s The problem gives us an n x n square matrix called grid, where each…
2374 Node With Highest Edge Score 🟡 Medium 46s The problem asks us to analyze a directed graph where each node has…
2375 Construct Smallest Number From DI String 🟡 Medium 44s The problem asks us to construct the lexicographically smallest num…
2376 Count Special Integers 🔴 Hard 1m 36s The problem asks us to count how many integers in the range [1, n] …
2377 Sort the Olympic Table 🟢 Easy 1m 11s This problem asks us to return the rows of the Olympic table in a v…
2378 Choose Edges to Maximize Score in a Tree 🟡 Medium 40s This will be very large if done comprehensively and correctly under…
2379 Minimum Recolors to Get K Consecutive Black Blocks 🟢 Easy 1m 19s The problem gives us a string called blocks, where each character r…
2380 Time Needed to Rearrange a Binary String 🟡 Medium 54s This problem asks us to repeatedly transform a binary string accord…
2381 Shifting Letters II 🟡 Medium 1m 22s This problem gives us a lowercase English string s and a list of sh…
2382 Maximum Segment Sum After Removals 🔴 Hard 1m 16s The problem gives us two arrays, nums and removeQueries, both of le…
2383 Minimum Hours of Training to Win a Competition 🟢 Easy 1m 2s The problem gives us two starting values, initialEnergy and initial…
2384 Largest Palindromic Number 🟡 Medium 40s The problem asks us to form the largest palindromic integer using t…
2385 Amount of Time for Binary Tree to Be Infected 🟡 Medium 41s This problem asks us to model the spread of an infection across a b…
2386 Find the K-Sum of an Array 🔴 Hard 27s That is a long, structured reference document with multiple section…
2387 Median of a Row Wise Sorted Matrix 🟡 Medium 1m 25s We are given an m × n matrix grid where every row is already sorted…
2387 Median of a Row Wise Sorted Matrix 🟡 Medium 1m 55s The problem gives us an m x n matrix where every individual row is …
2388 Change Null Values in a Table to the Previous Value 🟡 Medium 41s The problem asks us to process a database table, CoffeeShop, which …
2389 Longest Subsequence With Limited Sum 🟢 Easy 42s This problem asks us to determine, for each query, the maximum numb…
2390 Removing Stars From a String 🟡 Medium 53s This problem asks us to repeatedly process a string that contains l…
2391 Minimum Amount of Time to Collect Garbage 🟡 Medium 1m 20s This problem models a garbage collection system with three separate…
2392 Build a Matrix With Conditions 🔴 Hard 43s This guide is long enough that a complete, high quality response wi…
2393 Count Strictly Increasing Subarrays 🟡 Medium 46s The problem asks us to count all strictly increasing subarrays in a…
2394 Employees With Deductions 🟡 Medium 56s This problem asks us to identify employees whose monthly working ti…
2395 Find Subarrays With Equal Sum 🟢 Easy 33s The problem asks us to determine whether there exist two contiguous…
2396 Strictly Palindromic Number 🟡 Medium 33s The problem asks whether a given integer n is strictly palindromic.…
2397 Maximum Rows Covered by Columns 🟡 Medium 40s This problem asks us to maximize the number of rows covered in a bi…
2398 Maximum Number of Robots Within Budget 🔴 Hard 44s This problem asks us to determine the maximum number of consecutive…
2399 Check Distances Between Same Letters 🟢 Easy 1m 5s This problem asks us to verify whether a string follows a very spec…