1996 | The Number of Weak Characters in the Game | Solution | | Medium | |
1995 | Count Special Quadruplets | Solution | | Easy | |
1993 | Operations on Tree | Solution | | Medium | HashTable, DFS, Design, Tree |
1992 | Find All Groups of Farmland | Solution | | Medium | |
1991 | Find the Middle Index in Array | Solution | | Easy | |
1985 | Find the Kth Largest Integer in the Array | Solution | | Medium | |
1984 | Minimum Difference Between Highest and Lowest of K Scores | Solution | | Easy | |
1981 | Minimize the Difference Between Target and Chosen Elements | Solution | | Medium | DP |
1980 | Find Unique Binary String | Solution | | Medium | |
1979 | Find Greatest Common Divisor of Array | Solution | | Easy | |
1974 | Minimum Time to Type Word Using Special Typewriter | Solution | | Easy | |
1973 | Count Nodes Equal to Sum of Descendants | Solution | | Medium | Tree, DFS |
1971 | Find if Path Exists in Graph | Solution | | Easy | BFS, DFS, Graph |
1968 | Array With Elements Not Equal to Average of Neighbors | Solution | | Medium | |
1967 | Number of Strings That Appear as Substrings in Word | Solution | | Easy | |
1966 | Binary Searchable Numbers in an Unsorted Array | Solution | | Medium | Array, Binary Search |
1961 | Check If String Is a Prefix of Array | Solution | | Easy | |
1957 | Delete Characters to Make Fancy String | Solution | | Easy | String |
1952 | Three Divisors | Solution | | Easy | |
1945 | Sum of Digits of String After Convert | Solution | | Easy | |
1941 | Check if All Characters Have Equal Number of Occurrences | Solution | | Easy | |
1936 | Add Minimum Number of Rungs | Solution | | Medium | |
1935 | Maximum Number of Words You Can Type | Solution | | Easy | String |
1933 | Check if String Is Decomposable Into Value-Equal Substrings | Solution | | Easy | String |
1929 | Concatenation of Array | Solution | | Easy | |
1926 | Nearest Exit from Entrance in Maze | Solution | | Medium | DP, DFS, BFS |
1925 | Count Square Sum Triples | Solution | | Easy | Array, Greedy |
1920 | Build Array from Permutation | Solution | | Easy | |
1913 | Maximum Product Difference Between Two Pairs | Solution | | Easy | Sort |
1910 | Remove All Occurrences of a Substring | Solution | 📺 | Medium | String |
1909 | Remove One Element to Make the Array Strictly Increasing | Solution | | Easy | Array |
1904 | The Number of Full Rounds You Have Played | Solution | | Medium | String, Greedy |
1903 | Largest Odd Number in String | Solution | 📺 | Easy | Greedy |
1899 | Merge Triplets to Form Target Triplet | Solution | | Medium | Array, Greedy |
1897 | Redistribute Characters to Make All Strings Equal | Solution | | Easy | String, Greedy |
1894 | Find the Student that Will Replace the Chalk | Solution | | Medium | |
1893 | Check if All the Integers in a Range Are Covered | Solution | | Easy | Array, HashTable, Prefix Sum |
1891 | Cutting Ribbons | Solution | | Medium | Array, Binary Search |
1886 | Determine Whether Matrix Can Be Obtained By Rotation | Solution | | Easy | Array |
1880 | Check if Word Equals Summation of Two Words | Solution | | Easy | String |
1877 | Minimize Maximum Pair Sum in Array | Solution | | Medium | Greedy, Sort |
1876 | Substrings of Size Three with Distinct Characters | Solution | | Easy | String |
1874 | Minimize Product Sum of Two Arrays | Solution | | Medium | Array, Greedy, Sorting |
1869 | Longer Contiguous Segments of Ones than Zeros | Solution | | Easy | Array, Two Pointers |
1868 | Product of Two Run-Length Encoded Arrays | Solution | | Medium | Two Pointers |
1863 | Sum of All Subset XOR Totals | Solution | | Easy | Backtracking, Recursion |
1862 | Sum of Floored Pairs | Solution | | Hard | Math |
1861 | Rotating the Box | Solution | 📺 | Medium | Array, Two Pointers |
1860 | Incremental Memory Leak | Solution | | Medium | Math |
1859 | Sorting the Sentence | Solution | | Easy | String, Sort |
1854 | Maximum Population Year | Solution | | Easy | Array |
1848 | Minimum Distance to the Target Element | Solution | | Easy | Array |
1845 | Seat Reservation Manager | Solution | | Medium | Heap, Design |
1844 | Replace All Digits with Characters | Solution | | Easy | String |
1837 | Sum of Digits in Base K | Solution | | Easy | Math, Bit Manipulation |
1836 | Remove Duplicates From an Unsorted Linked List | Solution | | Medium | HashTable, LinkedList |
1833 | Maximum Ice Cream Bars | Solution | | Medium | Array, Sort |
1832 | Check if the Sentence Is Pangram | Solution | | Easy | String |
1829 | Maximum XOR for Each Query | Solution | | Medium | Bit Manipulation |
1828 | Queries on Number of Points Inside a Circle | Solution | 📺 | Medium | Math |
1827 | Minimum Operations to Make the Array Increasing | Solution | | Easy | Array, Greedy |
1826 | Faulty Sensor | Solution | | Easy | Array, Two Pointers |
1823 | Find the Winner of the Circular Game | Solution | | Medium | Array |
1822 | Sign of the Product of an Array | Solution | | Easy | Math |
1817 | Finding the Users Active Minutes | Solution | | Medium | HashTable |
1816 | Truncate Sentence | Solution | | Easy | String |
1814 | Count Nice Pairs in an Array | Solution | | Medium | Array, HashTable |
1813 | Sentence Similarity III | Solution | 📺 | Medium | String |
1812 | Determine Color of a Chessboard Square | Solution | | Easy | String |
1807 | Evaluate the Bracket Pairs of a String | Solution | | Medium | HashTable, String |
1806 | Minimum Number of Operations to Reinitialize a Permutation | Solution | | Medium | Array, Greedy |
1805 | Number of Different Integers in a String | Solution | | Medium | String |
1804 | Implement Trie II (Prefix Tree) | Solution | | Medium | Trie, Design |
1800 | Maximum Ascending Subarray Sum | Solution | | Easy | Two Pointers |
1797 | Design Authentication Manager | Solution | | Medium | HashTable, Design |
1796 | Second Largest Digit in a String | Solution | | Easy | String |
1792 | Maximum Average Pass Ratio | Solution | | Medium | Heap |
1791 | Find Center of Star Graph | Solution | | Medium | Graph |
1790 | Check if One String Swap Can Make Strings Equal | Solution | | Easy | String |
1785 | Minimum Elements to Add to Form a Given Sum | Solution | | Medium | Greedy |
1784 | Check if Binary String Has at Most One Segment of Ones | Solution | | Easy | Greedy |
1781 | Sum of Beauty of All Substrings | Solution | | Medium | HashTable, String |
1780 | Check if Number is a Sum of Powers of Three | Solution | | Medium | Math, Backtracking, Recursion |
1779 | Find Nearest Point That Has the Same X or Y Coordinate | Solution | | Easy | Array |
1775 | Equal Sum Arrays With Minimum Number of Operations | Solution | | Medium | Greedy |
1774 | Closest Dessert Cost | Solution | | Medium | Greedy |
1773 | Count Items Matching a Rule | Solution | 📺 | Easy | Array, String |
1772 | Sort Features by Popularity | Solution | 📺 | Medium | HashTable, Sort |
1769 | Minimum Number of Operations to Move All Balls to Each Box | Solution | | Medium | Array, Greedy |
1768 | Merge Strings Alternately | Solution | | Easy | String |
1765 | Map of Highest Peak | Solution | | Medium | BFS, Graph |
1764 | Form Array by Concatenating Subarrays of Another Array | Solution | | Medium | Array, Greedy |
1763 | Longest Nice Substring | Solution | | Easy | String |
1762 | Buildings With an Ocean View | Solution | | Medium | |
1759 | Count Number of Homogenous Substrings | Solution | | Medium | String ,Greedy |
1758 | Minimum Changes To Make Alternating Binary String | Solution | | Easy | Greedy, Array |
1756 | Design Most Recently Used Queue | Solution | | Medium | Array, Design, Dequeue |
1754 | Largest Merge Of Two Strings | Solution | | Medium | Greedy, Suffix Array |
1753 | Maximum Score From Removing Stones | Solution | | Medium | Math, Heap |
1752 | Check if Array Is Sorted and Rotated | Solution | | Easy | Array |
1750 | Minimum Length of String After Deleting Similar Ends | Solution | | Medium | Two Pointers |
1749 | Maximum Absolute Sum of Any Subarray | Solution | | Medium | Greedy |
1748 | Sum of Unique Elements | Solution | | Easy | Array, HashTable |
1746 | Maximum Subarray Sum After One Operation | Solution | | Medium | DP |
1745 | Palindrome Partitioning IV | Solution | | Hard | String, DP |
1743 | Restore the Array From Adjacent Pairs | Solution | | Medium | Greedy |
1742 | Maximum Number of Balls in a Box | Solution | | Easy | Array |
1740 | Find Distance in a Binary Tree | Solution | | Medium | DFS, BFS |
1736 | Latest Time by Replacing Hidden Digits | Solution | | Easy | String, Greedy |
1733 | Minimum Number of People to Teach | Solution | | Medium | Array, Greedy |
1732 | Find the Highest Altitude | Solution | | Easy | Array |
1730 | Shortest Path to Get Food | Solution | | Medium | BFS |
1727 | Largest Submatrix With Rearrangements | Solution | | Medium | Greedy, Sort |
1726 | Tuple with Same Product | Solution | 📺 | Medium | Array |
1725 | Number Of Rectangles That Can Form The Largest Square | Solution | | Easy | Greedy |
1721 | Swapping Nodes in a Linked List | Solution | | Medium | LinkedList |
1720 | Decode XORed Array | Solution | | Easy | Bit Manipulation |
1718 | Construct the Lexicographically Largest Valid Sequence | Solution | | Medium | Backtracking, Recursion |
1717 | Maximum Score From Removing Substrings | Solution | 📺 | Medium | Greedy |
1716 | Calculate Money in Leetcode Bank | Solution | | Easy | Math, Greedy |
1711 | Count Good Meals | Solution | | Medium | Array, HashTable, Two Pointers |
1710 | Maximum Units on a Truck | Solution | | Easy | Greedy, Sort |
1708 | Largest Subarray Length K | Solution | | Easy | Array, Greedy |
1705 | Maximum Number of Eaten Apples | Solution | | Medium | Heap, Greedy |
1704 | Determine if String Halves Are Alike | Solution | | Easy | String |
1701 | Average Waiting Time | Solution | | Medium | Array |
1700 | Number of Students Unable to Eat Lunch | Solution | | Easy | Array |
1695 | Maximum Erasure Value | Solution | | Medium | Two Pointers |
1694 | Reformat Phone Number | Solution | | Easy | String |
1690 | Stone Game VII | Solution | | Medium | DP |
1689 | Partitioning Into Minimum Number Of Deci-Binary Numbers | Solution | | Medium | Greedy |
1688 | Count of Matches in Tournament | Solution | | Easy | Backtracking |
1686 | Stone Game VI | Solution | | Medium | Greedy |
1685 | Sum of Absolute Differences in a Sorted Array | Solution | 📺 | Medium | Math, Greedy |
1684 | Count the Number of Consistent Strings | Solution | | Easy | String |
1680 | Concatenation of Consecutive Binary Numbers | Solution | | Medium | Math |
1679 | Max Number of K-Sum Pairs | Solution | | Medium | HashTable |
1678 | Goal Parser Interpretation | Solution | | Easy | String |
1676 | Lowest Common Ancestor of a Binary Tree IV | Solution | | Medium | Tree, DFS, Binary Tree |
1675 | Minimize Deviation in Array | Solution | | Hard | Heap, Ordered Map |
1673 | Find the Most Competitive Subsequence | Solution | 📺 | Medium | Stack, Greedy |
1672 | Richest Customer Wealth | Solution | | Easy | Array |
1670 | Design Front Middle Back Queue | Solution | | Medium | Linked List, Design, Dequeu |
1669 | Merge In Between Linked Lists | Solution | | Medium | LinedList |
1668 | Maximum Repeating Substring | Solution | | Easy | String |
1664 | Ways to Make a Fair Array | Javascript | | Medium | Greedy |
1663 | Smallest String With A Given Numeric Value | Solution | 📺 | Medium | Greedy |
1662 | Check If Two String Arrays are Equivalent | Solution | | Easy | String |
1660 | Correct a Binary Tree | Javascript, Java | | Medium | BFS, Tree |
1658 | Minimum Operations to Reduce X to Zero | Javascript, Java | | Medium | Greedy |
1657 | Determine if Two Strings Are Close | Solution | 📺 | Medium | Greedy |
1656 | Design an Ordered Stream | Solution | | Easy | Array, Design |
1653 | Minimum Deletions to Make String Balanced | Solution | | Medium | Array, DP, Stack |
1652 | Defuse the Bomb | Solution | | Easy | Array |
1650 | Lowest Common Ancestor of a Binary Tree III | Solution | | Medium | HashTable, Binary Tree, Tree |
1646 | Get Maximum in Generated Array | Solution | | Easy | Array |
1644 | Lowest Common Ancestor of a Binary Tree II | Solution | | Medium | Binary Tree, DFS |
1642 | Furthest Building You Can Reach | Solution | | Medium | Binary Search, Heap |
1641 | Count Sorted Vowel Strings | Solution | 📺 | Medium | Math, DP, Backtracking |
1640 | Check Array Formation Through Concatenation | Solution | | Easy | Array, Sort |
1637 | Widest Vertical Area Between Two Points Containing No Points | Javascript, Java | | Medium | Sort |
1636 | Sort Array by Increasing Frequency | Solution | | Easy | Array, Sort |
1630 | Arithmetic Subarrays | Solution | | Medium | Sort |
1629 | Slowest Key | Solution | | Easy | Array |
1628 | Design an Expression Tree With Evaluate Function | Solution | | Medium | Stack, Binary Tree, Design, Math |
1626 | Best Team With No Conflicts | Solution | | Medium | DP |
1625 | Lexicographically Smallest String After Applying Operations | Solution | | Medium | BFS, DFS |
1624 | Largest Substring Between Two Equal Characters | Solution | 📺 | Easy | String |
1620 | Coordinate With Maximum Network Quality | Solution | 📺 | Medium | Greedy |
1619 | Mean of Array After Removing Some Elements | Solution | 📺 | Easy | Array |
1614 | Maximum Nesting Depth of the Parentheses | Solution | | Easy | String |
1609 | Even Odd Tree | Solution | | Medium | Tree |
1608 | Special Array With X Elements Greater Than or Equal X | Solution | | Easy | Array |
1605 | Find Valid Matrix Given Row and Column Sums | Solution | | Medium | Greedy, Array, Matrix |
1604 | Alert Using Same Key-Card Three or More Times in a One Hour Period | Solution | | Medium | String, Ordered Map |
1603 | Design Parking System | Solution | | Easy | Design |
1602 | Find Nearest Right Node in Binary Tree | Solution | | Medium | Tree, BFS |
1601 | Maximum Number of Achievable Transfer Requests | Solution | | Hard | Backtracking |
1600 | Throne Inheritance | Solution | | Medium | Tree, Design, DFS, HashMap |
1598 | Crawler Log Folder | Solution | | Easy | Stack |
1592 | Rearrange Spaces Between Words | Solution | | Easy | String |
1588 | Sum of All Odd Length Subarrays | Solution | | Easy | Array |
1583 | Count Unhappy Friends | Solution | | Medium | Array |
1582 | Special Positions in a Binary Matrix | Solution | | Easy | Array |
1577 | Number of Ways Where Square of Number Is Equal to Product of Two Numbers | Solution | | Medium | HashTable, Math |
1576 | Replace All ?'s to Avoid Consecutive Repeating Characters | Solution | 📺 | Easy | String |
1574 | Shortest Subarray to be Removed to Make Array Sorted | Solution | | Medium | Array, Binary Search |
1572 | Matrix Diagonal Sum | Solution | | Easy | Array |
1570 | Dot Product of Two Sparse Vectors | Solution | | Easy | Array, HashTable, Two Pointers |
1567 | Maximum Length of Subarray With Positive Product | Solution | 📺 | Medium | Greedy |
1566 | Detect Pattern of Length M Repeated K or More Times | Solution | 📺 | Easy | Array |
1561 | Maximum Number of Coins You Can Get | Solution | 📺 | Medium | Sort |
1560 | Most Visited Sector in a Circular Track | Solution | | Easy | Array |
1558 | Minimum Numbers of Function Calls to Make Target Array | Solution | | Medium | Greedy |
1557 | Minimum Number of Vertices to Reach All Nodes | Solution | 📺 | Medium | Graph |
1556 | Thousand Separator | Solution | 📺 | Easy | String |
1551 | Minimum Operations to Make Array Equal | Solution | 📺 | Medium | Math |
1550 | Three Consecutive Odds | Solution | | Easy | Array |
1545 | Find Kth Bit in Nth Binary String | Solution | 📺 | Medium | String |
1544 | Make The String Great | Solution | 📺 | Easy | String, Stack |
1541 | Minimum Insertions to Balance a Parentheses String | Solution | 📺 | Medium | String, Stack |
1539 | Kth Missing Positive Number | Solution | 📺 | Easy | Array, HashTable |
1535 | Find the Winner of an Array Game | Solution | 📺 | Medium | Array |
1534 | Count Good Triplets | Solution | | Easy | Array |
1530 | Number of Good Leaf Nodes Pairs | Solution | | Medium | Tree, DFS |
1528 | Shuffle String | Solution | | Easy | Sort |
1526 | Minimum Number of Increments on Subarrays to Form a Target Array | Solution | | Hard | Segment Tree |
1525 | Number of Good Ways to Split a String | Solution | 📺 | Medium | String, Bit Manipulation |
1524 | Number of Sub-arrays With Odd Sum | Solution | | Medium | Array, Math |
1523 | Count Odd Numbers in an Interval Range | Solution | 📺 | Easy | Math |
1518 | Water Bottles | Solution | | Easy | Greedy |
1514 | Path with Maximum Probability | Solution | | Medium | Graph |
1512 | Number of Good Pairs | Solution | | Easy | Array, HashTable, Math |
1509 | Minimum Difference Between Largest and Smallest Value in Three Moves | Solution | | Medium | Array, Sort, Greedy |
1508 | Range Sum of Sorted Subarray Sums | Solution | | Medium | Array, Sort |
1507 | Reformat Date | Solution | | Easy | String |
1502 | Can Make Arithmetic Progression From Sequence | Solution | | Easy | Array, Sort |
1496 | Path Crossing | Solution | | Easy | String |
1493 | Longest Subarray of 1's After Deleting One Element | Solution | 📺 | Medium | Array |
1492 | The kth Factor of n | Solution | | Medium | Math |
1491 | Average Salary Excluding the Minimum and Maximum Salary | Solution | | Easy | Array, Sort |
1490 | Clone N-ary Tree | Solution | 📺 | Medium | HashTable, Tree, DFS, BFS |
1487 | Making File Names Unique | Solution | | Medium | HashTable, String |
1486 | XOR Operation in an Array | Solution | | Medium | Array, Bit Manipulation |
1485 | Clone Binary Tree With Random Pointer | Solution | | Medium | HashTable, Tree, DFS, BFS |
1482 | Minimum Number of Days to Make m Bouquets | Solution | | Medium | Array, Binary Search |
1481 | Least Number of Unique Integers after K Removals | Solution | | Medium | Array, Sort |
1480 | Running Sum of 1d Array | Solution, C++ | | Easy | Array |
1476 | Subrectangle Queries | Solution | | Medium | Array |
1475 | Final Prices With a Special Discount in a Shop | Solution | | Easy | Array |
1474 | Delete N Nodes After M Nodes of a Linked List | Solution | | Easy | LinkedList |
1472 | Design Browser History | Solution | | Medium | Array, Design |
1471 | The k Strongest Values in an Array | Solution | | Medium | Array, Sort |
1470 | Shuffle the Array | Solution, C++ | | Easy | Array |
1469 | Find All The Lonely Nodes | Solution | | Easy | Tree, DFS |
1466 | Reorder Routes to Make All Paths Lead to the City Zero | Solution | | Medium | Tree, DFS, BFS |
1464 | Maximum Product of Two Elements in an Array | Solution | | Easy | Array |
1462 | Course Schedule IV | Solution | | Medium | Topological Sort, DFS, BFS |
1461 | Check If a String Contains All Binary Codes of Size K | Solution | | Medium | String, Bit Manipulation |
1460 | Make Two Arrays Equal by Reversing Sub-arrays | Solution | | Easy | Array |
1457 | Pseudo-Palindromic Paths in a Binary Tree | Solution | | Medium | Bit Manipulation, Tree, DFS |
1456 | Maximum Number of Vowels in a Substring of Given Length | Solution | | Medium | String, Sliding Window |
1455 | Check If a Word Occurs As a Prefix of Any Word in a Sentence | Solution | | Easy | String |
1452 | People Whose List of Favorite Companies Is Not a Subset of Another List | Solution | | Medium | String, Sort |
1451 | Rearrange Words in a Sentence | Solution | | Medium | String, Sort |
1450 | Number of Students Doing Homework at a Given Time | Solution | | Easy | Array |
1448 | Count Good Nodes in Binary Tree | Solution | | Medium | Tree, DFS |
1447 | Simplified Fractions | Solution | | Medium | Math |
1446 | Consecutive Characters | Solution | | Easy | String |
1441 | Build an Array With Stack Operations | Solution | | Easy | Stack |
1439 | Find the Kth Smallest Sum of a Matrix With Sorted Rows | Solution | | Hard | Array, Binary Search, PriorityQueue, Matrix |
1438 | Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit | Solution | | Medium | Array, Queue, Sliding Window, PriorityQueue, Monotonic Queue |
1437 | Check If All 1's Are at Least Length K Places Away | Solution | | Medium | Array |
1436 | Destination City | Solution | | Easy | String |
1432 | Max Difference You Can Get From Changing an Integer | Solution | | Medium | String |
1431 | Kids With the Greatest Number of Candies | Solution, C++ | | Easy | Array |
1429 | First Unique Number | Solution | | Medium | Array, HashTable, Design, Data Streams |
1428 | Leftmost Column with at Least a One | Solution | | Medium | Array |
1427 | Perform String Shifts | Solution | | Easy | Array, Math |
1426 | Counting Elements | Solution | | Easy | Array |
1424 | Diagonal Traverse II | Solution | | Medium | Matrix |
1423 | Maximum Points You Can Obtain from Cards | Solution | | Medium | Array, DP, Sliding Window |
1422 | Maximum Score After Splitting a String | Solution | | Easy | String |
1418 | Display Table of Food Orders in a Restaurant | Solution | | Medium | HashTable |
1417 | Reformat The String | Solution | | Easy | String |
1415 | The k-th Lexicographical String of All Happy Strings of Length n | Solution | | Medium | Backtracking |
1414 | Find the Minimum Number of Fibonacci Numbers Whose Sum Is K | Solution | | Medium | Array, Greedy |
1413 | Minimum Value to Get Positive Step by Step Sum | Solution | | Easy | Array |
1410 | HTML Entity Parser | Solution | | Medium | String, Stack |
1409 | Queries on a Permutation With Key | Solution | | Medium | Array |
1408 | String Matching in an Array | Solution | | Easy | String |
1405 | Longest Happy String | Solution | | Medium | PriorityQueue, Greedy |
1403 | Minimum Subsequence in Non-Increasing Order | Solution | | Easy | Greedy, Sort |
1402 | Reducing Dishes | Solution | | Hard | Dynamic Programming |
1401 | Circle and Rectangle Overlapping | Solution | | Medium | Geometry |
1400 | Construct K Palindrome Strings | Solution | | Medium | Greedy |
1399 | Count Largest Group | Solution | | Easy | Array |
1396 | Design Underground System | Solution | | Medium | Design |
1395 | Count Number of Teams | Solution | | Medium | Array |
1394 | Find Lucky Integer in an Array | Solution | | Easy | Array |
1392 | Longest Happy Prefix | Solution | | Hard | String, Rolling Hash |
1390 | Four Divisors | Solution | | Medium | Math |
1389 | Create Target Array in the Given Order | Solution | | Easy | Array |
1388 | Pizza With 3n Slices | Solution | | Hard | DP |
1387 | Sort Integers by The Power Value | Solution | | Medium | Sort, Graph |
1386 | Cinema Seat Allocation | Solution | | Medium | Array, Greedy |
1385 | Find the Distance Value Between Two Arrays | Solution | | Easy | Array |
1382 | Balance a Binary Search Tree | Solution | | Medium | Binary Search Tree |
1381 | Design a Stack With Increment Operation | Solution | | Medium | Stack, Design |
1380 | Lucky Numbers in a Matrix | Solution | | Easy | Array |
1379 | Find a Corresponding Node of a Binary Tree in a Clone of That Tree | Solution | | Medium | Tree |
1377 | Frog Position After T Seconds | Solution | | Hard | DFS, BFS |
1376 | Time Needed to Inform All Employees | Solution | | Medium | DFS |
1375 | Bulb Switcher III | Solution | | Medium | Array |
1374 | Generate a String With Characters That Have Odd Counts | Solution | | Easy | String |
1373 | Maximum Sum BST in Binary Tree | Solution | | Hard | DP, BST |
1372 | Longest ZigZag Path in a Binary Tree | Solution | | Hard | DP, Tree |
1371 | Find the Longest Substring Containing Vowels in Even Counts | Solution | | Medium | String |
1370 | Increasing Decreasing String | Solution | | Easy | String, Sort |
1367 | Linked List in Binary Tree | Solution | | Medium | DP, Linked List, Tree |
1366 | Rank Teams by Votes | Solution | | Medium | Array, Sort |
1365 | How Many Numbers Are Smaller Than the Current Number | Solution | | Easy | Array, HashTable |
1362 | Closest Divisors | Solution | | Medium | Math |
1361 | Validate Binary Tree Nodes | Solution | | Medium | Graph |
1360 | Number of Days Between Two Dates | Solution | | Easy | |
1358 | Number of Substrings Containing All Three Characters | Solution | | Medium | String |
1357 | Apply Discount Every n Orders | Solution | | Medium | Design |
1356 | Sort Integers by The Number of 1 Bits | Solution | | Easy | Sort, Bit Manipulation |
1354 | Construct Target Array With Multiple Sums | Solution | | Hard | Greedy |
1353 | Maximum Number of Events That Can Be Attended | Solution | | Medium | Greedy, Sort, Segment Tree |
1352 | Product of the Last K Numbers | Solution | | Medium | Array, Design |
1351 | Count Negative Numbers in a Sorted Matrix | Solution | | Easy | Array, Binary Search |
1349 | Maximum Students Taking Exam | Solution | | Hard | Dynamic Programming |
1348 | Tweet Counts Per Frequency | Solution | | Medium | Design |
1347 | Minimum Number of Steps to Make Two Strings Anagram | Solution | | Easy | String |
1346 | Check If N and Its Double Exist | Solution | | Easy | Array |
1345 | Jump Game IV | Solution | | Hard | BFS |
1344 | Angle Between Hands of a Clock | Solution | | Medium | Math |
1343 | Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold | Solution | | Medium | Array |
1342 | Number of Steps to Reduce a Number to Zero | Solution | | Easy | Bit Manipulation |
1341 | The K Weakest Rows in a Matrix | Solution | | Easy | |
1339 | Maximum Product of Splitted Binary Tree | Solution | | Medium | DFS, Tree |
1338 | Reduce Array Size to The Half | Solution | | Medium | |
1337 | Remove Palindromic Subsequences | Solution | | Easy | String |
1334 | Find the City With the Smallest Number of Neighbors at a Threshold Distance | Solution | | Medium | Dijkstra's algorithm, Graph |
1333 | Filter Restaurants by Vegan-Friendly, Price and Distance | Solution | | Medium | |
1332 | Remove Palindromic Subsequences | Solution | | Easy | String |
1331 | Rank Transform of an Array | Solution | | Easy | |
1329 | Sort the Matrix Diagonally | Solution | | Medium | |
1325 | Delete Leaves With a Given Value | Solution | | Medium | Tree |
1324 | Print Words Vertically | Solution | | Medium | String |
1323 | Maximum 69 Number | Solution | | Easy | Math |
1317 | Convert Integer to the Sum of Two No-Zero Integers | Solution | | Easy | |
1315 | Sum of Nodes with Even-Valued Grandparent | Solution | | Medium | Tree, DFS |
1314 | Matrix Block Sum | Solution | | Medium | Prefix Sum |
1313 | Decompress Run-Length Encoded List | Solution | | Easy | Array |
1305 | All Elements in Two Binary Search Trees | Solution | | Medium | |
1304 | Find N Unique Integers Sum up to Zero | Solution | | Easy | |
1302 | Deepest Leaves Sum | Solution | | Medium | |
1300 | Sum of Mutated Array Closest to Target | Solution | | Medium | Binary Search, Sorting |
1299 | Replace Elements with Greatest Element on Right Side | Solution | | Easy | |
1297 | Maximum Number of Occurrences of a Substring | Solution | | Medium | |
1296 | Divide Array in Sets of K Consecutive Numbers | Solution | | Medium | |
1295 | Find Numbers with Even Number of Digits | JavaJavascript | 📺 | Easy | |
1291 | Sequential Digits | Solution | | Medium | |
1290 | Convert Binary Number in a Linked List to Integer | Solution | | Easy | |
1289 | Minimum Falling Path Sum II | Solution | | Hard | Dynamic Programming |
1287 | Element Appearing More Than 25% In Sorted Array | Solution | 📺 | Easy | |
1286 | Iterator for Combination | Solution | | Medium | Backtracking, Design |
1283 | Find the Smallest Divisor Given a Threshold | Solution | Medium | | |
1282 | Group the People Given the Group Size They Belong To | Solution | 📺 | Medium | |
1281 | Subtract the Product and Sum of Digits of an Integer | Solution | | Easy | |
1277 | Count Square Submatrices with All Ones | Solution | | Medium | |
1275 | Find Winner on a Tic Tac Toe Game | Solution | | Easy | Array |
1273 | Delete Tree Nodes | Solution | | Medium | Dynamic Programming, DFS |
1271 | Hexspeak | Solution | | Easy | |
1268 | Search Suggestions System | Solution | 📺 | Medium | String |
1267 | Count Servers that Communicate | Solution | | Medium | |
1266 | Minimum Time Visiting All Points | Solution | | Easy | |
1265 | Print Immutable Linked List in Reverse | Solution | | Medium | |
1261 | Find Elements in a Contaminated Binary Tree | Solution | | Medium | Tree, HashTable |
1260 | Shift 2D Grid | Solution | 📺 | Easy | |
1258 | Synonymous Sentences | Solution | | Medium | Backtracking |
1257 | Smallest Common Region | Solution | | Medium | Tree, HashTable, DFS, BFS |
1254 | Number of Closed Islands | Solution | | Medium | BFS |
1252 | Cells with Odd Values in a Matrix | Solution | | Easy | |
1249 | Minimum Remove to Make Valid Parentheses | Solution | | Medium | String, Stack |
1243 | Array Transformation | Solution | 📺 | Easy | |
1242 | Web Crawler Multithreaded | Solution | | Medium | Concurrency |
1237 | Find Positive Integer Solution for a Given Equation | Solution | | Easy | |
1233 | Remove Sub-Folders from the Filesystem | Solution | | Easy | |
1232 | Check If It Is a Straight Line | Solution | 📺 | Easy | |
1230 | Toss Strange Coins | Solution | | Medium | DP |
1228 | Missing Number In Arithmetic Progression | Solution | | Easy | |
1221 | Split a String in Balanced Strings | Solution | | Easy | Greedy |
1219 | Path with Maximum Gold | Solution | | Medium | Backtracking |
1217 | Play with Chips | Solution | | Easy | Array, Math, Greedy |
1214 | Two Sum BSTs | Solution | | Medium | Binary Search Tree |
1213 | Intersection of Three Sorted Arrays | Solution | 📺 | Easy | |
1209 | Remove All Adjacent Duplicates in String II | Solution | | Medium | Stack |
1207 | Unique Number of Occurrences | Solution | 📺 | Easy | |
1200 | Minimum Absolute Difference | Solution | 📺 | Easy | |
1198 | Find Smallest Common Element in All Rows | Solution | 📺 | Easy | |
1197 | Minimum Knight Moves | Solution | | Medium | BFS |
1196 | How Many Apples Can You Put into the Basket | Solution | 📺 | Easy | |
1190 | Reverse Substrings Between Each Pair of Parentheses | Solution | | Medium | Stack |
1189 | Maximum Number of Balloons | Solution | 📺 | Easy | |
1185 | Day of the Week | Solution | | Easy | |
1184 | Distance Between Bus Stops | Solution | 📺 | Easy | |
1182 | Shortest Distance to Target Color | Solution | | Medium | Binary Search |
1180 | Count Substrings with Only One Distinct Letter | Solution | | Easy | Math, String |
1176 | Diet Plan Performance | Solution | | Easy | Array, Sliding Window |
1175 | Prime Arrangements | Solution | | Easy | Math |
1171 | Remove Zero Sum Consecutive Nodes from Linked List | Solution | | Medium | LinkedList |
1165 | Single-Row Keyboard | Solution | | Easy | |
1161 | Maximum Level Sum of a Binary Tree | Solution | | Medium | Graph |
1160 | Find Words That Can Be Formed by Characters | Solution | | Easy | |
1154 | Day of the Year | Solution | | Easy | |
1152 | Analyze User Website Visit Pattern | Solution | 📺 | Medium | HashTable, Sort, Array |
1151 | Minimum Swaps to Group All 1's Together | Solution | | Medium | Array, Sliding Window |
1150 | Check If a Number Is Majority Element in a Sorted Array | Solution | 📺 | Easy | |
1146 | Snapshot Array | JavascriptJava | | Medium | |
1143 | Longest Common Subsequence | Solution | | Medium | String, DP |
1138 | Alphabet Board Path | Solution | 📺 | Medium | HashTable, String |
1137 | N-th Tribonacci Number | Solution | | Easy | |
1136 | Parallel Courses | Solution | | Medium | Topological Sort |
1134 | Armstrong Number | Solution | 📺 | Easy | |
1133 | Largest Unique Number | Solution | 📺 | Easy | |
1128 | Number of Equivalent Domino Pairs | Solution | 📺 | Easy | |
1122 | Relative Sort Array | Solution | | Easy | |
1170 | Compare Strings by Frequency of the Smallest Character | Solution | | Easy | |
1120 | Maximum Average Subtree | Solution | | Medium | Tree, DFS |
1119 | Remove Vowels from a String | Solution | 📺 | Easy | |
1118 | Number of Days in a Month | Solution | | Easy | |
1114 | Print in Order | Solution | | Easy | |
1110 | Delete Nodes And Return Forest | Solution | | Medium | Tree, DFS, BFS |
1108 | Defanging an IP Address | Solution | 📺 | Easy | |
1105 | Filling Bookcase Shelves | Solution | | Medium | DP |
1104 | Path In Zigzag Labelled Binary Tree | Solution | | Medium | Math, Tree |
1103 | Distribute Candies to People | Solution | | Easy | Math |
1100 | Find K-Length Substrings With No Repeated Characters | Solution | | Medium | String, Sliding Window |
1099 | Two Sum Less Than K | Solution | 📺 | Easy | |
1094 | Car Pooling | Solution | | Medium | Array, Sorting, Heap, Simulation, Prefix Sum |
1090 | Largest Values From Labels | Solution | 📺 | Medium | HashTable, Greedy |
1091 | Shortest Path in Binary Matrix | Solution | | Medium | BFS |
1089 | Duplicate Zeros | Solution | | Easy | |
1087 | Brace Expansion | Solution | | Medium | Backtracking |
1086 | High Five | Solution | 📺 | Easy | |
1085 | Sum of Digits in the Minimum Number | Solution | 📺 | Easy | |
1080 | Insufficient Nodes in Root to Leaf Paths | Solution | | Medium | Tree, DFS |
1079 | Letter Tile Possibilities | Solution | | Medium | |
1078 | Occurrences After Bigram | Solution | | Easy | |
1071 | Greatest Common Divisor of Strings | Solution | | Easy | |
1066 | Campus Bikes II | Solution | | Medium | Backtracking, DP |
1065 | Index Pairs of a String | Solution | | Medium | |
1062 | Longest Repeating Substring | Solution | | Medium | String, Binary Search, DP, Rolling Hash, Suffix Array, Hash Function |
1061 | Lexicographically Smallest Equivalent String | Solution | 📺 | Medium | Union Find |
1060 | Missing Element in Sorted Array | Solution | | Medium | |
1059 | All Paths from Source Lead to Destination | Solution | | Medium | DFS |
1057 | Campus Bikes | Solution | | Medium | |
1056 | Confusing Number | Solution | | Easy | |
1055 | Fixed Point | Solution | | Easy | |
1051 | Height Checker | Solution | | Easy | |
1047 | Remove All Adjacent Duplicates In String | Solution | | Easy | |
1046 | Last Stone Weight | Solution | 📺 | Easy | |
1043 | Partition Array for Maximum Sum | Solution | | Medium | DP |
1038 | Binary Search Tree to Greater Sum Tree | Solution | | Medium | DFS, tree |
1037 | Valid Boomerang | Solution | | Easy | Math |
1034 | Coloring A Border | Solution | | Medium | DFS |
1033 | Moving Stones Until Consecutive | Solution | | Easy | Math |
1030 | Matrix Cells in Distance Order | Solution | | Easy | |
1029 | Two City Scheduling | Solution | | Easy | |
1026 | Maximum Difference Between Node and Ancestor | Solution | | Medium | Tree, DFS, Binary Tree |
1025 | Divisor Game | Solution | | Easy | Math, DP, Brainteaser, Game Theory |
1024 | Video Stitching | Solution | | Medium | Array, DP, Greedy |
1022 | Sum of Root To Leaf Binary Numbers | Solution | | Easy | |
1021 | Remove Outermost Parentheses | Solution | | Easy | |
1020 | Number of Enclaves | Solution | | Medium | Graph, DFS, BFS, recursion |
1019 | Next Greater Node In Linked List | Solution | | Medium | Linked List, Stack |
1018 | Binary Prefix Divisible By 5 | Solution | | Easy | |
1014 | Best Sightseeing Pair | Solution | | Medium | |
1013 | Partition Array Into Three Parts With Equal Sum | Solution | | Easy | |
1011 | Capacity To Ship Packages Within D Days | Solution | | Medium | Binary Search |
1010 | Pairs of Songs With Total Durations Divisible by 60 | Solution | | Easy | |
1009 | Complement of Base 10 Integer | Solution | | Easy | |
1008 | Construct Binary Search Tree from Preorder Traversal | Solution | | Medium | Recursion |
1005 | Maximize Sum Of Array After K Negations | Solution | 📺 | Easy | |
1004 | Max Consecutive Ones III | Solution | 📺 | Medium | Two Pointers, Sliding Window |
1003 | Check If Word Is Valid After Substitutions | Solution | | Medium | |
1002 | Find Common Characters | Solution | | Easy | |