1901 |
Find a Peak Element II |
C++, Python |
Medium |
1899 |
Merge Triplets to Form Target Triplet |
C++, Python |
Medium |
1898 |
Maximum Number of Removable Characters |
C++, Python |
Medium |
1897 |
Redistribute Characters to Make All Strings Equal |
C++, Python |
Easy |
1895 |
Largest Magic Square |
C++, Python |
Medium |
1894 |
Find the Student that Will Replace the Chalk |
C++, Python |
Medium |
1893 |
check-if-all-the-integers-in-a-range-are-covered/ |
C++, Python |
Easy |
1889 |
Minimum Space Wasted From Packaging |
C++, Python |
Hard |
1888 |
Minimum Number of Flips to Make the Binary String Alternating |
C++, Python |
Medium |
1887 |
Reduction Operations to Make the Array Elements Equal |
C++, Python |
Medium |
1886 |
Determine Whether Matrix Can Be Obtained By Rotation |
C++, Python |
Easy |
1884 |
Egg Drop With 2 Eggs and N Floors |
C++, Python |
Medium |
1883 |
Minimum Skips to Arrive at Meeting On Time |
C++, Python |
Hard |
1882 |
Process Tasks Using Servers |
C++, Python |
Medium |
1881 |
Maximum Value after Insertion |
C++, Python |
Medium |
1880 |
Check if Word Equals Summation of Two Words |
C++, Python |
Easy |
1879 |
Minimum XOR Sum of Two Arrays |
C++, Python |
Hard |
1878 |
Get Biggest Three Rhombus Sums in a Grid |
C++, Python |
Medium |
1877 |
Minimize Maximum Pair Sum in Array |
C++, Python |
Medium |
1876 |
Substrings of Size Three with Distinct Characters |
C++, Python |
Easy |
1872 |
Stone Game VIII |
C++, Python |
Hard |
1871 |
Jump Game VII |
C++, Python |
Medium |
1870 |
Minimum Speed to Arrive on Time |
C++, Python |
Medium |
1869 |
Longer Contiguous Segments of Ones than Zeros |
C++, Python |
Easy |
1866 |
Number of Ways to Rearrange Sticks With K Sticks Visible |
C++, Python |
Hard |
1865 |
Finding Pairs With a Certain Sum |
C++, Python |
Medium |
1864 |
Minimum Number of Swaps to Make the Binary String Alternating |
C++, Python |
Medium |
1863 |
Sum of All Subset XOR Totals |
C++, Python |
Easy |
1862 |
Sum of Floored Pairs |
C++, Python |
Hard |
1861 |
Rotating the Box |
C++, Python |
Medium |
1860 |
Incremental Memory Leak |
C++, Python |
Medium |
1859 |
Sorting the Sentence |
C++, Python |
Easy |
1857 |
Largest Color Value in a Directed Graph |
C++, Python |
Hard |
1856 |
Maximum Subarray Min-Product |
C++, Python |
Medium |
1855 |
Maximum Distance Between a Pair of Values |
C++, Python |
Medium |
1854 |
Maximum Population Year |
C++, Python |
Easy |
1851 |
Minimum Interval to Include Each Query |
C++, Python |
Hard |
1850 |
Minimum Adjacent Swaps to Reach the Kth Smallest Number |
C++, Python |
Medium |
1849 |
Splitting a String Into Descending Consecutive Values |
C++, Python |
Medium |
1848 |
Minimum Distance to the Target Element |
C++, Python |
Easy |
1847 |
Closest Room |
C++, Python |
Hard |
1846 |
Maximum Element After Decreasing and Rearranging |
C++, Python |
Medium |
1845 |
Seat Reservation Manager |
C++, Python |
Medium |
1844 |
Replace All Digits with Characters |
C++, Python |
Easy |
1840 |
Maximum Building Height |
C++, Python |
Hard |
1839 |
Longest Substring Of All Vowels in Order |
C++, Python |
Medium |
1838 |
Frequency of the Most Frequent Element |
C++, Python |
Medium |
1837 |
Sum of Digits in Base K |
C++, Python |
Easy |
1835 |
Find XOR Sum of All Pairs Bitwise AND |
C++, Python |
Hard |
1834 |
Single-Threaded CPU |
C++, Python |
Medium |
1833 |
Maximum Ice Cream Bars |
C++, Python |
Medium |
1832 |
Check if the Sentence Is Pangram |
C++, Python |
Easy |
1830 |
Minimum Number of Operations to Make String Sorted |
C++, Python |
Hard |
1829 |
Maximum XOR for Each Query |
C++, Python |
Medium |
1828 |
Queries on Number of Points Inside a Circle |
C++, Python |
Medium |
1827 |
Minimum Operations to Make the Array Increasing |
C++, Python |
Easy |
1825 |
Finding MK Average |
C++, Python |
Hard |
1824 |
Minimum Sideway Jumps |
C++, Python |
Medium |
1823 |
Find the Winner of the Circular Game |
C++, Python |
Medium |
1822 |
Sign of the Product of an Array |
C++, Python |
Easy |
1819 |
Number of Different Subsequences GCDs |
C++, Python |
Hard |
1818 |
Minimum Absolute Sum Difference |
C++, Python |
Medium |
1817 |
Finding the Users Active Minutes |
C++, Python |
Medium |
1816 |
Truncate Sentence |
C++, Python |
Easy |
1815 |
Maximum Number of Groups Getting Fresh Donuts |
C++, Python |
Hard |
1814 |
Count Nice Pairs in an Array |
C++, Python |
Medium |
1813 |
Sentence Similarity III |
C++, Python |
Medium |
1812 |
Determine Color of a Chessboard Square |
C++, Python |
Easy |
1808 |
Maximize Number of Nice Divisors |
C++, Python |
Hard |
1807 |
Evaluate the Bracket Pairs of a String |
C++, Python |
Medium |
1806 |
Minimum Number of Operations to Reinitialize a Permutation |
C++, Python |
Medium |
1805 |
Number of Different Integers in a String |
C++, Python |
Easy |
1803 |
Count Pairs With XOR in a Range |
C++, Python |
Hard |
1802 |
Maximum Value at a Given Index in a Bounded Array |
C++, Python |
Medium |
1801 |
Number of Orders in the Backlog |
C++, Python |
Medium |
1800 |
Maximum Ascending Subarray Sum |
C++, Python |
Easy |
1799 |
Maximize Score After N Operations |
C++, Python |
Hard |
1798 |
Maximum Number of Consecutive Values You Can Make |
C++, Python |
Medium |
1797 |
Design Authentication Manager |
C++, Python |
Medium |
1796 |
Second Largest Digit in a String |
C++, Python |
Easy |
1793 |
Maximum Score of a Good Subarray |
C++, Python |
Hard |
1792 |
Maximum Average Pass Ratio |
C++, Python |
Medium |
1791 |
Find Center of Star Graph |
C++, Python |
Medium |
1790 |
Check if One String Swap Can Make Strings Equal |
C++, Python |
Easy |
1787 |
Make the XOR of All Segments Equal to Zero |
C++, Python |
Hard |
1786 |
Number of Restricted Paths From First to Last Node |
C++, Python |
Medium |
1785 |
Minimum Elements to Add to Form a Given Sum |
C++, Python |
Medium |
1784 |
Check if Binary String Has at Most One Segment of Ones |
C++, Python |
Easy |
1782 |
Count Pairs Of Nodes |
C++, Python |
Hard |
1781 |
Sum of Beauty of All Substrings |
C++, Python |
Medium |
1780 |
Check if Number is a Sum of Powers of Three |
C++, Python |
Medium |
1779 |
Find Nearest Point That Has the Same X or Y Coordinate |
C++, Python |
Easy |
1776 |
Car Fleet II |
C++, Python |
Hard |
1775 |
Equal Sum Arrays With Minimum Number of Operations |
C++, Python |
Medium |
1774 |
Closest Dessert Cost |
C++, Python |
Medium |
1773 |
Count Items Matching a Rule |
C++, Python |
Easy |
1771 |
Maximize Palindrome Length From Subsequences |
C++, Python |
Hard |
1770 |
Maximum Score from Performing Multiplication Operations |
C++, Python |
Medium |
1769 |
Minimum Number of Operations to Move All Balls to Each Box |
C++, Python |
Medium |
1768 |
Merge Strings Alternately |
C++, Python |
Easy |
1766 |
Tree of Coprimes |
C++, Python |
Hard |
1765 |
Map of Highest Peak |
C++, Python |
Medium |
1764 |
Form Array by Concatenating Subarrays of Another Array |
C++, Python |
Medium |
1763 |
Longest Nice Substring |
C++, Python |
Easy |
1761 |
Minimum Degree of a Connected Trio in a Graph |
C++, Python |
Hard |
1760 |
Minimum Limit of Balls in a Bag |
C++, Python |
Medium |
1759 |
Count Number of Homogenous Substrings |
C++, Python |
Medium |
1758 |
Minimum Changes To Make Alternating Binary String |
C++, Python |
Easy |
1755 |
Closest Subsequence Sum |
C++, Python |
Hard |
1754 |
Largest Merge Of Two Strings |
C++, Python |
Medium |
1753 |
Maximum Score From Removing Stones |
C++, Python |
Medium |
1752 |
Check if Array Is Sorted and Rotated |
C++, Python |
Easy |
1751 |
Maximum Number of Events That Can Be Attended II |
C++, Python |
Hard |
1750 |
Minimum Length of String After Deleting Similar Ends |
C++, Python |
Medium |
1749 |
Maximum Absolute Sum of Any Subarray |
C++, Python |
Medium |
1748 |
Sum of Unique Elements |
C++, Python |
Easy |
1745 |
Palindrome Partitioning IV |
C++, Python |
Hard |
1744 |
Can You Eat Your Favorite Candy on Your Favorite Day? |
C++, Python |
Medium |
1743 |
Restore the Array From Adjacent Pairs |
C++, Python |
Medium |
1742 |
Maximum Number of Balls in a Box |
C++, Python |
Easy |
1739 |
Building Boxes |
C++, Python |
Hard |
1738 |
Find Kth Largest XOR Coordinate Value |
C++, Python |
Medium |
1737 |
Change Minimum Characters to Satisfy One of Three Conditions |
C++, Python |
Medium |
1736 |
Latest Time by Replacing Hidden Digits |
C++, Python |
Easy |
1735 |
Count Ways to Make Array With Product |
C++, Python |
Hard |
1734 |
Decode XORed Permutation |
C++, Python |
Medium |
1733 |
Minimum Number of People to Teach |
C++, Python |
Medium |
1732 |
Find the Highest Altitude |
C++, Python |
Easy |
1728 |
Cat and Mouse II |
C++, Python |
Hard |
1727 |
Largest Submatrix With Rearrangements |
C++, Python |
Medium |
1726 |
Tuple with Same Product |
C++, Python |
Medium |
1725 |
Number Of Rectangles That Can Form The Largest Square |
C++, Python |
Easy |
1723 |
Find Minimum Time to Finish All Jobs |
C++, Python |
Hard |
1722 |
Minimize Hamming Distance After Swap Operations |
C++, Python |
Medium |
1721 |
Swapping Nodes in a Linked List |
C++, Python |
Medium |
1720 |
Decode XORed Array |
C++, Python |
Easy |
1719 |
Number Of Ways To Reconstruct A Tree |
C++, Python |
Medium |
1718 |
Construct the Lexicographically Largest Valid Sequence |
C++, Python |
Medium |
1717 |
Maximum Score From Removing Substrings |
C++, Python |
Medium |
1716 |
Calculate Money in Leetcode Bank |
C++, Python |
Easy |
1713 |
Minimum Operations to Make a Subsequence |
C++, Python |
Hard |
1712 |
Ways to Split Array Into Three Subarrays |
C++, Python |
Medium |
1711 |
Count Good Meals |
C++, Python |
Medium |
1710 |
Maximum Units on a Truck |
C++, Python |
Easy |
1707 |
Maximum XOR With an Element From Array |
C++, Python |
Hard |
1706 |
Where Will the Ball Fall |
C++, Python |
Medium |
1705 |
Maximum Number of Eaten Apples |
C++, Python |
Medium |
1704 |
Determine if String Halves Are Alike |
C++, Python |
Easy |
1703 |
Minimum Adjacent Swaps for K Consecutive Ones |
C++, Python |
Hard |
1702 |
Maximum Binary String After Change |
C++, Python |
Medium |
1701 |
Average Waiting Time |
C++, Python |
Medium |
1700 |
Number of Students Unable to Eat Lunch |
C++, Python |
Easy |
1697 |
Checking Existence of Edge Length Limited Paths |
C++, Python |
Hard |
1696 |
Jump Game VI |
C++, Python |
Medium |
1695 |
Maximum Erasure Value |
C++, Python |
Medium |
1694 |
Reformat Phone Number |
C++, Python |
Easy |
1691 |
Maximum Height by Stacking Cuboids |
C++, Python |
Hard |
1690 |
Stone Game VII |
C++, Python |
Medium |
1689 |
Partitioning Into Minimum Number Of Deci-Binary Numbers |
C++, Python |
Medium |
1688 |
Count of Matches in Tournament |
C++, Python |
Easy |
1687 |
Delivering Boxes from Storage to Ports |
C++, Python |
Hard |
1686 |
Stone Game VI |
C++, Python |
Medium |
1685 |
Sum of Absolute Differences in a Sorted Array |
C++, Python |
Medium |
1684 |
Count the Number of Consistent Strings |
C++, Python |
Easy |
1681 |
Minimum Incompatibility |
C++, Python |
Hard |
1680 |
Concatenation of Consecutive Binary Numbers |
C++, Python |
Medium |
1679 |
Max Number of K-Sum Pairs |
C++, Python |
Medium |
1678 |
Goal Parser Interpretation |
C++, Python |
Easy |
1675 |
Minimize Deviation in Array |
C++, Python |
Hard |
1674 |
Minimum Moves to Make Array Complementary |
C++, Python |
Medium |
1673 |
Find the Most Competitive Subsequence |
C++, Python |
Medium |
1672 |
Richest Customer Wealth |
C++, Python |
Easy |
1671 |
Minimum Number of Removals to Make Mountain Array |
C++, Python |
Hard |
1670 |
Design Front Middle Back Queue |
C++, Python |
Medium |
1669 |
Merge In Between Linked Lists |
C++, Python |
Medium |
1668 |
Maximum Repeating Substring |
C++, Python |
Easy |
1665 |
Minimum Initial Energy to Finish Tasks |
C++, Python |
Hard |
1664 |
Ways to Make a Fair Array |
C++, Python |
Medium |
1663 |
Smallest String With A Given Numeric Value |
C++, Python |
Medium |
1662 |
Check If Two String Arrays are Equivalent |
C++, Python |
Easy |
1659 |
Maximize Grid Happiness |
C++, Python |
Hard |
1658 |
Minimum Operations to Reduce X to Zero |
C++, Python |
Medium |
1657 |
Determine if Two Strings Are Close |
C++, Python |
Medium |
1656 |
Design an Ordered Stream |
C++, Python |
Easy |
1655 |
Distribute Repeating Integers |
C++, Python |
Hard |
1654 |
Minimum Jumps to Reach Home |
C++, Python |
Medium |
1653 |
Minimum Deletions to Make String Balanced |
C++, Python |
Medium |
1652 |
Defuse the Bomb |
C++, Python |
Easy |
1649 |
Create Sorted Array through Instructions |
C++, Python |
Hard |
1648 |
Sell Diminishing-Valued Colored Balls |
C++, Python |
Medium |
1647 |
Minimum Deletions to Make Character Frequencies Unique |
C++, Python |
Medium |
1646 |
Get Maximum in Generated Array |
C++, Python |
Easy |
1643 |
Kth Smallest Instructions |
C++, Python |
Hard |
1642 |
Furthest Building You Can Reach |
C++, Python |
Medium |
1641 |
Count Sorted Vowel Strings |
C++, Python |
Medium |
1640 |
Check Array Formation Through Concatenation |
C++, Python |
Easy |
1639 |
Number of Ways to Form a Target String Given a Dictionary |
C++, Python |
Hard |
1638 |
Count Substrings That Differ by One Character |
C++, Python |
Medium |
1637 |
Widest Vertical Area Between Two Points Containing No Points |
C++, Python |
Medium |
1636 |
Sort Array by Increasing Frequency |
C++, Python |
Easy |
1632 |
Rank Transform of a Matrix |
C++, Python |
Hard |
1631 |
Path With Minimum Effort |
C++, Python |
Medium |
1630 |
Arithmetic Subarrays |
C++, Python |
Medium |
1629 |
Slowest Key |
C++, Python |
Easy |
1627 |
Graph Connectivity With Threshold |
C++, Python |
Hard |
1626 |
Best Team With No Conflicts |
C++, Python |
Medium |
1625 |
Lexicographically Smallest String After Applying Operations |
C++, Python |
Medium |
1624 |
Largest Substring Between Two Equal Characters |
C++, Python |
Easy |
1622 |
Fancy Sequence |
C++, Python |
Hard |
1621 |
Number of Sets of K Non-Overlapping Line Segments |
C++, Python |
Medium |
1620 |
Coordinate With Maximum Network Quality |
C++, Python |
Medium |
1619 |
Mean of Array After Removing Some Elements |
C++, Python |
Easy |
1617 |
Count Subtrees With Max Distance Between Cities |
C++, Python |
Hard |
1616 |
Split Two Strings to Make Palindrome |
C++, Python |
Medium |
1615 |
Maximal Network Rank |
C++, Python |
Medium |
1614 |
Maximum Nesting Depth of the Parentheses |
C++, Python |
Easy |
1611 |
Minimum One Bit Operations to Make Integers Zero |
C++, Python |
Hard |
1610 |
Maximum Number of Visible Points |
C++, Python |
Hard |
1609 |
Even Odd Tree |
C++, Python |
Medium |
1608 |
Special Array With X Elements Greater Than or Equal X |
C++, Python |
Easy |
1606 |
Find Servers That Handled Most Number of Requests |
C++, Python |
Hard |
1605 |
Find Valid Matrix Given Row and Column Sums |
C++, Python |
Medium |
1604 |
Alert Using Same Key-Card Three or More Times in a One Hour Period |
C++, Python |
Medium |
1603 |
Design Parking System |
C++, Python |
Easy |
1601 |
Maximum Number of Achievable Transfer Requests |
C++, Python |
Hard |
1600 |
Throne Inheritance |
C++, Python |
Medium |
1599 |
Maximum Profit of Operating a Centennial Wheel |
C++, Python |
Medium |
1598 |
Crawler Log Folder |
C++, Python |
Easy |
1595 |
Minimum Cost to Connect Two Groups of Points |
C++, Python |
Hard |
1594 |
Maximum Non Negative Product in a Matrix |
C++, Python |
Medium |
1593 |
Split a String Into the Max Number of Unique Substrings |
C++, Python |
Medium |
1592 |
Rearrange Spaces Between Words |
C++, Python |
Easy |
1591 |
Strange Printer II |
C++, Python |
Hard |
1590 |
Make Sum Divisible by P |
C++, Python |
Medium |
1589 |
Maximum Sum Obtained of Any Permutation |
C++, Python |
Medium |
1588 |
Sum of All Odd Length Subarrays |
C++, Python |
Easy |
1585 |
Check If String Is Transformable With Substring Sort Operations |
C++, Python |
Hard |
1584 |
Min Cost to Connect All Points |
C++, Python |
Medium |
1583 |
Count Unhappy Friends |
C++, Python |
Medium |
1582 |
Special Positions in a Binary Matrix |
C++, Python |
Easy |
1579 |
Remove Max Number of Edges to Keep Graph Fully Traversable |
C++, Python |
Hard |
1578 |
Minimum Deletion Cost to Avoid Repeating Letters |
C++, Python |
Medium |
1577 |
NumberofWaysWhereSquareofNumberIsEqualtoProductofTwoNumbers |
C++, Python |
Medium |
1576 |
Replace All ?'s to Avoid Consecutive Repeating Characters |
C++, Python |
Easy |
1575 |
Count All Possible Routes |
C++, Python |
Hard |
1574 |
Shortest Subarray to be Removed to Make Array Sorted |
C++, Python |
Medium |
1573 |
Number of Ways to Split a String |
C++, Python |
Medium |
1572 |
Matrix Diagonal Sum |
C++, Python |
Easy |
1569 |
Number of Ways to Reorder Array to Get Same BST |
C++, Python |
Hard |
1568 |
Minimum Number of Days to Disconnect Island |
C++, Python |
Hard |
1567 |
Maximum Length of Subarray With Positive Product |
C++, Python |
Medium |
1566 |
Detect Pattern of Length M Repeated K or More Times |
C++, Python |
Easy |
1563 |
Stone Game V |
C++, Python |
Hard |
1562 |
Find Latest Group of Size M |
C++, Python |
Medium |
1561 |
Maximum Number of Coins You Can Get |
C++, Python |
Medium |
1560 |
Most Visited Sector in a Circular Track |
C++, Python |
Easy |
1559 |
Detect Cycles in 2D Grid |
C++, Python |
Hard |
1558 |
Minimum Numbers of Function Calls to Make Target Array |
C++, Python |
Medium |
1557 |
Minimum Number of Vertices to Reach All Nodes |
C++, Python |
Medium |
1556 |
Thousand Separator |
C++, Python |
Easy |
1553 |
Minimum Number of Days to Eat N Oranges |
C++, Python |
Hard |
1552 |
Magnetic Force Between Two Balls |
C++, Python |
Medium |
1551 |
Minimum Operations to Make Array Equal |
C++, Python |
Medium |
1550 |
Three Consecutive Odds |
C++, Python |
Easy |
1547 |
Minimum Cost to Cut a Stick |
C++, Python |
Hard |
1546 |
MaximumNumberofNon-OverlappingSubarraysWithSumEqualsTarget |
C++, Python |
Medium |
1545 |
Find Kth Bit in Nth Binary String |
C++, Python |
Medium |
1544 |
Make The String Great |
C++, Python |
Easy |
1542 |
Find Longest Awesome Substring |
C++, Python |
Hard |
1541 |
Minimum Insertions to Balance a Parentheses String |
C++, Python |
Medium |
1540 |
Can Convert String in K Moves |
C++, Python |
Medium |
1539 |
Kth Missing Positive Number |
C++, Python |
Easy |
1537 |
Get the Maximum Score |
C++, Python |
Hard |
1536 |
Minimum Swaps to Arrange a Binary Grid |
C++, Python |
Medium |
1535 |
Find the Winner of an Array Game |
C++, Python |
Medium |
1534 |
Count Good Triplets |
C++, Python |
Easy |
1531 |
String Compression II |
C++, Python |
Hard |
1530 |
Number of Good Leaf Nodes Pairs |
C++, Python |
Medium |
1529 |
Bulb Switcher IV |
C++, Python |
Medium |
1528 |
Shuffle String |
C++, Python |
Easy |
1526 |
Minimum Number of Increments on Subarrays to Form a Target Array |
C++, Python |
Hard |
1525 |
Number of Good Ways to Split a String |
C++, Python |
Medium |
1524 |
Number of Sub-arrays With Odd Sum |
C++, Python |
Medium |
1523 |
Count Odd Numbers in an Interval Range |
C++, Python |
Easy |
1521 |
Find a Value of a Mysterious Function Closest to Target |
C++, Python |
Hard |
1520 |
Maximum Number of Non-Overlapping Substrings |
C++, Python |
Hard |
1519 |
Number of Nodes in the Sub-Tree With the Same Label |
C++, Python |
Medium |
1518 |
Water Bottles |
C++, Python |
Easy |
1515 |
Best Position for a Service Centre |
C++, Python |
Hard |
1514 |
Path with Maximum Probability |
C++, Python |
Medium |
1513 |
Number of Substrings With Only 1s |
C++, Python |
Medium |
1512 |
Number of Good Pairs |
C++, Python |
Easy |
1510 |
Stone Game IV |
C++, Python |
Hard |
1509 |
Minimum Difference Between Largest and Smallest Value in Three Moves |
C++, Python |
Medium |
1508 |
Range Sum of Sorted Subarray Sums |
C++, Python |
Medium |
1507 |
Reformat Date |
C++, Python |
Easy |
1505 |
Minimum Possible Integer After at Most K Adjacent Swaps On Digits |
C++, Python |
Hard |
1504 |
Count Submatrices With All Ones |
C++, Python |
Medium |
1503 |
Last Moment Before All Ants Fall Out of a Plank |
C++, Python |
Medium |
1502 |
Can Make Arithmetic Progression From Sequence |
C++, Python |
Easy |
1499 |
Max Value of Equation |
C++, Python |
Hard |
1497 |
Check If Array Pairs Are Divisible by k |
C++, Python |
Medium |
1496 |
Path Crossing |
C++, Python |
Easy |
1494 |
Parallel Courses II |
C++, Python |
Hard |
1493 |
Longest Subarray of 1's After Deleting One Element |
C++, Python |
Medium |
1492 |
The kth Factor of n |
C++, Python |
Medium |
1491 |
Average Salary Excluding the Minimum and Maximum Salary |
C++, Python |
Easy |
1489 |
Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree |
C++, Python |
Hard |
1488 |
Avoid Flood in The City |
C++, Python |
Medium |
1487 |
Making File Names Unique |
C++, Python |
Medium |
1486 |
XOR Operation in an Array |
C++, Python |
Easy |
1483 |
Kth Ancestor of a Tree Node |
C++, Python |
Hard |
1482 |
Minimum Number of Days to Make m Bouquets |
C++, Python |
Medium |
1481 |
Least Number of Unique Integers after K Removals |
C++, Python |
Medium |
1480 |
Running Sum of 1d Array |
C++, Python |
Easy |
1478 |
Allocate Mailboxes |
C++, Python |
Hard |
1477 |
Find Two Non-overlapping Sub-arrays Each With Target Sum |
C++, Python |
Medium |
1476 |
Subrectangle Queries |
C++, Python |
Medium |
1475 |
Final Prices With a Special Discount in a Shop |
C++, Python |
Easy |
1473 |
Paint House III |
C++, Python |
Hard |
1472 |
Design Browser History |
C++, Python |
Medium |
1471 |
The k Strongest Values in an Array |
C++, Python |
Medium |
1470 |
Shuffle the Array |
C++, Python |
Easy |
1466 |
Reorder Routes to Make All Paths Lead to the City Zero |
C++, Python |
Medium |
1465 |
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts |
C++, Python |
Medium |
1464 |
Maximum Product of Two Elements in an Array |
C++, Python |
Easy |
1463 |
Cherry Pickup II |
C++, Python |
Hard |
1462 |
Course Schedule IV |
C++, Python |
Medium |
1461 |
Check If a String Contains All Binary Codes of Size K |
C++, Python |
Medium |
1460 |
Make Two Arrays Equal by Reversing Sub-arrays |
C++, Python |
Easy |
1458 |
Max Dot Product of Two Subsequences |
C++, Python |
Hard |
1457 |
Pseudo-Palindromic Paths in a Binary Tree |
C++, Python |
Medium |
1456 |
Maximum Number of Vowels in a Substring of Given Length |
C++, Python |
Medium |
1455 |
Check If a Word Occurs As a Prefix of Any Word in a Sentence |
C++, Python |
Easy |
1452 |
People Whose List of Favorite Companies Is NotaSubsetofAnotherList |
C++, Python |
Medium |
1451 |
Rearrange Words in a Sentence |
C++, Python |
Medium |
1450 |
Number of Students Doing Homework at a Given Time |
C++, Python |
Easy |
1449 |
Form Largest Integer With Digits That Add up to Target |
C++, Python |
Hard |
1448 |
Count Good Nodes in Binary Tree |
C++, Python |
Medium |
1447 |
Simplified Fractions |
C++, Python |
Medium |
1446 |
Consecutive Characters |
C++, Python |
Easy |
1444 |
Number of Ways of Cutting a Pizza |
C++, Python |
Hard |
1443 |
Minimum Time to Collect All Apples in a Tree |
C++, Python |
Medium |
1442 |
Count Triplets That Can Form Two Arrays of Equal XOR |
C++, Python |
Medium |
1441 |
Build an Array With Stack Operations |
C++, Python |
Easy |
1439 |
Find the Kth Smallest Sum of a Matrix With Sorted Rows |
C++, Python |
Hard |
1438 |
LongestContinuousSubarrayWithAbsoluteDiffLessThanorEqualtoLimit |
C++, Python |
Medium |
1437 |
Check If All 1's Are at Least Length K Places Away |
C++, Python |
Easy |
1436 |
Destination City |
C++, Python |
Easy |
1434 |
Number of Ways to Wear Different Hats to Each Other |
C++, Python |
Hard |
1433 |
Check If a String Can Break Another String |
C++, Python |
Medium |
1432 |
Max Difference You Can Get From Changing an Integer |
C++, Python |
Medium |
1431 |
Kids With the Greatest Number of Candies |
C++, Python |
Easy |
1425 |
Constrained Subsequence Sum |
C++, Python |
Hard |
1424 |
Diagonal Traverse II |
C++, Python |
Medium |
1423 |
Maximum Points You Can Obtain from Cards |
C++, Python |
Medium |
1422 |
Maximum Score After Splitting a String |
C++, Python |
Easy |
1420 |
Build Array Where You Can Find The Maximum Exactly K Comparisons |
C++, Python |
Hard |
1419 |
Minimum Number of Frogs Croaking |
C++, Python |
Medium |
1418 |
Display Table of Food Orders in a Restaurant |
C++, Python |
Medium |
1417 |
Reformat The String |
C++, Python |
Easy |
1416 |
Restore The Array |
C++, Python |
Hard |
1415 |
The k-th Lexicographical String of All Happy Strings of Length n |
C++, Python |
Medium |
1414 |
Find the Minimum Number of Fibonacci Numbers Whose Sum Is K |
C++, Python |
Medium |
1413 |
Minimum Value to Get Positive Step by Step Sum |
C++, Python |
Easy |
1411 |
Number of Ways to Paint N × 3 Grid |
C++, Python |
Hard |
1410 |
HTML Entity Parser |
C++, Python |
Medium |
1409 |
Queries on a Permutation With Key |
C++, Python |
Medium |
1408 |
String Matching in an Array |
C++, Python |
Easy |
1406 |
Stone Game III |
C++, Python |
Hard |
1405 |
Longest Happy String |
C++, Python |
Medium |
1404 |
Number of Steps to Reduce a Number in Binary Representation to One |
C++, Python |
Medium |
1403 |
Minimum Subsequence in Non-Increasing Order |
C++, Python |
Easy |
1402 |
Reducing Dishes |
C++, Python |
Hard |
1401 |
Circle and Rectangle Overlapping |
C++, Python |
Medium |
1400 |
Construct K Palindrome Strings |
C++, Python |
Medium |
1399 |
Count Largest Group |
C++, Python |
Easy |
1396 |
Design Underground System |
C++, Python |
Medium |
1395 |
Count Number of Teams |
C++, Python |
Medium |
1394 |
Find Lucky Integer in an Array |
C++, Python |
Easy |
1392 |
Longest Happy Prefix |
C++, Python |
Hard |
1391 |
Check if There is a Valid Path in a Grid |
C++, Python |
Medium |
1390 |
Four Divisors |
C++, Python |
Medium |
1389 |
Create Target Array in the Given Order |
C++, Python |
Easy |
1388 |
Pizza With 3n Slices |
C++, Python |
Hard |
1387 |
Sort Integers by The Power Value |
C++, Python |
Medium |
1386 |
Cinema Seat Allocation |
C++, Python |
Medium |
1385 |
Find the Distance Value Between Two Arrays |
C++, Python |
Easy |
1383 |
Maximum Performance of a Team |
C++, Python |
Hard |
1382 |
Balance a Binary Search Tree |
C++, Python |
Medium |
1381 |
Design a Stack With Increment Operation |
C++, Python |
Medium |
1380 |
Lucky Numbers in a Matrix |
C++, Python |
Easy |
1379 |
Find a Corresponding Node of a Binary Tree in a Clone of That Tree |
C++, Python |
Medium |
1377 |
Frog Position After T Seconds |
C++, Python |
Hard |
1376 |
Time Needed to Inform All Employees |
C++, Python |
Medium |
1375 |
Bulb Switcher III |
C++, Python |
Medium |
1374 |
Generate a String With Characters That Have Odd Counts |
C++, Python |
Easy |
1373 |
Maximum Sum BST in Binary Tree |
C++, Python |
Hard |
1372 |
Longest ZigZag Path in a Binary Tree |
C++, Python |
Medium |
1371 |
Find the Longest Substring Containing Vowels in Even Counts |
C++, Python |
Medium |
1370 |
Increasing Decreasing String |
C++, Python |
Easy |
1368 |
Minimum Cost to Make at Least One Valid Path in a Grid |
C++, Python |
Hard |
1367 |
Linked List in Binary Tree |
C++, Python |
Medium |
1366 |
Rank Teams by Votes |
C++, Python |
Medium |
1365 |
How Many Numbers Are Smaller Than the Current Number |
C++, Python |
Easy |
1363 |
Largest Multiple of Three |
C++, Python |
Hard |
1362 |
Closest Divisors |
C++, Python |
Medium |
1361 |
Validate Binary Tree Nodes |
C++, Python |
Medium |
1360 |
Number of Days Between Two Dates |
C++, Python |
Easy |
1359 |
Count All Valid Pickup and Delivery Options |
C++, Python |
Hard |
1358 |
Number of Substrings Containing All Three Characters |
C++, Python |
Medium |
1357 |
Apply Discount Every n Orders |
C++, Python |
Medium |
1356 |
Sort Integers by The Number of 1 Bits |
C++, Python |
Easy |
1354 |
Construct Target Array With Multiple Sums |
C++, Python |
Hard |
1353 |
Maximum Number of Events That Can Be Attended |
C++, Python |
Medium |
1352 |
Product of the Last K Numbers |
C++, Python |
Medium |
1351 |
Count Negative Numbers in a Sorted Matrix |
C++, Python |
Easy |
1349 |
Maximum Students Taking Exam |
C++, Python |
Hard |
1348 |
Tweet Counts Per Frequency |
C++, Python |
Medium |
1347 |
Minimum Number of Steps to Make Two Strings Anagram |
C++, Python |
Medium |
1346 |
Check If N and Its Double Exist |
C++, Python |
Easy |
1345 |
Jump Game IV |
C++, Python |
Hard |
1344 |
Angle Between Hands of a Clock |
C++, Python |
Medium |
1343 |
NumberofSub-arraysofSizeKandAverageGreaterthanorEqualtoThreshold |
C++, Python |
Medium |
1342 |
Number of Steps to Reduce a Number to Zero |
C++, Python |
Easy |
1340 |
Jump Game V |
C++, Python |
Hard |
1339 |
Maximum Product of Splitted Binary Tree |
C++, Python |
Medium |
1338 |
Reduce Array Size to The Half |
C++, Python |
Medium |
1337 |
The K Weakest Rows in a Matrix |
C++, Python |
Easy |
1335 |
Minimum Difficulty of a Job Schedule |
C++, Python |
Hard |
1334 |
FindtheCityWiththeSmallestNumberofNeighborsataThresholdDistance |
C++, Python |
Medium |
1333 |
Filter Restaurants by Vegan-Friendly, Price and Distance |
C++, Python |
Medium |
1332 |
Remove Palindromic Subsequences |
C++, Python |
Easy |
1331 |
Rank Transform of an Array |
C++, Python |
Easy |
1330 |
Reverse Subarray To Maximize Array Value |
C++, Python |
Hard |
1329 |
Sort the Matrix Diagonally |
C++, Python |
Medium |
1328 |
Break a Palindrome |
C++, Python |
Medium |
1326 |
Minimum Number of Taps to Open to Water a Garden |
C++, Python |
Hard |
1325 |
Delete Leaves With a Given Value |
C++, Python |
Medium |
1324 |
Print Words Vertically |
C++, Python |
Medium |
1323 |
Maximum 69 Number |
C++, Python |
Easy |
1320 |
Minimum Distance to Type a Word Using Two Fingers |
C++, Python |
Hard |
1319 |
Number of Operations to Make Network Connected |
C++, Python |
Medium |
1318 |
Minimum Flips to Make a OR b Equal to c |
C++, Python |
Medium |
1317 |
Convert Integer to the Sum of Two No-Zero Integers |
C++, Python |
Easy |
1316 |
Distinct Echo Substrings |
C++, Python |
Hard |
1315 |
Sum of Nodes with Even-Valued Grandparent |
C++, Python |
Medium |
1314 |
Matrix Block Sum |
C++, Python |
Medium |
1313 |
Decompress Run-Length Encoded List |
C++, Python |
Easy |
1312 |
Minimum Insertion Steps to Make a String Palindrome |
C++, Python |
Hard |
1311 |
Get Watched Videos by Your Friends |
C++, Python |
Medium |
1310 |
XOR Queries of a Subarray |
C++, Python |
Medium |
1309 |
Decrypt String from Alphabet to Integer Mapping |
C++, Python |
Easy |
1307 |
Verbal Arithmetic Puzzle |
C++, Python |
Hard |
1306 |
Jump Game III |
C++, Python |
Medium |
1305 |
All Elements in Two Binary Search Trees |
C++, Python |
Medium |
1304 |
Find N Unique Integers Sum up to Zero |
C++, Python |
Easy |
1302 |
Deepest Leaves Sum |
C++, Python |
Medium |
1301 |
Number of Paths with Max Score |
C++, Python |
Hard |
1300 |
Sum of Mutated Array Closest to Target |
C++, Python |
Medium |
1299 |
Replace Elements with Greatest Element on Right Side |
C++, Python |
Easy |
1298 |
Maximum Candies You Can Get from Boxes |
C++, Python |
Hard |
1297 |
Maximum Number of Occurrences of a Substring |
C++, Python |
Medium |
1296 |
Divide Array in Sets of K Consecutive Numbers |
C++, Python |
Medium |
1295 |
Find Numbers with Even Number of Digits |
C++, Python |
Easy |
1293 |
Shortest Path in a Grid with Obstacles Elimination |
C++, Python |
Hard |
1292 |
Maximum SideLengthofaSquarewithSumLessthanorEqualtoThreshold |
C++, Python |
Medium |
1291 |
Sequential Digits |
C++, Python |
Medium |
1290 |
Convert Binary Number in a Linked List to Integer |
C++, Python |
Easy |
1289 |
Minimum Falling Path Sum II |
C++, Python |
Hard |
1288 |
Remove Covered Intervals |
C++, Python |
Medium |
1287 |
Element Appearing More Than 25% In Sorted Array |
C++, Python |
Easy |
1286 |
Iterator for Combination |
C++, Python |
Medium |
1284 |
Minimum Number of Flips to Convert Binary Matrix to Zero Matrix |
C++, Python |
Hard |
1283 |
Find the Smallest Divisor Given a Threshold |
C++, Python |
Medium |
1282 |
Group the People Given the Group Size They Belong To |
C++, Python |
Medium |
1281 |
Subtract the Product and Sum of Digits of an Integer |
C++, Python |
Easy |
1278 |
Palindrome Partitioning III |
C++, Python |
Hard |
1277 |
Count Square Submatrices with All Ones |
C++, Python |
Medium |
1276 |
Number of Burgers with No Waste of Ingredients |
C++, Python |
Medium |
1275 |
Find Winner on a Tic Tac Toe Game |
C++, Python |
Easy |
1269 |
Number of Ways to Stay in the Same Place After Some Steps |
C++, Python |
Hard |
1268 |
Search Suggestions System |
C++, Python |
Medium |
1267 |
Count Servers that Communicate |
C++, Python |
Medium |
1266 |
Minimum Time Visiting All Points |
C++, Python |
Easy |
1262 |
Greatest Sum Divisible by Three |
C++, Python |
Medium |
1261 |
Find Elements in a Contaminated Binary Tree |
C++, Python |
Medium |
1260 |
Shift 2D Grid |
C++, Python |
Easy |
1255 |
Maximum Score Words Formed by Letters |
C++, Python |
Hard |
1254 |
Number of Closed Islands |
C++, Python |
Medium |
1253 |
Reconstruct a 2-Row Binary Matrix |
C++, Python |
Medium |
1252 |
Cells with Odd Values in a Matrix |
C++, Python |
Easy |
1250 |
Check If It Is a Good Array |
C++, Python |
Hard |
1249 |
Minimum Remove to Make Valid Parentheses |
C++, Python |
Medium |
1248 |
Count Number of Nice Subarrays |
C++, Python |
Medium |
1247 |
Minimum Swaps to Make Strings Equal |
C++, Python |
Medium |
1240 |
Tiling a Rectangle with the Fewest Squares |
C++, Python |
Hard |
1239 |
Maximum Length of a Concatenated String with Unique Characters |
C++, Python |
Medium |
1238 |
Circular Permutation in Binary Representation |
C++, Python |
Medium |
1237 |
Find Positive Integer Solution for a Given Equation |
C++, Python |
Medium |
1235 |
Maximum Profit in Job Scheduling |
C++, Python |
Hard |
1234 |
Replace the Substring for Balanced String |
C++, Python |
Medium |
1233 |
Remove Sub-Folders from the Filesystem |
C++, Python |
Medium |
1232 |
Check If It Is a Straight Line |
C++, Python |
Easy |
1227 |
Airplane Seat Assignment Probability |
C++, Python |
Medium |
1226 |
The Dining Philosophers |
C++, Python |
Medium |
1224 |
Maximum Equal Frequency |
C++, Python |
Hard |
1223 |
Dice Roll Simulation |
C++, Python |
Hard |
1222 |
Queens That Can Attack the King |
C++, Python |
Medium |
1221 |
Split a String in Balanced Strings |
C++, Python |
Easy |
1220 |
Count Vowels Permutation |
C++, Python |
Hard |
1219 |
Path with Maximum Gold |
C++, Python |
Medium |
1218 |
Longest Arithmetic Subsequence of Given Difference |
C++, Python |
Medium |
1217 |
Minimum Cost to Move Chips to The Same Position |
C++, Python |
Easy |
1210 |
Minimum Moves to Reach Target with Rotations |
C++, Python |
Hard |
1209 |
Remove All Adjacent Duplicates in String II |
C++, Python |
Medium |
1208 |
Get Equal Substrings Within Budget |
C++, Python |
Medium |
1207 |
Unique Number of Occurrences |
C++, Python |
Easy |
1206 |
Design Skiplist |
C++, Python |
Hard |
1203 |
Sort Items by Groups Respecting Dependencies |
C++, Python |
Hard |
1202 |
Smallest String With Swaps |
C++, Python |
Medium |
1201 |
Ugly Number III |
C++, Python |
Medium |
1200 |
Minimum Absolute Difference |
C++, Python |
Easy |
1195 |
Fizz Buzz Multithreaded |
C++, Python |
Medium |
1192 |
Critical Connections in a Network |
C++, Python |
Hard |
1191 |
K-Concatenation Maximum Sum |
C++, Python |
Medium |
1190 |
Reverse Substrings Between Each Pair of Parentheses |
C++, Python |
Medium |
1189 |
Maximum Number of Balloons |
C++, Python |
Easy |
1187 |
Make Array Strictly Increasing |
C++, Python |
Hard |
1186 |
Maximum Subarray Sum with One Deletion |
C++, Python |
Medium |
1185 |
Day of the Week |
C++, Python |
Easy |
1184 |
Distance Between Bus Stops |
C++, Python |
Easy |
1178 |
Number of Valid Words for Each Puzzle |
C++, Python |
Hard |
1177 |
Can Make Palindrome from Substring |
C++, Python |
Medium |
1175 |
Prime Arrangements |
C++, Python |
Easy |
1172 |
Dinner Plate Stacks |
C++, Python |
Hard |
1171 |
Remove Zero Sum Consecutive Nodes from Linked List |
C++, Python |
Medium |
1170 |
Compare Strings by Frequency of the Smallest Character |
C++, Python |
Medium |
1169 |
Invalid Transactions |
C++, Python |
Medium |
1163 |
Last Substring in Lexicographical Order |
C++, Python |
Hard |
1162 |
As Far from Land as Possible |
C++, Python |
Medium |
1161 |
Maximum Level Sum of a Binary Tree |
C++, Python |
Medium |
1160 |
Find Words That Can Be Formed by Characters |
C++, Python |
Easy |
1157 |
Online Majority Element In Subarray |
C++, Python |
Hard |
1156 |
Swap For Longest Repeated Character Substring |
C++, Python |
Medium |
1155 |
Number of Dice Rolls With Target Sum |
C++, Python |
Medium |
1154 |
Day of the Year |
C++, Python |
Easy |
1147 |
Longest Chunked Palindrome Decomposition |
C++, Python |
Hard |
1146 |
Snapshot Array |
C++, Python |
Medium |
1145 |
Binary Tree Coloring Game |
C++, Python |
Medium |
1144 |
Decrease Elements To Make Array Zigzag |
C++, Python |
Medium |
1143 |
Longest Common Subsequence |
C++, Python |
Medium |
1140 |
Stone Game II |
C++, Python |
Medium |
1139 |
Largest 1-Bordered Square |
C++, Python |
Medium |
1138 |
Alphabet Board Path |
C++, Python |
Medium |
1137 |
N-th Tribonacci Number |
C++, Python |
Easy |
1131 |
Maximum of Absolute Value Expression |
C++, Python |
Medium |
1130 |
Minimum Cost Tree From Leaf Values |
C++, Python |
Medium |
1129 |
Shortest Path with Alternating Colors |
C++, Python |
Medium |
1128 |
Number of Equivalent Domino Pairs |
C++, Python |
Easy |
1125 |
Smallest Sufficient Team |
C++, Python |
Hard |
1124 |
Longest Well-Performing Interval |
C++, Python |
Medium |
1123 |
Lowest Common Ancestor of Deepest Leaves |
C++, Python |
Medium |
1122 |
Relative Sort Array |
C++, Python |
Easy |
1117 |
Building H2O |
C++, Python |
Medium |
1116 |
Print Zero Even Odd |
C++, Python |
Medium |
1115 |
Print FooBar Alternately |
C++, Python |
Medium |
1114 |
Print in Order |
C++, Python |
Easy |
1111 |
Maximum Nesting Depth of Two Valid Parentheses Strings |
C++, Python |
Medium |
1110 |
Delete Nodes And Return Forest |
C++, Python |
Medium |
1109 |
Corporate Flight Bookings |
C++, Python |
Medium |
1108 |
Defanging an IP Address |
C++, Python |
Easy |
1106 |
Parsing A Boolean Expression |
C++, Python |
Hard |
1105 |
Filling Bookcase Shelves |
C++, Python |
Medium |
1104 |
Path In Zigzag Labelled Binary Tree |
C++, Python |
Medium |
1103 |
Distribute Candies to People |
C++, Python |
Easy |
1096 |
Brace Expansion II |
C++, Python |
Hard |
1095 |
Find in Mountain Array |
C++, Python |
Hard |
1094 |
Car Pooling |
C++, Python |
Medium |
1093 |
Statistics from a Large Sample |
C++, Python |
Medium |
1092 |
Shortest Common Supersequence |
C++, Python |
Hard |
1091 |
Shortest Path in Binary Matrix |
C++, Python |
Medium |
1090 |
Largest Values From Labels |
C++, Python |
Medium |
1089 |
Duplicate Zeros |
C++, Python |
Easy |
1081 |
Smallest Subsequence of Distinct Characters |
C++, Python |
Medium |
1080 |
Insufficient Nodes in Root to Leaf Paths |
C++, Python |
Medium |
1079 |
Letter Tile Possibilities |
C++, Python |
Medium |
1078 |
Occurrences After Bigram |
C++, Python |
Easy |
1074 |
Number of Submatrices That Sum to Target |
C++, Python |
Hard |
1073 |
Adding Two Negabinary Numbers |
C++, Python |
Medium |
1072 |
Flip Columns For Maximum Number of Equal Rows |
C++, Python |
Medium |
1071 |
Greatest Common Divisor of Strings |
C++, Python |
Easy |
1054 |
Distant Barcodes |
C++, Python |
Medium |
1053 |
Previous Permutation With One Swap |
C++, Python |
Medium |
1052 |
Grumpy Bookstore Owner |
C++, Python |
Medium |
1051 |
Height Checker |
C++, Python |
Easy |
1049 |
Last Stone Weight II |
C++, Python |
Medium |
1048 |
Longest String Chain |
C++, Python |
Medium |
1047 |
Remove All Adjacent Duplicates In String |
C++, Python |
Easy |
1046 |
Last Stone Weight |
C++, Python |
Easy |
1044 |
Longest Duplicate Substring |
C++, Python |
Hard |
1043 |
Partition Array for Maximum Sum |
C++, Python |
Medium |
1042 |
Flower Planting With No Adjacent |
C++, Python |
Medium |
1041 |
Robot Bounded In Circle |
C++, Python |
Medium |
1040 |
Moving Stones Until Consecutive II |
C++, Python |
Medium |
1039 |
Minimum Score Triangulation of Polygon |
C++, Python |
Medium |
1038 |
Binary Search Tree to Greater Sum Tree |
C++, Python |
Medium |
1037 |
Valid Boomerang |
C++, Python |
Easy |
1036 |
Escape a Large Maze |
C++, Python |
Hard |
1035 |
Uncrossed Lines |
C++, Python |
Medium |
1034 |
Coloring A Border |
C++, Python |
Medium |
1033 |
Moving Stones Until Consecutive |
C++, Python |
Easy |
1032 |
Stream of Characters |
C++, Python |
Hard |
1031 |
Maximum Sum of Two Non-Overlapping Subarrays |
C++, Python |
Medium |
1030 |
Matrix Cells in Distance Order |
C++, Python |
Easy |
1029 |
Two City Scheduling |
C++, Python |
Medium |
1028 |
Recover a Tree From Preorder Traversal |
C++, Python |
Hard |
1027 |
Longest Arithmetic Subsequence |
C++, Python |
Medium |
1026 |
Maximum Difference Between Node and Ancestor |
C++, Python |
Medium |
1025 |
Divisor Game |
C++, Python |
Easy |
1024 |
Video Stitching |
C++, Python |
Medium |
1023 |
Camelcase Matching |
C++, Python |
Medium |
1022 |
Sum of Root To Leaf Binary Numbers |
C++, Python |
Easy |
1021 |
Remove Outermost Parentheses |
C++, Python |
Easy |
1020 |
Number of Enclaves |
C++, Python |
Medium |
1019 |
Next Greater Node In Linked List |
C++, Python |
Medium |
1018 |
Binary Prefix Divisible By 5 |
C++, Python |
Easy |
1017 |
Convert to Base -2 |
C++, Python |
Medium |
1016 |
Binary String With Substrings Representing 1 To N |
C++, Python |
Medium |
1015 |
Smallest Integer Divisible by K |
C++, Python |
Medium |
1014 |
Best Sightseeing Pair |
C++, Python |
Medium |
1013 |
Partition Array Into Three Parts With Equal Sum |
C++, Python |
Easy |
1012 |
Numbers With Repeated Digits |
C++, Python |
Hard |
1011 |
Capacity To Ship Packages Within D Days |
C++, Python |
Medium |
1010 |
Pairs of Songs With Total Durations Divisible by 60 |
C++, Python |
Medium |
1009 |
Complement of Base 10 Integer |
C++, Python |
Easy |
1008 |
Construct Binary Search Tree from Preorder Traversal |
C++, Python |
Medium |
1007 |
Minimum Domino Rotations For Equal Row |
C++, Python |
Medium |
1006 |
Clumsy Factorial |
C++, Python |
Medium |
1005 |
Maximize Sum Of Array After K Negations |
C++, Python |
Easy |
1004 |
Max Consecutive Ones III |
C++, Python |
Medium |
1003 |
Check If Word Is Valid After Substitutions |
C++, Python |
Medium |
1002 |
Find Common Characters |
C++, Python |
Easy |
1000 |
Minimum Cost to Merge Stones |
C++, Python |
Hard |
999 |
Available Captures for Rook |
C++, Python |
Easy |
998 |
Maximum Binary Tree II |
C++, Python |
Medium |
997 |
Find the Town Judge |
C++, Python |
Easy |
996 |
Number of Squareful Arrays |
C++, Python |
Hard |
995 |
Minimum Number of K Consecutive Bit Flips |
C++, Python |
Hard |
994 |
Rotting Oranges |
C++, Python |
Medium |
993 |
Cousins in Binary Tree |
C++, Python |
Easy |
992 |
Subarrays with K Different Integers |
C++, Python |
Hard |
991 |
Broken Calculator |
C++, Python |
Medium |
990 |
Satisfiability of Equality Equations |
C++, Python |
Medium |
989 |
Add to Array-Form of Integer |
C++, Python |
Easy |
988 |
Smallest String Starting From Leaf |
C++, Python |
Medium |
987 |
Vertical Order Traversal of a Binary Tree |
C++, Python |
Hard |
986 |
Interval List Intersections |
C++, Python |
Medium |
985 |
Sum of Even Numbers After Queries |
C++, Python |
Easy |
984 |
String Without AAA or BBB |
C++, Python |
Medium |
983 |
Minimum Cost For Tickets |
C++, Python |
Medium |
982 |
Triples with Bitwise AND Equal To Zero |
C++, Python |
Hard |
981 |
Time Based Key-Value Store |
C++, Python |
Medium |
980 |
Unique Paths III |
C++, Python |
Hard |
979 |
Distribute Coins in Binary Tree |
C++, Python |
Medium |
978 |
Longest Turbulent Subarray |
C++, Python |
Medium |
977 |
Squares of a Sorted Array |
C++, Python |
Easy |
976 |
Largest Perimeter Triangle |
C++, Python |
Easy |
975 |
Odd Even Jump |
C++, Python |
Hard |
974 |
Subarray Sums Divisible by K |
C++, Python |
Medium |
973 |
K Closest Points to Origin |
C++, Python |
Medium |
972 |
Equal Rational Numbers |
C++, Python |
Hard |
971 |
Flip Binary Tree To Match Preorder Traversal |
C++, Python |
Medium |
970 |
Powerful Integers |
C++, Python |
Medium |
969 |
Pancake Sorting |
C++, Python |
Medium |
968 |
Binary Tree Cameras |
C++, Python |
Hard |
967 |
Numbers With Same Consecutive Differences |
C++, Python |
Medium |
966 |
Vowel Spellchecker |
C++, Python |
Medium |
965 |
Univalued Binary Tree |
C++, Python |
Easy |
964 |
Least Operators to Express Number |
C++, Python |
Hard |
963 |
Minimum Area Rectangle II |
C++, Python |
Medium |
962 |
Maximum Width Ramp |
C++, Python |
Medium |
961 |
N-Repeated Element in Size 2N Array |
C++, Python |
Easy |
960 |
Delete Columns to Make Sorted III |
C++, Python |
Hard |
959 |
Regions Cut By Slashes |
C++, Python |
Medium |
958 |
Check Completeness of a Binary Tree |
C++, Python |
Medium |
957 |
Prison Cells After N Days |
C++, Python |
Medium |
956 |
Tallest Billboard |
C++, Python |
Hard |
955 |
Delete Columns to Make Sorted II |
C++, Python |
Medium |
954 |
Array of Doubled Pairs |
C++, Python |
Medium |
953 |
Verifying an Alien Dictionary |
C++, Python |
Easy |
952 |
Largest Component Size by Common Factor |
C++, Python |
Hard |
951 |
Flip Equivalent Binary Trees |
C++, Python |
Medium |
950 |
Reveal Cards In Increasing Order |
C++, Python |
Medium |
949 |
Largest Time for Given Digits |
C++, Python |
Medium |
948 |
Bag of Tokens |
C++, Python |
Medium |
947 |
Most Stones Removed with Same Row or Column |
C++, Python |
Medium |
946 |
Validate Stack Sequences |
C++, Python |
Medium |
945 |
Minimum Increment to Make Array Unique |
C++, Python |
Medium |
944 |
Delete Columns to Make Sorted |
C++, Python |
Easy |
943 |
Find the Shortest Superstring |
C++, Python |
Hard |
942 |
DI String Match |
C++, Python |
Easy |
941 |
Valid Mountain Array |
C++, Python |
Easy |
940 |
Distinct Subsequences II |
C++, Python |
Hard |
939 |
Minimum Area Rectangle |
C++, Python |
Medium |
938 |
Range Sum of BST |
C++, Python |
Easy |
937 |
Reorder Data in Log Files |
C++, Python |
Easy |
936 |
Stamping The Sequence |
C++, Python |
Hard |
935 |
Knight Dialer |
C++, Python |
Medium |
934 |
Shortest Bridge |
C++, Python |
Medium |
933 |
Number of Recent Calls |
C++, Python |
Easy |
932 |
Beautiful Array |
C++, Python |
Medium |
931 |
Minimum Falling Path Sum |
C++, Python |
Medium |
930 |
Binary Subarrays With Sum |
C++, Python |
Medium |
929 |
Unique Email Addresses |
C++, Python |
Easy |
928 |
Minimize Malware Spread II |
C++, Python |
Hard |
927 |
Three Equal Parts |
C++, Python |
Hard |
926 |
Flip String to Monotone Increasing |
C++, Python |
Medium |
925 |
Long Pressed Name |
C++, Python |
Easy |
924 |
Minimize Malware Spread |
C++, Python |
Hard |
923 |
3Sum With Multiplicity |
C++, Python |
Medium |
922 |
Sort Array By Parity II |
C++, Python |
Easy |
921 |
Minimum Add to Make Parentheses Valid |
C++, Python |
Medium |
920 |
Number of Music Playlists |
C++, Python |
Hard |
919 |
Complete Binary Tree Inserter |
C++, Python |
Medium |
918 |
Maximum Sum Circular Subarray |
C++, Python |
Medium |
917 |
Reverse Only Letters |
C++, Python |
Easy |
916 |
Word Subsets |
C++, Python |
Medium |
915 |
Partition Array into Disjoint Intervals |
C++, Python |
Medium |
914 |
X of a Kind in a Deck of Cards |
C++, Python |
Easy |
913 |
Cat and Mouse |
C++, Python |
Hard |
912 |
Sort an Array |
C++, Python |
Medium |
911 |
Online Election |
C++, Python |
Medium |
910 |
Smallest Range II |
C++, Python |
Medium |
909 |
Snakes and Ladders |
C++, Python |
Medium |
908 |
Smallest Range I |
C++, Python |
Easy |
907 |
Sum of Subarray Minimums |
C++, Python |
Medium |
906 |
Super Palindromes |
C++, Python |
Hard |
905 |
Sort Array By Parity |
C++, Python |
Easy |
904 |
Fruit Into Baskets |
C++, Python |
Medium |
902 |
Numbers At Most N Given Digit Set |
C++, Python |
Hard |
901 |
Online Stock Span |
C++, Python |
Medium |
900 |
RLE Iterator |
C++, Python |
Medium |
899 |
Orderly Queue |
C++, Python |
Hard |
898 |
Bitwise ORs of Subarrays |
C++, Python |
Medium |
897 |
Increasing Order Search Tree |
C++, Python |
Easy |
896 |
Monotonic Array |
C++, Python |
Easy |
895 |
Maximum Frequency Stack |
C++, Python |
Hard |
894 |
All Possible Full Binary Trees |
C++, Python |
Medium |
893 |
Groups of Special-Equivalent Strings |
C++, Python |
Easy |
892 |
Surface Area of 3D Shapes |
C++, Python |
Easy |
891 |
Sum of Subsequence Widths |
C++, Python |
Hard |
890 |
Find and Replace Pattern |
C++, Python |
Medium |
889 |
Construct Binary Tree from Preorder and Postorder Traversal |
C++, Python |
Medium |
888 |
Fair Candy Swap |
C++, Python |
Easy |
887 |
Super Egg Drop |
C++, Python |
Hard |
886 |
Possible Bipartition |
C++, Python |
Medium |
885 |
Spiral Matrix III |
C++, Python |
Medium |
884 |
Uncommon Words from Two Sentences |
C++, Python |
Easy |
883 |
Projection Area of 3D Shapes |
C++, Python |
Easy |
882 |
Reachable Nodes In Subdivided Graph |
C++, Python |
Hard |
881 |
Boats to Save People |
C++, Python |
Medium |
880 |
Decoded String at Index |
C++, Python |
Medium |
879 |
Profitable Schemes |
C++, Python |
Hard |
878 |
Nth Magical Number |
C++, Python |
Hard |
877 |
Stone Game |
C++, Python |
Medium |
876 |
Middle of the Linked List |
C++, Python |
Easy |
875 |
Koko Eating Bananas |
C++, Python |
Medium |
874 |
Walking Robot Simulation |
C++, Python |
Easy |
873 |
Length of Longest Fibonacci Subsequence |
C++, Python |
Medium |
872 |
Leaf-Similar Trees |
C++, Python |
Easy |
871 |
Minimum Number of Refueling Stops |
C++, Python |
Hard |
870 |
Advantage Shuffle |
C++, Python |
Medium |
869 |
Reordered Power of 2 |
C++, Python |
Medium |
868 |
Binary Gap |
C++, Python |
Easy |
867 |
Transpose Matrix |
C++, Python |
Easy |
866 |
Prime Palindrome |
C++, Python |
Medium |
865 |
Smallest Subtree with all the Deepest Nodes |
C++, Python |
Medium |
864 |
Shortest Path to Get All Keys |
C++, Python |
Hard |
863 |
All Nodes Distance K in Binary Tree |
C++, Python |
Medium |
862 |
Shortest Subarray with Sum at Least K |
C++, Python |
Hard |
861 |
Score After Flipping Matrix |
C++, Python |
Medium |
860 |
Lemonade Change |
C++, Python |
Easy |
859 |
Buddy Strings |
C++, Python |
Easy |
858 |
Mirror Reflection |
C++, Python |
Medium |
857 |
Minimum Cost to Hire K Workers |
C++, Python |
Hard |
856 |
Score of Parentheses |
C++, Python |
Medium |
855 |
Exam Room |
C++, Python |
Medium |
854 |
K-Similar Strings |
C++, Python |
Hard |
853 |
Car Fleet |
C++, Python |
Medium |
852 |
Peak Index in a Mountain Array |
C++, Python |
Easy |
851 |
Loud and Rich |
C++, Python |
Medium |
850 |
Rectangle Area II |
C++, Python |
Hard |
849 |
Maximize Distance to Closest Person |
C++, Python |
Medium |
848 |
Shifting Letters |
C++, Python |
Medium |
847 |
Shortest Path Visiting All Nodes |
C++, Python |
Hard |
846 |
Hand of Straights |
C++, Python |
Medium |
845 |
Longest Mountain in Array |
C++, Python |
Medium |
844 |
Backspace String Compare |
C++, Python |
Easy |
843 |
Guess the Word |
C++, Python |
Hard |
842 |
Split Array into Fibonacci Sequence |
C++, Python |
Medium |
841 |
Keys and Rooms |
C++, Python |
Medium |
840 |
Magic Squares In Grid |
C++, Python |
Medium |
839 |
Similar String Groups |
C++, Python |
Hard |
838 |
Push Dominoes |
C++, Python |
Medium |
837 |
New 21 Game |
C++, Python |
Medium |
836 |
Rectangle Overlap |
C++, Python |
Easy |
835 |
Image Overlap |
C++, Python |
Medium |
834 |
Sum of Distances in Tree |
C++, Python |
Hard |
833 |
Find And Replace in String |
C++, Python |
Medium |
832 |
Flipping an Image |
C++, Python |
Easy |
831 |
Masking Personal Information |
C++, Python |
Medium |
830 |
Positions of Large Groups |
C++, Python |
Easy |
829 |
Consecutive Numbers Sum |
C++, Python |
Hard |
828 |
Count Unique Characters of All Substrings of a Given String |
C++, Python |
Hard |
827 |
Making A Large Island |
C++, Python |
Hard |
826 |
Most Profit Assigning Work |
C++, Python |
Medium |
825 |
Friends Of Appropriate Ages |
C++, Python |
Medium |
824 |
Goat Latin |
C++, Python |
Easy |
823 |
Binary Trees With Factors |
C++, Python |
Medium |
822 |
Card Flipping Game |
C++, Python |
Medium |
821 |
Shortest Distance to a Character |
C++, Python |
Easy |
820 |
Short Encoding of Words |
C++, Python |
Medium |
819 |
Most Common Word |
C++, Python |
Easy |
818 |
Race Car |
C++, Python |
Hard |
817 |
Linked List Components |
C++, Python |
Medium |
816 |
Ambiguous Coordinates |
C++, Python |
Medium |
815 |
Bus Routes |
C++, Python |
Hard |
814 |
Binary Tree Pruning |
C++, Python |
Medium |
813 |
Largest Sum of Averages |
C++, Python |
Medium |
812 |
Largest Triangle Area |
C++, Python |
Easy |
811 |
Subdomain Visit Count |
C++, Python |
Easy |
810 |
Chalkboard Xor Game |
C++, Python |
Hard |
809 |
Expressive Words |
C++, Python |
Medium |
808 |
Soup Servings |
C++, Python |
Medium |
807 |
Max Increase to Keep City Skyline |
C++, Python |
Medium |
806 |
Number of Lines To Write String |
C++, Python |
Easy |
805 |
Split Array With Same Average |
C++, Python |
Hard |
804 |
Unique Morse Code Words |
C++, Python |
Easy |
803 |
Bricks Falling When Hit |
C++, Python |
Hard |
802 |
Find Eventual Safe States |
C++, Python |
Medium |
801 |
Minimum Swaps To Make Sequences Increasing |
C++, Python |
Medium |
799 |
Champagne Tower |
C++, Python |
Medium |
798 |
Smallest Rotation with Highest Score |
C++, Python |
Hard |
797 |
All Paths From Source to Target |
C++, Python |
Medium |
796 |
Rotate String |
C++, Python |
Easy |
795 |
Number of Subarrays with Bounded Maximum |
C++, Python |
Medium |
794 |
Valid Tic-Tac-Toe State |
C++, Python |
Medium |
793 |
Preimage Size of Factorial Zeroes Function |
C++, Python |
Hard |
792 |
Number of Matching Subsequences |
C++, Python |
Medium |
791 |
Custom Sort String |
C++, Python |
Medium |
790 |
Domino and Tromino Tiling |
C++, Python |
Medium |
789 |
Escape The Ghosts |
C++, Python |
Medium |
788 |
Rotated Digits |
C++, Python |
Easy |
787 |
Cheapest Flights Within K Stops |
C++, Python |
Medium |
786 |
K-th Smallest Prime Fraction |
C++, Python |
Hard |
785 |
Is Graph Bipartite |
C++, Python |
Medium |
784 |
Letter Case Permutation |
C++, Python |
Medium |
783 |
Minimum Distance Between BST Nodes |
C++, Python |
Easy |
782 |
Transform to Chessboard |
C++, Python |
Hard |
781 |
Rabbits in Forest |
C++, Python |
Medium |
780 |
Reaching Points |
C++, Python |
Hard |
778 |
Swim in Rising Water |
C++, Python |
Hard |
777 |
Swap Adjacent in LR String |
C++, Python |
Medium |
775 |
Global and Local Inversions |
C++, Python |
Medium |
773 |
Sliding Puzzle |
C++, Python |
Hard |
771 |
Jewels and Stones |
C++, Python |
Easy |
769 |
Max Chunks To Make Sorted |
C++, Python |
Medium |
768 |
Max Chunks To Make Sorted II |
C++, Python |
Hard |
767 |
Reorganize String |
C++, Python |
Medium |
766 |
Toeplitz Matrix |
C++, Python |
Easy |
765 |
Couples Holding Hands |
C++, Python |
Hard |
764 |
Largest Plus Sign |
C++, Python |
Medium |
763 |
Partition Labels |
C++, Python |
Medium |
762 |
Prime Number of Set Bits in Binary Representation |
C++, Python |
Easy |
761 |
Special Binary String |
C++, Python |
Hard |
757 |
Set Intersection Size At Least Two |
C++, Python |
Hard |
756 |
Pyramid Transition Matrix |
C++, Python |
Medium |
754 |
Reach a Number |
C++, Python |
Medium |
753 |
Cracking the Safe |
C++, Python |
Hard |
752 |
Open the Lock |
C++, Python |
Medium |
749 |
Contain Virus |
C++, Python |
Hard |
748 |
Shortest Completing Word |
C++, Python |
Easy |
747 |
Largest Number At Least Twice of Others |
C++, Python |
Easy |
746 |
Min Cost Climbing Stairs |
C++, Python |
Easy |
745 |
Prefix and Suffix Search |
C++, Python |
Hard |
744 |
Find Smallest Letter Greater Than Target |
C++, Python |
Easy |
742 |
Network Delay Time |
C++, Python |
Medium |
741 |
Cherry Pickup |
C++, Python |
Hard |
740 |
Delete and Earn |
C++, Python |
Medium |
739 |
Daily Temperatures |
C++, Python |
Medium |
738 |
Monotone Increasing Digits |
C++, Python |
Medium |
735 |
Asteroid Collision |
C++, Python |
Medium |
733 |
Flood Fill |
C++, Python |
Easy |
732 |
My Calendar III |
C++, Python |
Hard |
731 |
My Calendar II |
C++, Python |
Medium |
730 |
Count Different Palindromic Subsequences |
C++, Python |
Hard |
729 |
My Calendar I |
C++, Python |
Medium |
728 |
Self Dividing Numbers |
C++, Python |
Easy |
726 |
Number of Atoms |
C++, Python |
Hard |
725 |
Split Linked List in Parts |
C++, Python |
Medium |
724 |
Find Pivot Index |
C++, Python |
Easy |
722 |
Remove Comments |
C++, Python |
Medium |
721 |
Accounts Merge |
C++, Python |
Medium |
720 |
Longest Word in Dictionary |
C++, Python |
Easy |
719 |
Find K-th Smallest Pair Distance |
C++, Python |
Hard |
718 |
Maximum Length of Repeated Subarray |
C++, Python |
Medium |
717 |
1-bit and 2-bit Characters |
C++, Python |
Easy |
715 |
Range Module |
C++, Python |
Hard |
714 |
Best Time to Buy and Sell Stock with Transaction Fee |
C++, Python |
Medium |
713 |
Subarray Product Less Than K |
C++, Python |
Medium |
712 |
Minimum ASCII Delete Sum for Two Strings |
C++, Python |
Medium |
710 |
Random Pick with Blacklist |
C++, Python |
Hard |
709 |
To Lower Case |
C++, Python |
Easy |
707 |
Design Linked List |
C++, Python |
Medium |
706 |
Design HashMap |
C++, Python |
Easy |
705 |
Design HashSet |
C++, Python |
Easy |
704 |
Binary Search |
C++, Python |
Easy |
703 |
Kth Largest Element in a Stream |
C++, Python |
Easy |
701 |
Insert into a Binary Search Tree |
C++, Python |
Easy |
700 |
Search in a Binary Search Tree |
C++, Python |
Easy |
699 |
Falling Squares |
C++, Python |
Hard |
698 |
Partition to K Equal Sum Subsets |
C++, Python |
Medium |
697 |
Degree of an Array |
C++, Python |
Easy |
696 |
Count Binary Substrings |
C++, Python |
Easy |
695 |
Max Area of Island |
C++, Python |
Medium |
693 |
Binary Number with Alternating Bits |
C++, Python |
Easy |
692 |
Top K Frequent Words |
C++, Python |
Medium |
691 |
Stickers to Spell Word |
C++, Python |
Hard |
690 |
Employee Importance |
C++, Python |
Easy |
689 |
Maximum Sum of 3 Non-Overlapping Subarrays |
C++, Python |
Hard |
688 |
Knight Probability in Chessboard |
C++, Python |
Medium |
687 |
Longest Univalue Path |
C++, Python |
Medium |
686 |
Repeated String Match |
C++, Python |
Medium |
685 |
Redundant Connection II |
C++, Python |
Hard |
684 |
Redundant Connection |
C++, Python |
Medium |
682 |
Baseball Game |
C++, Python |
Easy |
680 |
Valid Palindrome II |
C++, Python |
Easy |
679 |
24 Game |
C++, Python |
Hard |
678 |
Valid Parenthesis String |
C++, Python |
Medium |
677 |
Map Sum Pairs |
C++, Python |
Medium |
676 |
Implement Magic Dictionary |
C++, Python |
Medium |
675 |
Cut Off Trees for Golf Event |
C++, Python |
Hard |
674 |
Longest Continuous Increasing Subsequence |
C++, Python |
Easy |
673 |
Number of Longest Increasing Subsequence |
C++, Python |
Medium |
672 |
Bulb Switcher II |
C++, Python |
Medium |
671 |
Second Minimum Node In a Binary Tree |
C++, Python |
Easy |
670 |
Maximum Swap |
C++, Python |
Medium |
669 |
Trim a Binary Search Tree |
C++, Python |
Medium |
668 |
Kth Smallest Number in Multiplication Table |
C++, Python |
Hard |
667 |
Beautiful Arrangement II |
C++, Python |
Medium |
665 |
Non-decreasing Array |
C++, Python |
Medium |
664 |
Strange Printer |
C++, Python |
Hard |
662 |
Maximum Width of Binary Tree |
C++, Python |
Medium |
661 |
Image Smoother |
C++, Python |
Easy |
659 |
Split Array into Consecutive Subsequences |
C++, Python |
Medium |
658 |
Find K Closest Elements |
C++, Python |
Medium |
657 |
Robot Return to Origin |
C++, Python |
Easy |
655 |
Print Binary Tree |
C++, Python |
Medium |
654 |
Maximum Binary Tree |
C++, Python |
Medium |
653 |
Two Sum IV - Input is a BST |
C++, Python |
Easy |
652 |
Find Duplicate Subtrees |
C++, Python |
Medium |
650 |
2 Keys Keyboard |
C++, Python |
Medium |
649 |
Dota2 Senate |
C++, Python |
Medium |
648 |
Replace Words |
C++, Python |
Medium |
647 |
Palindromic Substrings |
C++, Python |
Medium |
646 |
Maximum Length of Pair Chain |
C++, Python |
Medium |
645 |
Set Mismatch |
C++, Python |
Easy |
643 |
Maximum Average Subarray I |
C++, Python |
Easy |
641 |
Design Circular Deque |
C++, Python |
Medium |
640 |
Solve the Equation |
C++, Python |
Medium |
639 |
Decode Ways II |
C++, Python |
Hard |
638 |
Shopping Offers |
C++, Python |
Medium |
637 |
Average of Levels in Binary Tree |
C++, Python |
Easy |
636 |
Exclusive Time of Functions |
C++, Python |
Medium |
633 |
Sum of Square Numbers |
C++, Python |
Medium |
632 |
Smallest Range Covering Elements from K Lists |
C++, Python |
Hard |
630 |
Course Schedule III |
C++, Python |
Hard |
629 |
K Inverse Pairs Array |
C++, Python |
Hard |
628 |
Maximum Product of Three Numbers |
C++, Python |
Easy |
623 |
Add One Row to Tree |
C++, Python |
Medium |
622 |
Design Circular Queue |
C++, Python |
Medium |
621 |
Task Scheduler |
C++, Python |
Medium |
617 |
Merge Two Binary Trees |
C++, Python |
Easy |
611 |
Valid Triangle Number |
C++, Python |
Medium |
609 |
Find Duplicate File in System |
C++, Python |
Medium |
606 |
Construct String from Binary Tree |
C++, Python |
Easy |
605 |
Can Place Flowers |
C++, Python |
Easy |
600 |
Non-negative Integers without Consecutive Ones |
C++, Python |
Hard |
599 |
Minimum Index Sum of Two Lists |
C++, Python |
Easy |
598 |
Range Addition II |
C++, Python |
Easy |
594 |
Longest Harmonious Subsequence |
C++, Python |
Easy |
593 |
Valid Square |
C++, Python |
Medium |
592 |
Fraction Addition and Subtraction |
C++, Python |
Medium |
591 |
Tag Validator |
C++, Python |
Hard |
590 |
N-ary Tree Postorder Traversal |
C++, Python |
Easy |
589 |
N-ary Tree Preorder Traversal |
C++, Python |
Easy |
587 |
Erect the Fence |
C++, Python |
Hard |
583 |
Delete Operation for Two Strings |
C++, Python |
Medium |
581 |
Shortest Unsorted Continuous Subarray |
C++, Python |
Medium |
576 |
Out of Boundary Paths |
C++, Python |
Medium |
575 |
Distribute Candies |
C++, Python |
Easy |
572 |
Subtree of Another Tree |
C++, Python |
Easy |
567 |
Permutation in String |
C++, Python |
Medium |
566 |
Reshape the Matrix |
C++, Python |
Easy |
565 |
Array Nesting |
C++, Python |
Medium |
564 |
Find the Closest Palindrome |
C++, Python |
Hard |
563 |
Binary Tree Tilt |
C++, Python |
Easy |
561 |
Array Partition I |
C++, Python |
Easy |
560 |
Subarray Sum Equals K |
C++, Python |
Medium |
559 |
Maximum Depth of N-ary Tree |
C++, Python |
Easy |
558 |
Logical OR of Two Binary Grids Represented as Quad-Trees |
C++, Python |
Medium |
557 |
Reverse Words in a String III |
C++, Python |
Easy |
556 |
Next Greater Element III |
C++, Python |
Medium |
554 |
Brick Wall |
C++, Python |
Medium |
553 |
Optimal Division |
C++, Python |
Medium |
552 |
Student Attendance Record II |
C++, Python |
Hard |
551 |
Student Attendance Record I |
C++, Python |
Easy |
547 |
Number of Provinces |
C++, Python |
Medium |
546 |
Remove Boxes |
C++, Python |
Hard |
543 |
Diameter of Binary Tree |
C++, Python |
Easy |
542 |
01 Matrix |
C++, Python |
Medium |
541 |
Reverse String II |
C++, Python |
Easy |
540 |
Single Element in a Sorted Array |
C++, Python |
Medium |
539 |
Minimum Time Difference |
C++, Python |
Medium |
538 |
Convert BST to Greater Tree |
C++, Python |
Medium |
537 |
Complex Number Multiplication |
C++, Python |
Medium |
535 |
Encode and Decode TinyURL |
C++, Python |
Medium |
532 |
K-diff Pairs in an Array |
C++, Python |
Medium |
530 |
Minimum Absolute Difference in BST |
C++, Python |
Easy |
529 |
Minesweeper |
C++, Python |
Medium |
528 |
Random Pick with Weight |
C++, Python |
Medium |
526 |
Beautiful Arrangement |
C++, Python |
Medium |
525 |
Contiguous Array |
C++, Python |
Medium |
524 |
Longest Word in Dictionary through Deleting |
C++, Python |
Medium |
523 |
Continuous Subarray Sum |
C++, Python |
Medium |
522 |
Longest Uncommon Subsequence II |
C++, Python |
Medium |
521 |
Longest Uncommon Subsequence I |
C++, Python |
Easy |
520 |
Detect Capital |
C++, Python |
Easy |
519 |
Random Flip Matrix |
C++, Python |
Medium |
518 |
Coin Change 2 |
C++, Python |
Medium |
517 |
Super Washing Machines |
C++, Python |
Hard |
516 |
Longest Palindromic Subsequence |
C++, Python |
Medium |
515 |
Find Largest Value in Each Tree Row |
C++, Python |
Medium |
514 |
Freedom Trail |
C++, Python |
Hard |
513 |
Find Bottom Left Tree Value |
C++, Python |
Medium |
509 |
Fibonacci Number |
C++, Python |
Easy |
508 |
Most Frequent Subtree Sum |
C++, Python |
Medium |
507 |
Perfect Number |
C++, Python |
Easy |
506 |
Relative Ranks |
C++, Python |
Easy |
504 |
Base 7 |
C++, Python |
Easy |
503 |
Next Greater Element II |
C++, Python |
Medium |
502 |
IPO |
C++, Python |
Hard |
501 |
Find Mode in Binary Search Tree |
C++, Python |
Easy |
500 |
Keyboard Row |
C++, Python |
Easy |
498 |
Diagonal Traverse |
C++, Python |
Medium |
497 |
Random Point in Non-overlapping Rectangles |
C++, Python |
Medium |
496 |
Next Greater Element I |
C++, Python |
Easy |
495 |
Teemo Attacking |
C++, Python |
Medium |
494 |
Target Sum |
C++, Python |
Medium |
493 |
Reverse Pairs |
C++, Python |
Hard |
492 |
Construct the Rectangle |
C++, Python |
Easy |
491 |
Increasing Subsequences |
C++, Python |
Medium |
488 |
Zuma Game |
C++, Python |
Hard |
486 |
Predict the Winner |
C++, Python |
Medium |
485 |
Max Consecutive Ones |
C++, Python |
Easy |
483 |
Smallest Good Base |
C++, Python |
Hard |
482 |
License Key Formatting |
C++, Python |
Easy |
481 |
Magical String |
C++, Python |
Medium |
480 |
Sliding Window Median |
C++, Python |
Hard |
479 |
Largest Palindrome Product |
C++, Python |
Hard |
478 |
Generate Random Point in a Circle |
C++, Python |
Medium |
477 |
Total Hamming Distance |
C++, Python |
Medium |
476 |
Number Complement |
C++, Python |
Easy |
475 |
Heaters |
C++, Python |
Medium |
474 |
Ones and Zeroes |
C++, Python |
Medium |
473 |
Matchsticks to Square |
C++, Python |
Medium |
472 |
Concatenated Words |
C++, Python |
Hard |
470 |
Implement Rand10() Using Rand7() |
C++, Python |
Medium |
468 |
Validate IP Address |
C++, Python |
Medium |
467 |
Unique Substrings in Wraparound String |
C++, Python |
Medium |
466 |
Count The Repetitions |
C++, Python |
Hard |
464 |
Can I Win |
C++, Python |
Medium |
463 |
Island Perimeter |
C++, Python |
Easy |
462 |
Minimum Moves to Equal Array Elements II |
C++, Python |
Medium |
461 |
Hamming Distance |
C++, Python |
Easy |
460 |
LFU Cache |
C++, Python |
Hard |
459 |
Repeated Substring Pattern |
C++, Python |
Easy |
458 |
Poor Pigs |
C++, Python |
Hard |
457 |
Circular Array Loop |
C++, Python |
Medium |
456 |
132 Pattern |
C++, Python |
Medium |
455 |
Assign Cookies |
C++, Python |
Easy |
454 |
4Sum II |
C++, Python |
Medium |
453 |
Minimum Moves to Equal Array Elements |
C++, Python |
Easy |
452 |
Minimum Number of Arrows to Burst Balloons |
C++, Python |
Medium |
451 |
Sort Characters By Frequency |
C++, Python |
Medium |
450 |
Delete Node in a BST |
C++, Python |
Medium |
449 |
Serialize and Deserialize BST |
C++, Python |
Medium |
448 |
Find All Numbers Disappeared in an Array |
C++, Python |
Easy |
447 |
Number of Boomerangs |
C++, Python |
Medium |
446 |
Arithmetic Slices II - Subsequence |
C++, Python |
Hard |
445 |
Add Two Numbers II |
C++, Python |
Medium |
443 |
String Compression |
C++, Python |
Medium |
442 |
Find All Duplicates in an Array |
C++, Python |
Medium |
441 |
Arranging Coins |
C++, Python |
Easy |
440 |
K-th Smallest in Lexicographical Order |
C++, Python |
Hard |
438 |
Find All Anagrams in a String |
C++, Python |
Medium |
437 |
Path Sum III |
C++, Python |
Medium |
436 |
Find Right Interval |
C++, Python |
Medium |
435 |
Non-overlapping Intervals |
C++, Python |
Medium |
434 |
Number of Segments in a String |
C++, Python |
Easy |
433 |
Minimum Genetic Mutation |
C++, Python |
Medium |
432 |
All Oone Data Structure |
C++, Python |
Hard |
430 |
Flatten a Multilevel Doubly Linked List |
C++, Python |
Medium |
429 |
N-ary Tree Level Order Traversal |
C++, Python |
Medium |
427 |
Construct Quad Tree |
C++, Python |
Medium |
424 |
Longest Repeating Character Replacement |
C++, Python |
Medium |
423 |
Reconstruct Original Digits from English |
C++, Python |
Medium |
421 |
Maximum XOR of Two Numbers in an Array |
C++, Python |
Medium |
420 |
Strong Password Checker |
C++, Python |
Hard |
419 |
Battleships in a Board |
C++, Python |
Medium |
417 |
Pacific Atlantic Water Flow |
C++, Python |
Medium |
416 |
Partition Equal Subset Sum |
C++, Python |
Medium |
415 |
Add Strings |
C++, Python |
Easy |
414 |
Third Maximum Number |
C++, Python |
Easy |
413 |
Arithmetic Slices |
C++, Python |
Medium |
412 |
Fizz Buzz |
C++, Python |
Easy |
410 |
Split Array Largest Sum |
C++, Python |
Hard |
409 |
Longest Palindrome |
C++, Python |
Easy |
407 |
Trapping Rain Water II |
C++, Python |
Hard |
406 |
Queue Reconstruction by Height |
C++, Python |
Medium |
405 |
Convert a Number to Hexadecimal |
C++, Python |
Easy |
404 |
Sum of Left Leaves |
C++, Python |
Easy |
403 |
Frog Jump |
C++, Python |
Hard |
402 |
Remove K Digits |
C++, Python |
Medium |
401 |
Binary Watch |
C++, Python |
Easy |
400 |
Nth Digit |
C++, Python |
Medium |
399 |
Evaluate Division |
C++, Python |
Medium |
398 |
Random Pick Index |
C++, Python |
Medium |
397 |
Integer Replacement |
C++, Python |
Medium |
396 |
Rotate Function |
C++, Python |
Medium |
395 |
Longest Substring with At Least K Repeating Characters |
C++, Python |
Medium |
394 |
Decode String |
C++, Python |
Medium |
393 |
UTF-8 Validation |
C++, Python |
Medium |
392 |
Is Subsequence |
C++, Python |
Easy |
391 |
Perfect Rectangle |
C++, Python |
Hard |
390 |
Elimination Game |
C++, Python |
Medium |
389 |
Find the Difference |
C++, Python |
Easy |
388 |
Longest Absolute File Path |
C++, Python |
Medium |
387 |
First Unique Character in a String |
C++, Python |
Easy |
386 |
Lexicographical Numbers |
C++, Python |
Medium |
385 |
Mini Parser |
C++, Python |
Medium |
384 |
Shuffle an Array |
C++, Python |
Medium |
383 |
Ransom Note |
C++, Python |
Easy |
382 |
Linked List Random Node |
C++, Python |
Medium |
381 |
Insert Delete GetRandom O(1) - Duplicates allowed |
C++, Python |
Hard |
380 |
Insert Delete GetRandom O(1) |
C++, Python |
Medium |
378 |
Kth Smallest Element in a Sorted Matrix |
C++, Python |
Medium |
377 |
Combination Sum IV |
C++, Python |
Medium |
376 |
Wiggle Subsequence |
C++, Python |
Medium |
375 |
Guess Number Higher or Lower II |
C++, Python |
Medium |
374 |
Guess Number Higher or Lower |
C++, Python |
Easy |
373 |
Find K Pairs with Smallest Sums |
C++, Python |
Medium |
372 |
Super Pow |
C++, Python |
Medium |
371 |
Sum of Two Integers |
C++, Python |
Medium |
368 |
Largest Divisible Subset |
C++, Python |
Medium |
367 |
Valid Perfect Square |
C++, Python |
Easy |
365 |
Water and Jug Problem |
C++, Python |
Medium |
363 |
Max Sum of Rectangle No Larger Than K |
C++, Python |
Hard |
357 |
Count Numbers with Unique Digits |
C++, Python |
Medium |
355 |
Design Twitter |
C++, Python |
Medium |
354 |
Russian Doll Envelopes |
C++, Python |
Hard |
352 |
Data Stream as Disjoint Intervals |
C++, Python |
Hard |
350 |
Intersection of Two Arrays II |
C++, Python |
Easy |
349 |
Intersection of Two Arrays |
C++, Python |
Easy |
347 |
Top K Frequent Elements |
C++, Python |
Medium |
345 |
Reverse Vowels of a String |
C++, Python |
Easy |
344 |
Reverse String |
C++, Python |
Easy |
343 |
Integer Break |
C++, Python |
Medium |
342 |
Power of Four |
C++, Python |
Easy |
341 |
Flatten Nested List Iterator |
C++, Python |
Medium |
338 |
Counting Bits |
C++, Python |
Medium |
337 |
House Robber III |
C++, Python |
Medium |
336 |
Palindrome Pairs |
C++, Python |
Hard |
335 |
Self Crossing |
C++, Python |
Hard |
334 |
Increasing Triplet Subsequence |
C++, Python |
Medium |
332 |
Reconstruct Itinerary |
C++, Python |
Medium |
331 |
Verify Preorder Serialization of a Binary Tree |
C++, Python |
Medium |
330 |
Patching Array |
C++, Python |
Hard |
329 |
Longest Increasing Path in a Matrix |
C++, Python |
Hard |
328 |
Odd Even Linked List |
C++, Python |
Medium |
327 |
$\color{#ea4334}{Count of Range Sum} |
C++, Python |
Hard |
326 |
Power of Three |
C++, Python |
Easy |
324 |
Wiggle Sort II |
C++, Python |
Medium |
322 |
Coin Change |
C++, Python |
Medium |
321 |
Create Maximum Number |
C++, Python |
Hard |
319 |
Bulb Switcher |
C++, Python |
Medium |
318 |
Maximum Product of Word Lengths |
C++, Python |
Medium |
316 |
Remove Duplicate Letters |
C++, Python |
Medium |
315 |
Count of Smaller Numbers After Self |
C++, Python |
Hard |
313 |
Super Ugly Number |
C++, Python |
Medium |
312 |
Burst Balloons |
C++, Python |
Hard |
310 |
Minimum Height Trees |
C++, Python |
Medium |
309 |
Best Time to Buy and Sell Stock with Cooldown |
C++, Python |
Medium |
307 |
Range Sum Query - Mutable |
C++, Python |
Medium |
306 |
Additive Number |
C++, Python |
Medium |
304 |
Range Sum Query 2D - Immutable |
C++, Python |
Medium |
303 |
Range Sum Query - Immutable |
C++, Python |
Easy |
301 |
Remove Invalid Parentheses |
C++, Python |
Hard |
300 |
Longest Increasing Subsequence |
C++, Python |
Medium |
299 |
Bulls and Cows |
C++, Python |
Medium |
297 |
Serialize and Deserialize Binary Tree |
C++, Python |
Hard |
295 |
Find Median from Data Stream |
C++, Python |
Hard |
292 |
Nim Game |
C++, Python |
Easy |
290 |
Word Pattern |
C++, Python |
Easy |
289 |
Game of Life |
C++, Python |
Medium |
287 |
Find the Duplicate Number |
C++, Python |
Medium |
284 |
Peeking Iterator |
C++, Python |
Medium |
283 |
Move Zeroes |
C++, Python |
Easy |
282 |
Expression Add Operators |
C++, Python |
Hard |
279 |
Perfect Squares |
C++, Python |
Medium |
278 |
First Bad Version |
C++, Python |
Easy |
275 |
H-Index II |
C++, Python |
Medium |
274 |
H-Index |
C++, Python |
Medium |
273 |
Integer to English Words |
C++, Python |
Hard |
268 |
Missing Number |
C++, Python |
Easy |
264 |
Ugly Number II |
C++, Python |
Medium |
263 |
Ugly Number |
C++, Python |
Easy |
260 |
Single Number III |
C++, Python |
Medium |
258 |
Add Digits |
C++, Python |
Easy |
257 |
Binary Tree Paths |
C++, Python |
Easy |
253 |
Meeting Rooms II |
C++, Python |
Medium |
242 |
Valid Anagram |
C++, Python |
Easy |
241 |
Different Ways to Add Parentheses |
C++, Python |
Medium |
240 |
Search a 2D Matrix II |
C++, Python |
Medium |
239 |
Sliding Window Maximum |
C++, Python |
Hard |
238 |
Product of Array Except Self |
C++, Python |
Medium |
237 |
Delete Node in a Linked List |
C++, Python |
Easy |
236 |
Lowest Common Ancestor of a Binary Tree |
C++, Python |
Medium |
235 |
Lowest Common Ancestor of a Binary Search Tree |
C++, Python |
Easy |
234 |
Palindrome Linked List |
C++, Python |
Easy |
233 |
Number of Digit One |
C++, Python |
Hard |
232 |
Implement Queue using Stacks |
C++, Python |
Easy |
231 |
Power of Two |
C++, Python |
Easy |
230 |
Kth Smallest Element in a BST |
C++, Python |
Medium |
229 |
Majority Element II |
C++, Python |
Medium |
228 |
Summary Ranges |
C++, Python |
Easy |
227 |
Basic Calculator II |
C++, Python |
Medium |
226 |
Invert Binary Tree |
C++, Python |
Easy |
225 |
Implement Stack using Queues |
C++, Python |
Medium |
224 |
Basic Calculator |
C++, Python |
Hard |
223 |
Rectangle Area |
C++, Python |
Medium |
222 |
Count Complete Tree Nodes |
C++, Python |
Medium |
221 |
Maximal Square |
C++, Python |
Medium |
220 |
Contains Duplicate III |
C++, Python |
Medium |
219 |
Contains Duplicate II |
C++, Python |
Easy |
218 |
The Skyline Problem |
C++, Python |
Hard |
217 |
Contains Duplicate |
C++, Python |
Easy |
216 |
Combination Sum III |
C++, Python |
Medium |
215 |
Kth Largest Element in an Array |
C++, Python |
Medium |
214 |
Shortest Palindrome |
C++, Python |
Hard |
213 |
House Robber II |
C++, Python |
Medium |
212 |
Word Search II |
C++, Python |
Hard |
211 |
Design Add and Search Words Data Structure |
C++, Python |
Medium |
210 |
Course Schedule II |
C++, Python |
Medium |
209 |
Minimum Size Subarray Sum |
C++, Python |
Medium |
208 |
Implement Trie (Prefix Tree) |
C++, Python |
Medium |
207 |
Course Schedule |
C++, Python |
Medium |
206 |
Reverse Linked List |
C++, Python |
Easy |
205 |
Isomorphic Strings |
C++, Python |
Easy |
204 |
Count Primes |
C++, Python |
Easy |
203 |
Remove Linked List Elements |
C++, Python |
Easy |
202 |
Happy Number |
C++, Python |
Easy |
201 |
Bitwise AND of Numbers Range |
C++, Python |
Medium |
200 |
Number of Islands |
C++, Python |
Medium |
199 |
Binary Tree Right Side View |
C++, Python |
Medium |
198 |
House Robber |
C++, Python |
Medium |
191 |
Number of 1 Bits |
C++, Python |
Easy |
190 |
Reverse Bits |
C++, Python |
Easy |
189 |
Rotate Array |
C++, Python |
Medium |
188 |
Best Time to Buy and Sell Stock IV |
C++, Python |
Hard |
180 |
Repeated DNA Sequences |
C++, Python |
Medium |
179 |
Largest Number |
C++, Python |
Medium |
174 |
Dungeon Game |
C++, Python |
Hard |
173 |
Binary Search Tree Iterator |
C++, Python |
Medium |
172 |
Factorial Trailing Zeroes |
C++, Python |
Easy |
171 |
Excel Sheet Column Number |
C++, Python |
Easy |
169 |
Majority Element |
C++, Python |
Easy |
168 |
Excel Sheet Column Title |
C++, Python |
Easy |
167 |
Two Sum II - Input array is sorted |
C++, Python |
Easy |
166 |
Fraction to Recurring Decimal |
C++, Python |
Medium |
165 |
Compare Version Numbers |
C++, Python |
Medium |
164 |
Maximum Gap |
C++, Python |
Hard |
162 |
Find Peak Element |
C++, Python |
Medium |
160 |
Intersection of Two Linked Lists |
C++, Python |
Easy |
155 |
Min Stack |
C++, Python |
Easy |
154 |
Find Minimum in Rotated Sorted Array II |
C++, Python |
Hard |
153 |
Find Minimum in Rotated Sorted Array |
C++, Python |
Medium |
152 |
Maximum Product Subarray |
C++, Python |
Medium |
151 |
Reverse Words in a String |
C++, Python |
Medium |
150 |
Evaluate Reverse Polish Notation |
C++, Python |
Medium |
149 |
Max Points on a Line |
C++, Python |
Hard |
148 |
Sort List |
C++, Python |
Medium |
147 |
Insertion Sort List |
C++, Python |
Medium |
146 |
LRU Cache |
C++, Python |
Medium |
145 |
Binary Tree Postorder Traversal |
C++, Python |
Medium |
144 |
Binary Tree Preorder Traversal |
C++, Python |
Medium |
143 |
Reorder List |
C++, Python |
Medium |
142 |
Linked List Cycle II |
C++, Python |
Medium |
141 |
Linked List Cycle |
C++, Python |
Easy |
140 |
Word Break II |
C++, Python |
Hard |
139 |
Word Break |
C++, Python |
Medium |
138 |
Copy List with Random Pointer |
C++, Python |
Medium |
137 |
Single Number II |
C++, Python |
Medium |
136 |
Single Number |
C++, Python |
Easy |
135 |
Candy |
C++, Python |
Hard |
134 |
Gas Station |
C++, Python |
Medium |
133 |
Clone Graph |
C++, Python |
Medium |
132 |
Palindrome Partitioning II |
C++, Python |
Hard |
131 |
Palindrome Partitioning |
C++, Python |
Medium |
130 |
Surrounded Regions |
C++, Python |
Medium |
129 |
Sum Root to Leaf Numbers |
C++, Python |
Medium |
128 |
Longest Consecutive Sequence |
C++, Python |
Hard |
127 |
Word Ladder |
C++, Python |
Hard |
126 |
Word Ladder II |
C++, Python |
Hard |
125 |
Valid Palindrome |
C++, Python |
Easy |
124 |
Binary Tree Maximum Path Sum |
C++, Python |
Hard |
123 |
Best Time to Buy and Sell Stock III |
C++, Python |
Hard |
122 |
Best Time to Buy and Sell Stock II |
C++, Python |
Easy |
121 |
Best Time to Buy and Sell Stock |
C++, Python |
Easy |
120 |
Triangle |
C++, Python |
Medium |
119 |
Pascal's Triangle II |
C++, Python |
Easy |
118 |
Pascal's Triangle |
C++, Python |
Easy |
117 |
Populating Next Right Pointers in Each Node II |
C++, Python |
Medium |
116 |
Populating Next Right Pointers in Each Node |
C++, Python |
Medium |
115 |
Distinct Subsequences |
C++, Python |
Medium |
114 |
Flatten Binary Tree to Linked List |
C++, Python |
Medium |
113 |
Path Sum II |
C++, Python |
Medium |
112 |
Path Sum |
C++, Python |
Easy |
111 |
Minimum Depth of Binary Tree |
C++, Python |
Easy |
110 |
Balanced Binary Tree |
C++, Python |
Easy |
109 |
Convert Sorted List to Binary Search Tree |
C++, Python |
Medium |
108 |
Convert Sorted Array to Binary Search Tree |
C++, Python |
Easy |
107 |
Binary Tree Level Order Traversal II |
C++, Python |
Easy |
106 |
Construct Binary Tree from Inorder and Postorder Traversal |
C++, Python |
Medium |
105 |
Construct Binary Tree from Preorder and Inorder Traversal |
C++, Python |
Medium |
104 |
Maximum Depth of Binary Tree |
C++, Python |
Easy |
103 |
Binary Tree Zigzag Level Order Traversal |
C++, Python |
Medium |
102 |
Binary Tree Level Order Traversal |
C++, Python |
Medium |
101 |
Symmetric Tree |
C++, Python |
Easy |
100 |
Same Tree |
C++, Python |
Easy |
99 |
Recover Binary Search Tree |
C++, Python |
Hard |
98 |
Validate Binary Search Tree |
C++, Python |
Medium |
97 |
Interleaving String |
C++, Python |
Hard |
96 |
Unique Binary Search Trees |
C++, Python |
Medium |
95 |
Unique Binary Search Trees II |
C++, Python |
Medium |
94 |
Binary Tree Inorder Traversal |
C++, Python |
Medium |
93 |
Restore IP Addresses |
C++, Python |
Medium |
92 |
Reverse Linked List II |
C++, Python |
Medium |
91 |
Decode Ways |
C++, Python |
Medium |
90 |
Subsets II |
C++, Python |
Medium |
89 |
Gray Code |
C++, Python |
Medium |
88 |
Merge Sorted Array |
C++, Python |
Easy |
87 |
Scramble String |
C++, Python |
Hard |
86 |
Partition List |
C++, Python |
Medium |
85 |
Maximal Rectangle |
C++, Python |
Hard |
84 |
Largest Rectangle in Histogram |
C++, Python |
Hard |
83 |
Remove Duplicates from Sorted List |
C++, Python |
Easy |
82 |
Remove Duplicates from Sorted List II |
C++, Python |
Medium |
81 |
Search in Rotated Sorted Array II |
C++, Python |
Medium |
80 |
Remove Duplicates from Sorted Array II |
C++, Python |
Medium |
79 |
Word Search |
C++, Python |
Medium |
78 |
Subsets |
C++, Python |
Medium |
77 |
Combinations |
C++, Python |
Medium |
76 |
Minimum Window Substring |
C++, Python |
Hard |
75 |
Sort Colors |
C++, Python |
Medium |
74 |
Search a 2D Matrix |
C++, Python |
Medium |
73 |
Set Matrix Zeroes |
C++, Python |
Medium |
72 |
Edit Distance |
C++, Python |
Hard |
71 |
Simplify Path |
C++, Python |
Medium |
70 |
Climbing Stairs |
C++, Python |
Medium |
69 |
Sqrt(x) |
C++, Python |
Easy |
68 |
Text Justification |
C++, Python |
Hard |
67 |
Add Binary |
C++, Python |
Easy |
66 |
Plus One |
C++, Python |
Easy |
65 |
Valid Number |
C++, Python |
Hard |
64 |
Minimum Path Sum |
C++, Python |
Medium |
63 |
Unique Paths II |
C++, Python |
Medium |
62 |
Unique Paths |
C++, Python |
Medium |
61 |
Rotate List |
C++, Python |
Medium |
60 |
Permutation Sequence |
C++, Python |
Hard |
59 |
Spiral Matrix II |
C++, Python |
Medium |
58 |
Length of Last Word |
C++, Python |
Easy |
57 |
Insert Interval |
C++, Python |
Medium |
56 |
Merge Intervals |
C++, Python |
Medium |
55 |
Jump Game |
C++, Python |
Medium |
54 |
Spiral Matrix |
C++, Python |
Medium |
53 |
Maximum Subarray |
C++, Python |
Easy |
52 |
N-Queens II |
C++, Python |
Hard |
51 |
N-Queens |
C++, Python |
Hard |
50 |
Powx, n |
C++, Python |
Medium |
49 |
Group Anagrams |
C++, Python |
Medium |
48 |
Rotate Image |
C++, Python |
Medium |
47 |
Permutations II |
C++, Python |
Medium |
46 |
Permutations |
C++, Python |
Medium |
45 |
Jump Game II |
C++, Python |
Hard |
44 |
Wildcard Matching |
C++, Python |
Hard |
43 |
Multiply Strings |
C++, Python |
Medium |
42 |
Trapping Rain Water |
C++, Python |
Hard |
41 |
First Missing Positive |
C++, Python |
Hard |
40 |
Combination Sum II |
C++, Python |
Medium |
39 |
Combination Sum |
C++, Python |
Medium |
38 |
Count and Say |
C++, Python |
Easy |
37 |
Sudoku Solver |
C++, Python |
Hard |
36 |
Valid Sudoku |
C++, Python |
Medium |
35 |
Search Insert Position |
C++, Python |
Easy |
34 |
Find First and Last Position of Element in Sorted Array |
C++, Python |
Medium |
33 |
Search in Rotated Sorted Array |
C++, Python |
Medium |
32 |
Longest Valid Parentheses |
C++, Python |
Hard |
31 |
Next Permutation |
C++, Python |
Medium |
30 |
Substring with Concatenation of All Words |
C++, Python |
Hard |
29 |
Divide Two Integers |
C++, Python |
Medium |
28 |
Implement strStr |
C++, Python |
Easy |
27 |
Remove Element |
C++, Python |
Easy |
26 |
Remove Duplicates from Sorted Array |
C++, Python |
Easy |
25 |
Reverse Nodes in k-Group |
C++, Python |
Hard |
24 |
Swap Nodes in Pairs |
C++, Python |
Medium |
23 |
Merge k Sorted Lists |
C++, Python |
Hard |
22 |
Generate Parentheses |
C++, Python |
Medium |
21 |
Merge Two Sorted Lists |
C++, Python |
Easy |
20 |
Valid Parentheses |
C++, Python |
Easy |
19 |
Remove Nth Node From End of List |
C++, Python |
Medium |
18 |
4 Sum |
C++, Python |
Medium |
17 |
Letter Combinations of a Phone Number |
C++, Python |
Medium |
16 |
3Sum Closest |
C++, Python |
Medium |
15 |
3 Sum |
C++, Python |
Medium |
14 |
Longest Common Prefix |
C++, Python |
Easy |
13 |
Roman to Integer |
C++, Python |
Easy |
12 |
Integer to Roman |
C++, Python |
Medium |
11 |
Container With Most Water |
C++, Python |
Medium |
10 |
Regular Expression Matching |
C++, Python |
Hard |