LeetCode 15xx

LeetCode problems 1500–1599

100 items

LeetCode 15xx

# Problem Difficulty Time Notes
1500 Design a File Sharing System 🟡 Medium 1m 26s This problem asks us to design a miniature peer-to-peer file sharin…
1501 Countries You Can Safely Invest In 🟡 Medium 1m 2s This is a SQL database problem where we need to identify countries …
1502 Can Make Arithmetic Progression From Sequence 🟢 Easy 52s The problem asks us to determine whether the elements of a given ar…
1503 Last Moment Before All Ants Fall Out of a Plank 🟡 Medium 55s The problem describes a plank of length n on which ants are walking…
1504 Count Submatrices With All Ones 🟡 Medium 1m 34s The problem gives us an m x n binary matrix where each cell contain…
1505 Minimum Possible Integer After at Most K Adjacent Swaps On Digits 🔴 Hard 1m 16s The problem gives us a numeric string num and an integer k. Each op…
1506 Find Root of N-Ary Tree 🟡 Medium 1m 7s This problem gives us every node of an N-ary tree in an arbitrary o…
1507 Reformat Date 🟢 Easy 1m 14s The problem gives a date string in a human readable format such as …
1508 Range Sum of Sorted Subarray Sums 🟡 Medium 56s The problem requires calculating the sum of a subrange of all possi…
1509 Minimum Difference Between Largest and Smallest Value in Three Moves 🟡 Medium 1m 9s The problem gives us an integer array nums, and we are allowed to p…
1510 Stone Game IV 🔴 Hard 1m 11s This problem is a two-player combinatorial game problem where Alice…
1511 Customer Order Frequency 🟢 Easy 58s This problem asks us to identify customers who consistently spend a…
1512 Number of Good Pairs 🟢 Easy 1m 16s The problem gives us an integer array nums and asks us to count how…
1513 Number of Substrings With Only 1s 🟡 Medium 1m 7s The problem gives a binary string s, consisting only of the charact…
1514 Path with Maximum Probability 🟡 Medium 55s Your requested guide is substantial enough that a high quality vers…
1515 Best Position for a Service Centre 🔴 Hard 52s The problem asks us to find the optimal location for a service cent…
1516 Move Sub-Tree of N-Ary Tree 🔴 Hard 1m 45s This problem asks us to modify the structure of an N-ary tree by mo…
1517 Find Users With Valid E-Mails 🟢 Easy 1m 24s This problem asks us to query a database table named Users and retu…
1518 Water Bottles 🟢 Easy 40s The problem is asking us to determine the maximum number of water b…
1519 Number of Nodes in the Sub-Tree With the Same Label 🟡 Medium 49s The problem gives us a tree with n nodes numbered from 0 to n - 1. …
1520 Maximum Number of Non-Overlapping Substrings 🔴 Hard 1m 18s This problem asks us to select as many non-overlapping substrings a…
1521 Find a Value of a Mysterious Function Closest to Target 🔴 Hard 1m 10s The problem defines a mysterious function func(arr, l, r) that comp…
1522 Diameter of N-Ary Tree 🟡 Medium 1m 12s This problem asks us to compute the diameter of an N-ary tree. An N…
1523 Count Odd Numbers in an Interval Range 🟢 Easy 1m 37s The problem gives two non-negative integers, low and high, represen…
1524 Number of Sub-arrays With Odd Sum 🟡 Medium 54s The problem asks us to count the number of subarrays within a given…
1525 Number of Good Ways to Split a String 🟡 Medium 1m 26s The problem asks us to count how many ways we can split a string in…
1526 Minimum Number of Increments on Subarrays to Form a Target Array 🔴 Hard 1m 28s The problem gives us a target array and asks us to build it startin…
1527 Patients With a Condition 🟢 Easy 1m 29s The problem asks us to query a database table Patients and return t…
1528 Shuffle String 🟢 Easy 1m 4s The problem asks us to take a string s and an integer array indices…
1529 Minimum Suffix Flips 🟡 Medium 53s This problem is asking us to transform an initial binary string s (…
1530 Number of Good Leaf Nodes Pairs 🟡 Medium 1m 29s This problem gives us the root of a binary tree and an integer dist…
1531 String Compression II 🔴 Hard 1m 30s The problem asks us to minimize the length of a run-length encoded …
1532 The Most Recent Three Orders 🟡 Medium 1m 8s This problem asks us to retrieve the three most recent orders for e…
1533 Find the Index of the Large Integer 🟡 Medium 53s The problem presents an array arr where all elements are equal exce…
1534 Count Good Triplets 🟢 Easy 1m 25s The problem asks us to count the number of good triplets in an inte…
1535 Find the Winner of an Array Game 🟡 Medium 1m 11s The problem describes a competitive game played on an array of dist…
1536 Minimum Swaps to Arrange a Binary Grid 🟡 Medium 1m 32s The problem gives us an n x n binary matrix called grid. Each cell …
1537 Get the Maximum Score 🔴 Hard 49s Here’s a complete, detailed technical solution guide for LeetCode 1…
1538 Guess the Majority in a Hidden Array 🟡 Medium 1m 46s This problem is an interactive problem. We do not receive the actua…
1539 Kth Missing Positive Number 🟢 Easy 1m 12s The problem gives us a strictly increasing array of positive intege…
1540 Can Convert String in K Moves 🟡 Medium 55s The problem is asking whether it is possible to convert one string …
1541 Minimum Insertions to Balance a Parentheses String 🟡 Medium 1m 15s This problem asks us to transform a string of parentheses into a sp…
1542 Find Longest Awesome Substring 🔴 Hard 53s The problem asks us to find the length of the longest awesome subst…
1543 Fix Product Name Format 🟢 Easy 54s The problem asks us to clean and aggregate sales data from a Sales …
1544 Make The String Great 🟢 Easy 46s The problem asks us to process a string s consisting of lowercase a…
1545 Find Kth Bit in Nth Binary String 🟡 Medium 1m 20s The problem defines a recursively constructed binary string sequenc…
1546 Maximum Number of Non-Overlapping Subarrays With Sum Equals Target 🟡 Medium 1m This problem asks us to find the maximum number of non-overlapping …
1547 Minimum Cost to Cut a Stick 🔴 Hard 59s The problem asks us to determine the minimum total cost of cutting …
1548 The Most Similar Path in a Graph 🔴 Hard 1m 52s The problem gives us an undirected connected graph where each node …
1549 The Most Recent Orders for Each Product 🟡 Medium 1m 37s This problem asks us to find the most recent order for every produc…
1550 Three Consecutive Odds 🟢 Easy 51s This problem asks us to examine a list of integers, arr, and determ…
1551 Minimum Operations to Make Array Equal 🟡 Medium 51s The problem presents an array arr of length n where each element is…
1552 Magnetic Force Between Two Balls 🟡 Medium 48s The problem asks us to distribute m balls into n baskets located at…
1553 Minimum Number of Days to Eat N Oranges 🔴 Hard 1m 18s This problem asks us to compute the minimum number of days required…
1554 Strings Differ by One Character 🟡 Medium 1m 15s This problem gives us an array of unique strings called dict, where…
1555 Bank Account Summary 🟡 Medium 1m 33s The problem gives us two database tables, Users and Transactions, a…
1556 Thousand Separator 🟢 Easy 1m 9s The problem asks us to format a non-negative integer so that every …
1557 Minimum Number of Vertices to Reach All Nodes 🟡 Medium 54s The problem is asking us to identify the minimum set of vertices in…
1558 Minimum Numbers of Function Calls to Make Target Array 🟡 Medium 55s This problem asks us to transform an initial array arr of zeros int…
1559 Detect Cycles in 2D Grid 🟡 Medium 55s The problem asks us to detect cycles in a 2D grid of characters whe…
1560 Most Visited Sector in a Circular Track 🟢 Easy 1m 22s In this problem, we are given a circular track divided into n secto…
1561 Maximum Number of Coins You Can Get 🟡 Medium 1m 21s The problem gives us an array called piles, where each element repr…
1562 Find Latest Group of Size M 🟡 Medium 1m 31s Edit This problem gives us a permutation array arr containing integ…
1563 Stone Game V 🔴 Hard 1m 31s In this game, we are given an array stoneValue where each element r…
1564 Put Boxes Into the Warehouse I 🟡 Medium 1m 32s The problem gives us two arrays: - boxes, where each value represen…
1565 Unique Orders and Customers Per Month 🟢 Easy 39s This problem requires analyzing a table of orders to calculate mont…
1566 Detect Pattern of Length M Repeated K or More Times 🟢 Easy 1m 18s The problem gives us an integer array arr and two integers, m and k…
1567 Maximum Length of Subarray With Positive Product 🟡 Medium 1m 25s The problem asks us to find the length of the longest contiguous su…
1568 Minimum Number of Days to Disconnect Island 🔴 Hard 1m 34s The problem gives us a binary matrix where each cell is either land…
1569 Number of Ways to Reorder Array to Get Same BST 🔴 Hard 1m 27s The problem gives us a permutation of integers from 1 to n, and we …
1570 Dot Product of Two Sparse Vectors 🟡 Medium 1m 21s This problem asks us to efficiently compute the dot product between…
1571 Warehouse Manager 🟢 Easy 1m 40s This problem asks us to calculate the total storage volume occupied…
1572 Matrix Diagonal Sum 🟢 Easy 1m 7s The problem gives us a square matrix mat of size n x n. A square ma…
1573 Number of Ways to Split a String 🟡 Medium 1m 28s The problem gives us a binary string s, meaning the string contains…
1574 Shortest Subarray to be Removed to Make Array Sorted 🟡 Medium 48s Please provide the full problem statement or LeetCode number you wa…
1575 Count All Possible Routes 🔴 Hard 1m 24s This problem gives us a set of cities positioned on a number line. …
1576 Replace All ?'s to Avoid Consecutive Repeating Characters 🟢 Easy 44s This problem asks us to take a string s consisting of lowercase Eng…
1577 Number of Ways Where Square of Number Is Equal to Product of Two Numbers 🟡 Medium 1m 35s The problem gives us two integer arrays, nums1 and nums2. We must c…
1578 Minimum Time to Make Rope Colorful 🟡 Medium 1m 3s The problem requires transforming a rope of balloons into a "colorf…
1579 Remove Max Number of Edges to Keep Graph Fully Traversable 🔴 Hard 59s The problem presents an undirected graph with n nodes and three typ…
1580 Put Boxes Into the Warehouse II 🟡 Medium 1m 45s In this problem, we are given two arrays: - boxes, where each value…
1581 Customer Who Visited but Did Not Make Any Transactions 🟢 Easy 3m The problem gives us two database tables, Visits and Transactions. …
1582 Special Positions in a Binary Matrix 🟢 Easy 58s Here is a complete, detailed technical solution guide for LeetCode …
1583 Count Unhappy Friends 🟡 Medium 1m 38s In this problem, we are given n friends, where n is always even. Ev…
1584 Min Cost to Connect All Points 🟡 Medium 1m 30s This problem asks us to connect all given points on a 2D plane with…
1585 Check If String Is Transformable With Substring Sort Operations 🔴 Hard 1m 26s This problem asks whether we can transform one digit string, s, int…
1586 Binary Search Tree Iterator II 🟡 Medium 51s The problem requires implementing a BSTIterator class that allows f…
1587 Bank Account Summary II 🟢 Easy 1m 26s This problem asks us to analyze banking transaction data and determ…
1588 Sum of All Odd Length Subarrays 🟢 Easy 47s The problem asks us to calculate the sum of all odd-length subarray…
1589 Maximum Sum Obtained of Any Permutation 🟡 Medium 1m 30s The problem gives us an integer array nums and a collection of rang…
1590 Make Sum Divisible by P 🟡 Medium 55s This problem asks us to determine the smallest contiguous subarray …
1591 Strange Printer II 🔴 Hard 1m 38s In this problem, we are given a final colored matrix called targetG…
1592 Rearrange Spaces Between Words 🟢 Easy 48s The problem requires rearranging spaces in a given string text so t…
1593 Split a String Into the Max Number of Unique Substrings 🟡 Medium 1m 29s This problem asks us to split a string into the largest possible nu…
1594 Maximum Non Negative Product in a Matrix 🟡 Medium 1m 13s The problem asks us to navigate a m x n integer matrix grid from th…
1595 Minimum Cost to Connect Two Groups of Points 🔴 Hard 1m 14s The problem is asking us to find the minimum cost to connect two gr…
1596 The Most Frequently Ordered Products for Each Customer 🟡 Medium 1m 6s The problem requires us to find the most frequently ordered product…
1597 Build Binary Expression Tree From Infix Expression 🔴 Hard 1m 40s The problem asks us to construct a binary expression tree from a va…
1598 Crawler Log Folder 🟢 Easy 3m 42s In this problem, we are simulating navigation inside a file system.…
1599 Maximum Profit of Operating a Centennial Wheel 🟡 Medium 1m 48s This problem asks us to simulate the operation of a Centennial Whee…