LeetCode 12xx

LeetCode problems 1200–1299

100 items

LeetCode 12xx

# Problem Difficulty Time Notes
1200 Minimum Absolute Difference 🟢 Easy 51s The problem asks us to find all pairs of numbers in an array that h…
1201 Ugly Number III 🟡 Medium 1m 23s The problem defines an "ugly number" as any positive integer that i…
1202 Smallest String With Swaps 🟡 Medium 1m 27s The problem gives us a string s and a list of index pairs called pa…
1203 Sort Items by Groups Respecting Dependencies 🔴 Hard 1m 44s This problem asks us to sort n items while satisfying two different…
1204 Last Person to Fit in the Bus 🟡 Medium 1m 6s This problem gives us a database table named Queue that represents …
1205 Monthly Transactions II 🟡 Medium 1m 2s This problem asks us to generate a monthly financial summary for ea…
1206 Design Skiplist 🔴 Hard 43s This problem asks us to implement a Skiplist from scratch, a probab…
1207 Unique Number of Occurrences 🟢 Easy 1m 1s The problem gives us an integer array arr and asks whether every di…
1208 Get Equal Substrings Within Budget 🟡 Medium 2m 30s The problem asks us to determine the longest contiguous substring o…
1209 Remove All Adjacent Duplicates in String II 🟡 Medium 1m 3s The problem asks us to repeatedly remove groups of exactly k adjace…
1210 Minimum Moves to Reach Target with Rotations 🔴 Hard 1m 39s This problem models a shortest path search on a grid, but the movin…
1211 Queries Quality and Percentage 🟢 Easy 1m 23s The problem gives us a database table named Queries. Each row repre…
1212 Team Scores in Football Tournament 🟡 Medium 37s This problem asks us to compute the total points for each football …
1213 Intersection of Three Sorted Arrays 🟢 Easy 1m 5s The problem gives us three integer arrays, arr1, arr2, and arr3. Ea…
1214 Two Sum BSTs 🟡 Medium 1m 16s The problem gives us two binary search trees, root1 and root2, alon…
1215 Stepping Numbers 🟡 Medium 46s The problem is asking us to find all integers within a given range …
1216 Valid Palindrome III 🔴 Hard 39s The problem asks us to determine whether a given string s can becom…
1217 Minimum Cost to Move Chips to The Same Position 🟢 Easy 1m 1s The problem asks us to move n chips located at various positions al…
1218 Longest Arithmetic Subsequence of Given Difference 🟡 Medium 49s The problem asks for the length of the longest arithmetic subsequen…
1219 Path with Maximum Gold 🟡 Medium 1m 21s The problem gives us a two dimensional grid representing a gold min…
1220 Count Vowels Permutation 🔴 Hard 1m 14s The problem asks us to count how many valid strings of length n can…
1221 Split a String in Balanced Strings 🟢 Easy 59s This problem gives us a string s that contains only the characters …
1222 Queens That Can Attack the King 🟡 Medium 1m 14s In this problem, we are given the positions of several black queens…
1223 Dice Roll Simulation 🔴 Hard 47s The problem asks us to calculate the total number of valid sequence…
1224 Maximum Equal Frequency 🔴 Hard 1m 22s The problem gives an array nums consisting of positive integers. We…
1225 Report Contiguous Dates 🔴 Hard 42s The problem asks us to analyze a system that runs one task per day …
1226 The Dining Philosophers 🟡 Medium 1m 24s This problem asks us to implement a concurrent synchronization mech…
1227 Airplane Seat Assignment Probability 🟡 Medium 39s This problem involves a scenario with n passengers and n seats on a…
1228 Missing Number In Arithmetic Progression 🟢 Easy 48s The problem asks us to find a missing value from an array that orig…
1229 Meeting Scheduler 🟡 Medium 1m 2s This problem asks us to find the earliest overlapping time slot of …
1230 Toss Strange Coins 🟡 Medium 58s This problem is asking us to calculate the probability that, when t…
1231 Divide Chocolate 🔴 Hard 45s The problem asks us to divide a chocolate bar into k + 1 consecutiv…
1232 Check If It Is a Straight Line 🟢 Easy 39s The problem asks us to determine whether a given set of points in a…
1233 Remove Sub-Folders from the Filesystem 🟡 Medium 46s This problem asks us to process a list of folder paths and remove a…
1234 Replace the Substring for Balanced String 🟡 Medium 45s The problem asks us to balance a string composed of exactly four ty…
1235 Maximum Profit in Job Scheduling 🔴 Hard 1m 20s The problem gives us three arrays of equal length: - startTime[i] r…
1236 Web Crawler 🟡 Medium 1m 14s The problem asks us to implement a simplified web crawler. We are g…
1237 Find Positive Integer Solution for a Given Equation 🟡 Medium 1m 14s This problem gives us access to a hidden function f(x, y) through a…
1238 Circular Permutation in Binary Representation 🟡 Medium 1m 6s This problem asks us to construct a special ordering of all integer…
1239 Maximum Length of a Concatenated String with Unique Characters 🟡 Medium 1m 35s This problem asks us to select a subsequence of strings from the in…
1240 Tiling a Rectangle with the Fewest Squares 🔴 Hard 40s The problem is asking us to completely cover a rectangle of size n …
1241 Number of Comments per Post 🟢 Easy 1m 10s This problem asks us to analyze a database table named Submissions …
1242 Web Crawler Multithreaded 🟡 Medium 49s The problem asks us to implement a multi-threaded web crawler that …
1243 Array Transformation 🟢 Easy 40s The problem requires simulating the transformation of an array over…
1244 Design A Leaderboard 🟡 Medium 1m 12s This problem asks us to design a leaderboard system that supports t…
1245 Tree Diameter 🟡 Medium 42s The problem asks us to find the diameter of a tree, which is define…
1246 Palindrome Removal 🔴 Hard 56s The problem requires us to remove all elements from an integer arra…
1247 Minimum Swaps to Make Strings Equal 🟡 Medium 48s This problem asks us to determine the minimum number of swaps neede…
1248 Count Number of Nice Subarrays 🟡 Medium 1m 13s The problem asks us to count how many contiguous subarrays contain …
1249 Minimum Remove to Make Valid Parentheses 🟡 Medium 54s The problem is asking us to process a string containing lowercase l…
1250 Check If It Is a Good Array 🔴 Hard 1m 12s This problem asks whether it is possible to create the number 1 usi…
1251 Average Selling Price 🟢 Easy 1m 19s This problem asks us to compute the average selling price for every…
1252 Cells with Odd Values in a Matrix 🟢 Easy 1m 16s The problem gives us an m x n matrix where every cell initially con…
1253 Reconstruct a 2-Row Binary Matrix 🟡 Medium 50s The problem asks us to reconstruct a binary matrix with exactly two…
1254 Number of Closed Islands 🟡 Medium 58s This problem provides a 2D grid representing a map of land and wate…
1255 Maximum Score Words Formed by Letters 🔴 Hard 1m 21s This problem asks us to select a subset of words that can be constr…
1256 Encode Number 🟡 Medium 47s Sure, let's build a full, detailed technical solution guide for Lee…
1257 Smallest Common Region 🟡 Medium 1m 16s This problem describes a hierarchical relationship between geograph…
1258 Synonymous Sentences 🟡 Medium 56s This problem asks us to generate all possible synonymous variations…
1259 Handshakes That Don't Cross 🔴 Hard 1m 10s In this problem, we are given an even number of people standing aro…
1260 Shift 2D Grid 🟢 Easy 1m 13s This problem asks us to simulate repeated shift operations on a 2D …
1261 Find Elements in a Contaminated Binary Tree 🟡 Medium 1m 9s The problem gives us a binary tree where every node value has been …
1262 Greatest Sum Divisible by Three 🟡 Medium 53s The problem asks us to find the maximum sum of elements from an int…
1263 Minimum Moves to Move a Box to Their Target Location 🔴 Hard 1m 9s The problem is a variant of the classic "Sokoban" puzzle. You are g…
1264 Page Recommendations 🟡 Medium 1m 12s This problem models a small social network with two database tables…
1265 Print Immutable Linked List in Reverse 🟡 Medium 1m 17s This problem gives us a special type of linked list called an immut…
1266 Minimum Time Visiting All Points 🟢 Easy 1m 7s The problem gives a sequence of points on a 2D coordinate plane. Ea…
1267 Count Servers that Communicate 🟡 Medium 1m 14s The problem gives us a two dimensional grid representing a server c…
1268 Search Suggestions System 🟡 Medium 1m 14s This problem asks us to build a product suggestion system similar t…
1269 Number of Ways to Stay in the Same Place After Some Steps 🔴 Hard 1m 19s This problem asks us to count how many different ways a pointer can…
1270 All People Report to the Given Manager 🟡 Medium 46s The problem asks us to identify all employees in a company who dire…
1271 Hexspeak 🟢 Easy 53s The problem asks us to convert a decimal number given as a string i…
1272 Remove Interval 🟡 Medium 54s The problem asks us to remove a given interval toBeRemoved from a l…
1273 Delete Tree Nodes 🟡 Medium 1m 3s The problem provides a tree rooted at node 0, represented in two pa…
1274 Number of Ships in a Rectangle 🔴 Hard 44s The problem presents an interactive scenario where ships are placed…
1275 Find Winner on a Tic Tac Toe Game 🟢 Easy 57s This problem asks us to simulate a game of Tic-Tac-Toe on a 3 x 3 g…
1276 Number of Burgers with No Waste of Ingredients 🟡 Medium 1m 25s Here is a complete, detailed technical solution guide for LeetCode …
1277 Count Square Submatrices with All Ones 🟡 Medium 1m 29s The problem gives us a binary matrix of size m x n, where every cel…
1278 Palindrome Partitioning III 🔴 Hard 1m 27s The problem gives us a string s and an integer k. We are allowed to…
1279 Traffic Light Controlled Intersection 🟢 Easy 1m 22s This problem asks us to design a thread-safe traffic light system f…
1280 Students and Examinations 🟢 Easy 1m 28s This problem asks us to generate a complete report showing how many…
1281 Subtract the Product and Sum of Digits of an Integer 🟢 Easy 51s The problem asks us to compute a simple mathematical transformation…
1282 Group the People Given the Group Size They Belong To 🟡 Medium 1m 24s The problem gives us an array called groupSizes, where each index r…
1283 Find the Smallest Divisor Given a Threshold 🟡 Medium 48s The problem asks us to find the smallest positive integer divisor f…
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix 🔴 Hard 59s The problem asks us to transform a given binary matrix mat into a z…
1285 Find the Start and End Number of Continuous Ranges 🟡 Medium 56s Here’s a full technical solution guide for LeetCode 1285 following …
1286 Iterator for Combination 🟡 Medium 51s The problem asks us to design a class CombinationIterator that gene…
1287 Element Appearing More Than 25% In Sorted Array 🟢 Easy 1m 8s The problem gives us a sorted integer array in non-decreasing order…
1288 Remove Covered Intervals 🟡 Medium 1m 9s The problem gives us a list of intervals, where each interval is re…
1289 Minimum Falling Path Sum II 🔴 Hard 46s The problem asks us to compute the minimum sum of a falling path wi…
1290 Convert Binary Number in a Linked List to Integer 🟢 Easy 1m 7s The problem gives us the head of a singly linked list where every n…
1291 Sequential Digits 🟡 Medium 46s The problem asks us to find all integers within a given range [low,…
1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold 🟡 Medium 35s That is a very large, multi-section request covering a full detaile…
1293 Shortest Path in a Grid with Obstacles Elimination 🔴 Hard 1m 42s This problem asks us to find the minimum number of steps required t…
1294 Weather Type in Each Country 🟢 Easy 53s This problem asks us to determine the weather type for each country…
1295 Find Numbers with Even Number of Digits 🟢 Easy 55s The problem asks us to determine how many numbers in a given array …
1296 Divide Array in Sets of K Consecutive Numbers 🟡 Medium 1m 31s The problem gives us an integer array nums and an integer k. We nee…
1297 Maximum Number of Occurrences of a Substring 🟡 Medium 2m 25s Please provide the missing problem number or title you want the gui…
1298 Maximum Candies You Can Get from Boxes 🔴 Hard 48s The problem asks us to determine the maximum number of candies we c…
1299 Replace Elements with Greatest Element on Right Side 🟢 Easy 1m 13s The problem gives us an integer array arr and asks us to replace ev…