LeetCode 13xx
LeetCode problems 1300–1399
LeetCode 13xx
| # | Problem | Difficulty | Time | Notes |
|---|---|---|---|---|
| 1300 | Sum of Mutated Array Closest to Target | 🟡 Medium | 1m 28s | The problem gives us an integer array arr and an integer target. We… |
| 1301 | Number of Paths with Max Score | 🔴 Hard | 1m 43s | In this problem, we are given an n x n board where each cell contai… |
| 1302 | Deepest Leaves Sum | 🟡 Medium | 2m 21s | That is a long, comprehensive reference document with multiple sect… |
| 1303 | Find the Team Size | 🟢 Easy | 1m 5s | This problem provides a database table named Employee, where every … |
| 1304 | Find N Unique Integers Sum up to Zero | 🟢 Easy | 54s | The problem asks us to construct an array containing exactly n uniq… |
| 1305 | All Elements in Two Binary Search Trees | 🟡 Medium | 1m 20s | The problem gives us two binary search trees, root1 and root2. A bi… |
| 1306 | Jump Game III | 🟡 Medium | 1m 19s | The problem gives us an array of non-negative integers and a starti… |
| 1307 | Verbal Arithmetic Puzzle | 🔴 Hard | 1m 34s | The problem gives a collection of words on the left side of an equa… |
| 1308 | Running Total for Different Genders | 🟡 Medium | 55s | The problem is asking us to compute cumulative scores for each gend… |
| 1309 | Decrypt String from Alphabet to Integer Mapping | 🟢 Easy | 1m 17s | The problem gives us a string containing digits and the '' characte… |
| 1310 | XOR Queries of a Subarray | 🟡 Medium | 46s | You asked for the complete guide in a single response, but your pre… |
| 1311 | Get Watched Videos by Your Friends | 🟡 Medium | 1m 33s | This problem models a social network as an undirected graph. Each p… |
| 1312 | Minimum Insertion Steps to Make a String Palindrome | 🔴 Hard | 1m 25s | Edit The problem gives us a string s and asks for the minimum numbe… |
| 1313 | Decompress Run-Length Encoded List | 🟢 Easy | 1m 13s | This problem asks us to reconstruct an array that was compressed us… |
| 1314 | Matrix Block Sum | 🟡 Medium | 59s | The problem requires computing a matrix block sum. Given a matrix m… |
| 1315 | Sum of Nodes with Even-Valued Grandparent | 🟡 Medium | 2m 26s | That is a long, structured reference document and will exceed a sin… |
| 1316 | Distinct Echo Substrings | 🔴 Hard | 59s | The problem asks us to find the number of distinct non-empty substr… |
| 1317 | Convert Integer to the Sum of Two No-Zero Integers | 🟢 Easy | 1m 10s | The problem asks us to split a given integer n into two positive in… |
| 1318 | Minimum Flips to Make a OR b Equal to c | 🟡 Medium | 1m 5s | The problem gives us three positive integers, a, b, and c. We are a… |
| 1319 | Number of Operations to Make Network Connected | 🟡 Medium | 1m 29s | This problem models a computer network as an undirected graph. Each… |
| 1320 | Minimum Distance to Type a Word Using Two Fingers | 🔴 Hard | 1m 30s | The keyboard is arranged in a fixed grid layout containing the 26 u… |
| 1321 | Restaurant Growth | 🟡 Medium | 1m 38s | This problem asks us to compute a rolling seven day summary of rest… |
| 1322 | Ads Performance | 🟢 Easy | 1m 12s | This problem asks us to calculate the Click-Through Rate, abbreviat… |
| 1323 | Maximum 69 Number | 🟢 Easy | 1m 7s | The problem gives us a positive integer num that contains only the … |
| 1324 | Print Words Vertically | 🟡 Medium | 51s | The problem requires us to take a string s containing multiple word… |
| 1325 | Delete Leaves With a Given Value | 🟡 Medium | 1m 27s | This problem asks us to repeatedly remove leaf nodes from a binary … |
| 1326 | Minimum Number of Taps to Open to Water a Garden | 🔴 Hard | 1m 24s | The problem describes a one-dimensional garden that stretches from … |
| 1327 | List the Products Ordered in a Period | 🟢 Easy | 54s | The problem asks us to list all products that have been ordered in … |
| 1328 | Break a Palindrome | 🟡 Medium | 1m 1s | The problem asks us to modify a given palindromic string in such a … |
| 1329 | Sort the Matrix Diagonally | 🟡 Medium | 1m 34s | The problem asks us to sort every diagonal of a matrix independentl… |
| 1330 | Reverse Subarray To Maximize Array Value | 🔴 Hard | 1m 29s | The problem gives us an integer array nums and defines the "value" … |
| 1331 | Rank Transform of an Array | 🟢 Easy | 1m 11s | The problem asks us to replace every number in the input array with… |
| 1332 | Remove Palindromic Subsequences | 🟢 Easy | 1m 11s | The problem gives us a string s that contains only the characters '… |
| 1333 | Filter Restaurants by Vegan-Friendly, Price and Distance | 🟡 Medium | 1m 3s | The problem is asking us to filter and sort a list of restaurants b… |
| 1334 | Find the City With the Smallest Number of Neighbors at a Threshold Distance | 🟡 Medium | 1m 46s | Edit This problem gives us a weighted, undirected graph where each … |
| 1335 | Minimum Difficulty of a Job Schedule | 🔴 Hard | 1m 28s | The problem gives us an array jobDifficulty, where each element rep… |
| 1336 | Number of Transactions per Visit | 🔴 Hard | 59s | The problem asks us to analyze two database tables, Visits and Tran… |
| 1337 | The K Weakest Rows in a Matrix | 🟢 Easy | 59s | Here is a comprehensive, detailed solution guide for LeetCode 1337 … |
| 1338 | Reduce Array Size to The Half | 🟡 Medium | 1m 27s | Here is a complete, detailed technical solution guide for LeetCode … |
| 1339 | Maximum Product of Splitted Binary Tree | 🟡 Medium | 2m 22s | That is a long, structured technical document with multiple require… |
| 1340 | Jump Game V | 🔴 Hard | 47s | Here is a comprehensive solution guide for LeetCode 1340 following … |
| 1341 | Movie Rating | 🟡 Medium | 1m 8s | This problem works with three relational database tables: Movies, U… |
| 1342 | Number of Steps to Reduce a Number to Zero | 🟢 Easy | 1m 13s | The problem gives us a non-negative integer num and asks us to comp… |
| 1343 | Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold | 🟡 Medium | 1m 15s | This problem asks us to count how many contiguous subarrays of leng… |
| 1344 | Angle Between Hands of a Clock | 🟡 Medium | 1m 2s | This problem asks us to compute the smaller angle formed between th… |
| 1345 | Jump Game IV | 🔴 Hard | 59s | The problem is asking for the minimum number of steps required to r… |
| 1346 | Check If N and Its Double Exist | 🟢 Easy | 1m 40s | The problem gives an integer array arr and asks whether there exist… |
| 1347 | Minimum Number of Steps to Make Two Strings Anagram | 🟡 Medium | 1m 22s | This problem asks us to determine the minimum number of character r… |
| 1348 | Tweet Counts Per Frequency | 🟡 Medium | 56s | The problem is asking us to design a system that tracks tweets by t… |
| 1349 | Maximum Students Taking Exam | 🔴 Hard | 35s | LeetCode 1349 is long and detailed enough that a complete high qual… |
| 1350 | Students With Invalid Departments | 🟢 Easy | 1m 13s | This problem asks us to identify students who are enrolled in unive… |
| 1351 | Count Negative Numbers in a Sorted Matrix | 🟢 Easy | 49s | The problem asks us to count all the negative numbers in a 2D matri… |
| 1352 | Product of the Last K Numbers | 🟡 Medium | 1m 7s | This problem asks us to design a data structure that continuously p… |
| 1353 | Maximum Number of Events That Can Be Attended | 🟡 Medium | 1m 32s | The problem gives us a list of events, where each event is represen… |
| 1354 | Construct Target Array With Multiple Sums | 🔴 Hard | 58s | The problem asks whether it is possible to construct a given target… |
| 1355 | Activity Participants | 🟡 Medium | 1m 3s | This problem asks us to analyze participation counts for different … |
| 1356 | Sort Integers by The Number of 1 Bits | 🟢 Easy | 54s | The problem asks us to sort an integer array arr based on the numbe… |
| 1357 | Apply Discount Every n Orders | 🟡 Medium | 1m 7s | The problem describes a supermarket that sells products identified … |
| 1358 | Number of Substrings Containing All Three Characters | 🟡 Medium | 54s | The problem asks us to count all substrings of a given string s tha… |
| 1359 | Count All Valid Pickup and Delivery Options | 🔴 Hard | 45s | This problem asks us to count the number of valid sequences for per… |
| 1360 | Number of Days Between Two Dates | 🟢 Easy | 1m 16s | The problem gives two dates in the format YYYY-MM-DD and asks us to… |
| 1361 | Validate Binary Tree Nodes | 🟡 Medium | 1m 26s | The problem gives us n nodes labeled from 0 to n - 1. For every nod… |
| 1362 | Closest Divisors | 🟡 Medium | 1m 8s | The problem gives us an integer num, and asks us to find two intege… |
| 1363 | Largest Multiple of Three | 🔴 Hard | 36s | I can do that, but the guide will be very long and may get truncate… |
| 1364 | Number of Trusted Contacts of a Customer | 🟡 Medium | 54s | This problem asks us to analyze relationships between customers, th… |
| 1365 | How Many Numbers Are Smaller Than the Current Number | 🟢 Easy | 1m 3s | The problem asks us to determine, for each element in an array, how… |
| 1366 | Rank Teams by Votes | 🟡 Medium | 1m 13s | The problem describes a voting based ranking system where every vot… |
| 1367 | Linked List in Binary Tree | 🟡 Medium | 1m 18s | This problem asks whether a linked list appears as a continuous dow… |
| 1368 | Minimum Cost to Make at Least One Valid Path in a Grid | 🔴 Hard | 1m 19s | This problem gives us a two dimensional grid where every cell conta… |
| 1369 | Get the Second Most Recent Activity | 🔴 Hard | 1m 43s | The problem gives us a database table named UserActivity that store… |
| 1370 | Increasing Decreasing String | 🟢 Easy | 54s | The problem requires us to reorder a string s by repeatedly picking… |
| 1371 | Find the Longest Substring Containing Vowels in Even Counts | 🟡 Medium | 1m 1s | This problem asks us to find the length of the longest contiguous s… |
| 1372 | Longest ZigZag Path in a Binary Tree | 🟡 Medium | 1m 20s | In this problem, we are given the root node of a binary tree, and w… |
| 1373 | Maximum Sum BST in Binary Tree | 🔴 Hard | 1m 31s | This problem asks us to examine every possible subtree inside a bin… |
| 1374 | Generate a String With Characters That Have Odd Counts | 🟢 Easy | 1m 1s | The problem asks us to generate a string of length n such that each… |
| 1375 | Number of Times Binary String Is Prefix-Aligned | 🟡 Medium | 1m 3s | The problem asks us to determine how many times a binary string bec… |
| 1376 | Time Needed to Inform All Employees | 🟡 Medium | 1m | The problem asks us to calculate the total time it takes for a piec… |
| 1377 | Frog Position After T Seconds | 🔴 Hard | 1m 32s | This problem describes a frog moving through an undirected tree. A … |
| 1378 | Replace Employee ID With The Unique Identifier | 🟢 Easy | 1m 30s | This problem asks us to combine information from two database table… |
| 1379 | Find a Corresponding Node of a Binary Tree in a Clone of That Tree | 🟢 Easy | 5m 1s | The traversal is by reference, not value. |
| 1380 | Lucky Numbers in a Matrix | 🟢 Easy | 1m 10s | This problem asks us to identify all lucky numbers in a given matri… |
| 1381 | Design a Stack With Increment Operation | 🟡 Medium | 2m 20s | This problem requires designing a specialized stack data structure,… |
| 1382 | Balance a Binary Search Tree | 🟡 Medium | 1m 11s | Here is a complete, detailed technical solution guide for LeetCode … |
| 1383 | Maximum Performance of a Team | 🔴 Hard | 1m 35s | This problem asks us to build a team of at most k engineers such th… |
| 1384 | Total Sales Amount by Year | 🔴 Hard | 1m 26s | This is a SQL database problem where we need to calculate the total… |
| 1385 | Find the Distance Value Between Two Arrays | 🟢 Easy | 56s | The problem is asking us to compute the distance value between two … |
| 1386 | Cinema Seat Allocation | 🟡 Medium | 1m 10s | Here is a complete, detailed technical solution guide for LeetCode … |
| 1387 | Sort Integers by The Power Value | 🟡 Medium | 1m 15s | This problem asks us to rank integers according to a special metric… |
| 1388 | Pizza With 3n Slices | 🔴 Hard | 1m 39s | In this problem, we are given a circular pizza divided into 3n slic… |
| 1389 | Create Target Array in the Given Order | 🟢 Easy | 1m 4s | This problem asks us to build a new array called target by followin… |
| 1390 | Four Divisors | 🟡 Medium | 1m 8s | The problem asks us to calculate the sum of divisors for numbers in… |
| 1391 | Check if There is a Valid Path in a Grid | 🟡 Medium | 1m 16s | The problem presents a grid where each cell represents a street seg… |
| 1392 | Longest Happy Prefix | 🔴 Hard | 1m 27s | The problem asks us to find the longest substring that is both a pr… |
| 1393 | Capital Gain/Loss | 🟡 Medium | 1m 20s | The Stocks table records stock trading activity. Each row represent… |
| 1394 | Find Lucky Integer in an Array | 🟢 Easy | 1m 6s | This problem asks us to identify a special number in an array calle… |
| 1395 | Count Number of Teams | 🟡 Medium | 1m 4s | The problem asks us to count the number of valid teams of three sol… |
| 1396 | Design Underground System | 🟡 Medium | 1m 26s | This problem asks us to design a small tracking system for an under… |
| 1397 | Find All Good Strings | 🔴 Hard | 1m 32s | The problem asks us to count how many strings of length n satisfy t… |
| 1398 | Customers Who Bought Products A and B but Not C | 🟡 Medium | 1m 2s | The problem asks us to identify customers who meet a very specific … |
| 1399 | Count Largest Group | 🟢 Easy | 1m 21s | The problem asks us to group all integers from 1 to n based on the … |