LeetCode 14xx
LeetCode problems 1400–1499
LeetCode 14xx
| # | Problem | Difficulty | Time | Notes |
|---|---|---|---|---|
| 1400 | Construct K Palindrome Strings | 🟡 Medium | 1m 12s | The problem is asking whether a given string s can be rearranged to… |
| 1401 | Circle and Rectangle Overlapping | 🟡 Medium | 4m 28s | The problem gives two geometric shapes: 1. A circle, defined by: - … |
| 1402 | Reducing Dishes | 🔴 Hard | 1m 9s | In this problem, we are given an integer array called satisfaction,… |
| 1403 | Minimum Subsequence in Non-Increasing Order | 🟢 Easy | 1m 24s | The problem gives an integer array nums and asks us to build a subs… |
| 1404 | Number of Steps to Reduce a Number in Binary Representation to One | 🟡 Medium | 1m 10s | The problem gives us a binary number represented as a string s. Our… |
| 1405 | Longest Happy String | 🟡 Medium | 1m 28s | The problem asks us to construct the longest possible string using … |
| 1406 | Stone Game III | 🔴 Hard | 1m 25s | In this game, two players, Alice and Bob, take turns removing stone… |
| 1407 | Top Travellers | 🟢 Easy | 1m 26s | This problem gives us two database tables, Users and Rides. The Use… |
| 1408 | String Matching in an Array | 🟢 Easy | 1m 4s | You included two different problems in one message, and the second … |
| 1409 | Queries on a Permutation With Key | 🟡 Medium | 1m 12s | This problem asks us to simulate a dynamic permutation of integers … |
| 1410 | HTML Entity Parser | 🟡 Medium | 1m 13s | Here is a complete, detailed technical guide for LeetCode 1410 foll… |
| 1411 | Number of Ways to Paint N \u00d7 3 Grid | 🔴 Hard | 1m 1s | The problem asks us to determine the number of ways to paint a grid… |
| 1412 | Find the Quiet Students in All Exams | 🔴 Hard | 2m 4s | This problem asks us to identify students who are "quiet" across al… |
| 1413 | Minimum Value to Get Positive Step by Step Sum | 🟢 Easy | 7m | The problem gives us an integer array nums and asks us to determine… |
| 1414 | Find the Minimum Number of Fibonacci Numbers Whose Sum Is K | 🟡 Medium | 1m 2s | The problem asks us to find the minimum number of Fibonacci numbers… |
| 1415 | The k-th Lexicographical String of All Happy Strings of Length n | 🟡 Medium | 2m 53s | The problem asks us to generate strings of length n using only the … |
| 1416 | Restore The Array | 🔴 Hard | 1m 5s | The problem gives us a string s that represents several positive in… |
| 1417 | Reformat The String | 🟢 Easy | 1m 8s | The problem gives us an alphanumeric string s that contains only lo… |
| 1418 | Display Table of Food Orders in a Restaurant | 🟡 Medium | 1m 42s | The problem gives a list of restaurant orders. Each order contains … |
| 1419 | Minimum Number of Frogs Croaking | 🟡 Medium | 1m | The problem asks us to determine the minimum number of frogs needed… |
| 1420 | Build Array Where You Can Find The Maximum Exactly K Comparisons | 🔴 Hard | 1m 4s | This problem asks us to count the number of arrays of length n wher… |
| 1421 | NPV Queries | 🟢 Easy | 47s | The problem presents two database tables: NPV and Queries. The NPV … |
| 1422 | Maximum Score After Splitting a String | 🟢 Easy | 1m 21s | The problem gives us a binary string s, meaning the string contains… |
| 1423 | Maximum Points You Can Obtain from Cards | 🟡 Medium | 59s | The problem asks us to maximize the total points we can collect fro… |
| 1424 | Diagonal Traverse II | 🟡 Medium | 1m 10s | The problem asks us to traverse a jagged 2D integer array nums diag… |
| 1425 | Constrained Subsequence Sum | 🔴 Hard | 2m 20s | That is a long, structured reference document. To make sure I targe… |
| 1426 | Counting Elements | 🟢 Easy | 2m 21s | The problem asks us to count the number of elements in an array arr… |
| 1427 | Perform String Shifts | 🟢 Easy | 1m 13s | This problem asks us to simulate a sequence of string shift operati… |
| 1428 | Leftmost Column with at Least a One | 🟡 Medium | 1m 23s | This problem gives us access to a binary matrix where every row is … |
| 1429 | First Unique Number | 🟡 Medium | 1m 12s | The problem requires designing a data structure that can efficientl… |
| 1430 | Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree | 🟡 Medium | 56s | The problem asks us to determine whether a given array of integers … |
| 1431 | Kids With the Greatest Number of Candies | 🟢 Easy | 1m 1s | This problem asks us to determine which children could potentially … |
| 1432 | Max Difference You Can Get From Changing an Integer | 🟡 Medium | 1m 8s | The problem gives us an integer num, and we are allowed to perform … |
| 1433 | Check If a String Can Break Another String | 🟡 Medium | 56s | The problem asks us to determine whether one string can "break" ano… |
| 1434 | Number of Ways to Wear Different Hats to Each Other | 🔴 Hard | 1m 17s | This problem asks us to count how many valid ways exist to assign h… |
| 1435 | Create a Session Bar Chart | 🟢 Easy | 1m 8s | The problem provides a database table named Sessions with two colum… |
| 1436 | Destination City | 🟢 Easy | 1m 9s | In this problem, we are given a list of directed paths between citi… |
| 1437 | Check If All 1's Are at Least Length K Places Away | 🟢 Easy | 1m 6s | The problem asks us to check whether all 1s in a given binary array… |
| 1438 | Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit | 🟡 Medium | 52s | The problem asks us to find the length of the longest contiguous su… |
| 1439 | Find the Kth Smallest Sum of a Matrix With Sorted Rows | 🔴 Hard | 58s | The problem requires finding the kth smallest sum obtainable by sel… |
| 1440 | Evaluate Boolean Expression | 🟡 Medium | 1m 12s | This problem asks us to evaluate boolean expressions stored in a da… |
| 1441 | Build an Array With Stack Operations | 🟡 Medium | 1m 21s | The problem gives us a strictly increasing array called target and … |
| 1442 | Count Triplets That Can Form Two Arrays of Equal XOR | 🟡 Medium | 1m 9s | The problem asks us to find the number of triplets (i, j, k) in an … |
| 1443 | Minimum Time to Collect All Apples in a Tree | 🟡 Medium | 1m 6s | The problem is asking for the minimum time required to collect all … |
| 1444 | Number of Ways of Cutting a Pizza | 🔴 Hard | 1m 25s | Edit This problem asks us to count the number of valid ways to divi… |
| 1445 | Apples & Oranges | 🟡 Medium | 1m 32s | This problem provides a database table named Sales that stores the … |
| 1446 | Consecutive Characters | 🟢 Easy | 1m 5s | The problem asks us to compute the power of a string. The power is … |
| 1447 | Simplified Fractions | 🟡 Medium | 1m 4s | The problem asks us to generate all simplified fractions between 0 … |
| 1448 | Count Good Nodes in Binary Tree | 🟡 Medium | 1m 22s | The problem gives us the root of a binary tree and asks us to count… |
| 1449 | Form Largest Integer With Digits That Add up to Target | 🔴 Hard | 1m 22s | This problem asks us to construct the numerically largest possible … |
| 1450 | Number of Students Doing Homework at a Given Time | 🟢 Easy | 57s | This problem asks us to determine how many students are doing homew… |
| 1451 | Rearrange Words in a Sentence | 🟡 Medium | 1m 37s | The problem gives us a sentence where words are separated by single… |
| 1452 | People Whose List of Favorite Companies Is Not a Subset of Another List | 🟡 Medium | 55s | The problem requires identifying all people in a group whose list o… |
| 1453 | Maximum Number of Darts Inside of a Circular Dartboard | 🔴 Hard | 1m 19s | In this problem, we are given the coordinates of several darts thro… |
| 1454 | Active Users | 🟡 Medium | 1m 7s | The problem asks us to identify active users from a database contai… |
| 1455 | Check If a Word Occurs As a Prefix of Any Word in a Sentence | 🟢 Easy | 52s | The problem asks us to determine whether a given searchWord occurs … |
| 1456 | Maximum Number of Vowels in a Substring of Given Length | 🟡 Medium | 56s | This problem asks us to determine the maximum number of vowels that… |
| 1457 | Pseudo-Palindromic Paths in a Binary Tree | 🟡 Medium | 1m 19s | This problem asks us to count how many root to leaf paths in a bina… |
| 1458 | Max Dot Product of Two Subsequences | 🔴 Hard | 1m 14s | The problem is asking to find the maximum dot product of two non-em… |
| 1459 | Rectangles Area | 🟡 Medium | 1m 10s | You included two different problems in one message, and the second … |
| 1460 | Make Two Arrays Equal by Reversing Subarrays | 🟢 Easy | 1m 20s | This problem asks whether one integer array, arr, can be transforme… |
| 1461 | Check If a String Contains All Binary Codes of Size K | 🟡 Medium | 1m 24s | The problem gives us a binary string s and an integer k. A binary s… |
| 1462 | Course Schedule IV | 🟡 Medium | 1m 38s | This problem gives us a directed acyclic graph representing course … |
| 1463 | Cherry Pickup II | 🔴 Hard | 1m 16s | Here is a complete, detailed technical solution guide for LeetCode … |
| 1464 | Maximum Product of Two Elements in an Array | 🟢 Easy | 1m 15s | The problem gives an integer array nums, and asks us to choose two … |
| 1465 | Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts | 🟡 Medium | 1m 8s | This problem gives us a rectangular cake with height h and width w.… |
| 1466 | Reorder Routes to Make All Paths Lead to the City Zero | 🟡 Medium | 1m 26s | The problem gives us a directed graph of cities connected by roads.… |
| 1467 | Probability of a Two Boxes Having The Same Number of Distinct Balls | 🔴 Hard | 1m 24s | The problem gives us several colors of balls, where balls[i] repres… |
| 1468 | Calculate Salaries | 🟡 Medium | 1m | This problem asks us to compute the post tax salary for every emplo… |
| 1469 | Find All The Lonely Nodes | 🟢 Easy | 1m 17s | This problem asks us to traverse a binary tree and identify every n… |
| 1470 | Shuffle the Array | 🟢 Easy | 1m 18s | The problem gives us an array nums with exactly 2n elements. The st… |
| 1471 | The k Strongest Values in an Array | 🟡 Medium | 1m 16s | This problem asks us to find the k strongest values in an array acc… |
| 1472 | Design Browser History | 🟡 Medium | 54s | The problem is asking us to simulate a single-tab browser with a hi… |
| 1473 | Paint House III | 🔴 Hard | 1m 20s | This problem asks us to paint a row of houses while satisfying two … |
| 1474 | Delete N Nodes After M Nodes of a Linked List | 🟢 Easy | 1m 11s | This problem gives us the head of a singly linked list and two inte… |
| 1475 | Final Prices With a Special Discount in a Shop | 🟢 Easy | 1m 2s | The problem presents a scenario where you are buying items in a sho… |
| 1476 | Subrectangle Queries | 🟡 Medium | 1m 40s | The problem asks us to design a class called SubrectangleQueries th… |
| 1477 | Find Two Non-overlapping Sub-arrays Each With Target Sum | 🟡 Medium | 1m 19s | The problem asks us to find two different subarrays inside the give… |
| 1478 | Allocate Mailboxes | 🔴 Hard | 1m 39s | Here’s a complete, detailed technical solution guide for LeetCode 1… |
| 1479 | Sales by Day of the Week | 🔴 Hard | 1m 7s | The problem asks us to generate a sales report that summarizes the … |
| 1480 | Running Sum of 1d Array | 🟢 Easy | 1m 1s | The problem asks us to compute the running sum, also called the pre… |
| 1481 | Least Number of Unique Integers after K Removals | 🟡 Medium | 58s | This problem asks us to minimize the number of unique integers in a… |
| 1482 | Minimum Number of Days to Make m Bouquets | 🟡 Medium | 48s | This problem asks us to determine the minimum number of days requir… |
| 1483 | Kth Ancestor of a Tree Node | 🔴 Hard | 1m 35s | The problem gives us a rooted tree with n nodes labeled from 0 to n… |
| 1484 | Group Sold Products By The Date | 🟢 Easy | 1m 29s | The problem gives us a database table named Activities with two col… |
| 1485 | Clone Binary Tree With Random Pointer | 🟡 Medium | 2m 24s | That’s a detailed reference guide with multiple required sections a… |
| 1486 | XOR Operation in an Array | 🟢 Easy | 1m | The problem gives us two integers, n and start. We must construct a… |
| 1487 | Making File Names Unique | 🟡 Medium | 1m 33s | The problem asks us to simulate how a file system assigns folder na… |
| 1488 | Avoid Flood in The City | 🟡 Medium | 55s | The problem asks us to simulate rainfall over a series of lakes and… |
| 1489 | Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree | 🔴 Hard | 1m 50s | The problem gives us a connected, weighted, undirected graph with n… |
| 1490 | Clone N-ary Tree | 🟡 Medium | 1m 10s | This problem asks us to create a deep copy of an N-ary tree. An N-a… |
| 1491 | Average Salary Excluding the Minimum and Maximum Salary | 🟢 Easy | 1m 8s | The problem gives us an array called salary, where each element rep… |
| 1492 | The kth Factor of n | 🟡 Medium | 1m 16s | The problem asks us to find the kth factor of a positive integer n,… |
| 1493 | Longest Subarray of 1's After Deleting One Element | 🟡 Medium | 52s | This problem asks us to find the longest contiguous subarray of 1s … |
| 1494 | Parallel Courses II | 🔴 Hard | 51s | The problem asks us to determine the minimum number of semesters re… |
| 1495 | Friendly Movies Streamed Last Month | 🟢 Easy | 1m 30s | This problem asks us to find the titles of movies that satisfy thre… |
| 1496 | Path Crossing | 🟢 Easy | 53s | This problem asks us to simulate movement on a 2D plane according t… |
| 1497 | Check If Array Pairs Are Divisible by k | 🟡 Medium | 50s | I can do that, but the full guide at the level of detail you reques… |
| 1498 | Number of Subsequences That Satisfy the Given Sum Condition | 🟡 Medium | 54s | The problem asks us to find the number of non-empty subsequences of… |
| 1499 | Max Value of Equation | 🔴 Hard | 1m 8s | This guide will focus on the optimal monotonic queue solution, whic… |