Skip to content

Latest commit

 

History

History

list-20

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
Question Free? Status Difficulty Topics Similar Questions
1901. Find a Peak Element II  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Binary Search  🔗
Matrix  🔗
162. Find Peak Element  🔗  📝
1902. Depth of BST Given Insertion Order  🔗  📝
💰 ⭐️⭐️
Tree  🔗
Binary Search Tree  🔗
Binary Tree  🔗
Ordered Set  🔗
1903. Largest Odd Number in String  🔗  📝
🆓 ⭐️
Math  🔗
String  🔗
Greedy  🔗
2264. Largest 3-Same-Digit Number in String  🔗  📝
1904. The Number of Full Rounds You Have Played  🔗  📝
🆓 ⭐️⭐️
Math  🔗
String  🔗
1905. Count Sub Islands  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Union Find  🔗
Matrix  🔗
200. Number of Islands  🔗  📝
694. Number of Distinct Islands  🔗  📝
1992. Find All Groups of Farmland  🔗  📝
1906. Minimum Absolute Difference Queries  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
1907. Count Salary Categories  🔗  📝
💰 ⭐️⭐️
Database  🔗
1435. Create a Session Bar Chart  🔗  📝
1908. Game of Nim  🔗  📝
💰 ⭐️⭐️
Array  🔗
Math  🔗
Dynamic Programming  🔗
Bit Manipulation  🔗
Brainteaser  🔗
Game Theory  🔗
2005. Subtree Removal Game with Fibonacci Tree  🔗  📝
1909. Remove One Element to Make the Array Strictly Increasing  🔗  📝
🆓 ⭐️
Array  🔗
2289. Steps to Make Array Non-decreasing  🔗  📝
1910. Remove All Occurrences of a Substring  🔗  📝
🆓 ⭐️⭐️
String  🔗
1911. Maximum Alternating Subsequence Sum  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
2036. Maximum Alternating Subarray Sum  🔗  📝
1912. Design Movie Rental System  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Hash Table  🔗
Design  🔗
Heap (Priority Queue)  🔗
Ordered Set  🔗
1913. Maximum Product Difference Between Two Pairs  🔗  📝
🆓 ⭐️
Array  🔗
Sorting  🔗
1914. Cyclically Rotating a Grid  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Matrix  🔗
Simulation  🔗
1915. Number of Wonderful Substrings  🔗  📝
🆓 ⭐️⭐️
Hash Table  🔗
String  🔗
Bit Manipulation  🔗
Prefix Sum  🔗
1916. Count Ways to Build Rooms in an Ant Colony  🔗  📝
🆓 ⭐️⭐️⭐️
Math  🔗
Dynamic Programming  🔗
Tree  🔗
Graph  🔗
Topological Sort  🔗
Combinatorics  🔗
1917. Leetcodify Friends Recommendations  🔗  📝
💰 ⭐️⭐️⭐️
Database  🔗
1919. Leetcodify Similar Friends  🔗  📝
1949. Strong Friendship  🔗  📝
1918. Kth Smallest Subarray Sum  🔗  📝
💰 ⭐️⭐️
Array  🔗
Binary Search  🔗
Sliding Window  🔗
1919. Leetcodify Similar Friends  🔗  📝
💰 ⭐️⭐️⭐️
Database  🔗
1917. Leetcodify Friends Recommendations  🔗  📝
1920. Build Array from Permutation  🔗  📝
🆓 ⭐️
Array  🔗
Simulation  🔗
1921. Eliminate Maximum Number of Monsters  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Greedy  🔗
Sorting  🔗
2214. Minimum Health to Beat Game  🔗  📝
1922. Count Good Numbers  🔗  📝
🆓 ⭐️⭐️
Math  🔗
Recursion  🔗
1923. Longest Common Subpath  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Binary Search  🔗
Rolling Hash  🔗
Suffix Array  🔗
Hash Function  🔗
332. Reconstruct Itinerary  🔗  📝
718. Maximum Length of Repeated Subarray  🔗  📝
1924. Erect the Fence II  🔗  📝
💰 ⭐️⭐️⭐️
Array  🔗
Math  🔗
Geometry  🔗
587. Erect the Fence  🔗  📝
1925. Count Square Sum Triples  🔗  📝
🆓 ⭐️
Math  🔗
Enumeration  🔗
1926. Nearest Exit from Entrance in Maze  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Breadth-First Search  🔗
Matrix  🔗
1927. Sum Game  🔗  📝
🆓 ⭐️⭐️
Math  🔗
Greedy  🔗
Game Theory  🔗
1928. Minimum Cost to Reach Destination in Time  🔗  📝
🆓 ⭐️⭐️⭐️
Dynamic Programming  🔗
Graph  🔗
2065. Maximum Path Quality of a Graph  🔗  📝
2093. Minimum Cost to Reach City With Discounts  🔗  📝
2247. Maximum Cost of Trip With K Highways  🔗  📝
1929. Concatenation of Array  🔗  📝
🆓 ⭐️
Array  🔗
1930. Unique Length-3 Palindromic Subsequences  🔗  📝
🆓 ⭐️⭐️
Hash Table  🔗
String  🔗
Prefix Sum  🔗
1931. Painting a Grid With Three Different Colors  🔗  📝
🆓 ⭐️⭐️⭐️
Dynamic Programming  🔗
1411. Number of Ways to Paint N × 3 Grid  🔗  📝
1932. Merge BSTs to Create Single BST  🔗  📝
🆓 ⭐️⭐️⭐️
Hash Table  🔗
Binary Search  🔗
Tree  🔗
Depth-First Search  🔗
Binary Tree  🔗
1933. Check if String Is Decomposable Into Value-Equal Substrings  🔗  📝
💰 ⭐️
String  🔗
1934. Confirmation Rate  🔗  📝
💰 ⭐️⭐️
Database  🔗
1935. Maximum Number of Words You Can Type  🔗  📝
🆓 ⭐️
Hash Table  🔗
String  🔗
1936. Add Minimum Number of Rungs  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Greedy  🔗
1891. Cutting Ribbons  🔗  📝
1937. Maximum Number of Points with Cost  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
64. Minimum Path Sum  🔗  📝
1981. Minimize the Difference Between Target and Chosen Elements  🔗  📝
1938. Maximum Genetic Difference Query  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Bit Manipulation  🔗
Trie  🔗
1707. Maximum XOR With an Element From Array  🔗  📝
1939. Users That Actively Request Confirmation Messages  🔗  📝
💰 ⭐️
Database  🔗
1940. Longest Common Subsequence Between Sorted Arrays  🔗  📝
💰 ⭐️⭐️
Array  🔗
Hash Table  🔗
Counting  🔗
21. Merge Two Sorted Lists  🔗  📝
1941. Check if All Characters Have Equal Number of Occurrences  🔗  📝
🆓 ⭐️
Hash Table  🔗
String  🔗
Counting  🔗
2103. Rings and Rods  🔗  📝
1942. The Number of the Smallest Unoccupied Chair  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Heap (Priority Queue)  🔗
Ordered Set  🔗
1943. Describe the Painting  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Prefix Sum  🔗
2015. Average Height of Buildings in Each Segment  🔗  📝
2158. Amount of New Area Painted Each Day  🔗  📝
1944. Number of Visible People in a Queue  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Stack  🔗
Monotonic Stack  🔗
1762. Buildings With an Ocean View  🔗  📝
2104. Sum of Subarray Ranges  🔗  📝
2281. Sum of Total Strength of Wizards  🔗  📝
2282. Number of People That Can Be Seen in a Grid  🔗  📝
1945. Sum of Digits of String After Convert  🔗  📝
🆓 ⭐️
String  🔗
Simulation  🔗
202. Happy Number  🔗  📝
258. Add Digits  🔗  📝
2180. Count Integers With Even Digit Sum  🔗  📝
1946. Largest Number After Mutating Substring  🔗  📝
🆓 ⭐️⭐️
Array  🔗
String  🔗
Greedy  🔗
1947. Maximum Compatibility Score Sum  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
Backtracking  🔗
Bit Manipulation  🔗
Bitmask  🔗
1948. Delete Duplicate Folders in System  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Hash Table  🔗
String  🔗
Trie  🔗
Hash Function  🔗
609. Find Duplicate File in System  🔗  📝
652. Find Duplicate Subtrees  🔗  📝
1949. Strong Friendship  🔗  📝
💰 ⭐️⭐️
Database  🔗
1264. Page Recommendations  🔗  📝
1892. Page Recommendations II  🔗  📝
1917. Leetcodify Friends Recommendations  🔗  📝
1950. Maximum of Minimum Values in All Subarrays  🔗  📝
💰 ⭐️⭐️
Array  🔗
Stack  🔗
Monotonic Stack  🔗
1951. All the Pairs With the Maximum Number of Common Followers  🔗  📝
💰 ⭐️⭐️
Database  🔗
1952. Three Divisors  🔗  📝
🆓 ⭐️
Math  🔗
1979. Find Greatest Common Divisor of Array  🔗  📝
1953. Maximum Number of Weeks for Which You Can Work  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Greedy  🔗
621. Task Scheduler  🔗  📝
1954. Minimum Garden Perimeter to Collect Enough Apples  🔗  📝
🆓 ⭐️⭐️
Math  🔗
Binary Search  🔗
1955. Count Number of Special Subsequences  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Dynamic Programming  🔗
1956. Minimum Time For K Virus Variants to Spread  🔗  📝
💰 ⭐️⭐️⭐️
Array  🔗
Math  🔗
Binary Search  🔗
Geometry  🔗
Enumeration  🔗
1957. Delete Characters to Make Fancy String  🔗  📝
🆓 ⭐️
String  🔗
1958. Check if Move is Legal  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Matrix  🔗
Enumeration  🔗
1959. Minimum Total Space Wasted With K Resizing Operations  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
1960. Maximum Product of the Length of Two Palindromic Substrings  🔗  📝
🆓 ⭐️⭐️⭐️
String  🔗
Rolling Hash  🔗
Hash Function  🔗
2002. Maximum Product of the Length of Two Palindromic Subsequences  🔗  📝
1961. Check If String Is a Prefix of Array  🔗  📝
🆓 ⭐️
Array  🔗
String  🔗
2255. Count Prefixes of a Given String  🔗  📝
1962. Remove Stones to Minimize the Total  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Heap (Priority Queue)  🔗
2208. Minimum Operations to Halve Array Sum  🔗  📝
1963. Minimum Number of Swaps to Make the String Balanced  🔗  📝
🆓 ⭐️⭐️
Two Pointers  🔗
String  🔗
Stack  🔗
Greedy  🔗
301. Remove Invalid Parentheses  🔗  📝
921. Minimum Add to Make Parentheses Valid  🔗  📝
1249. Minimum Remove to Make Valid Parentheses  🔗  📝
1541. Minimum Insertions to Balance a Parentheses String  🔗  📝
1964. Find the Longest Valid Obstacle Course at Each Position  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Binary Search  🔗
Binary Indexed Tree  🔗
300. Longest Increasing Subsequence  🔗  📝
1965. Employees With Missing Information  🔗  📝
🆓 ⭐️
Database  🔗
1966. Binary Searchable Numbers in an Unsorted Array  🔗  📝
💰 ⭐️⭐️
Array  🔗
Binary Search  🔗
1967. Number of Strings That Appear as Substrings in Word  🔗  📝
🆓 ⭐️
String  🔗
1968. Array With Elements Not Equal to Average of Neighbors  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Greedy  🔗
Sorting  🔗
280. Wiggle Sort  🔗  📝
324. Wiggle Sort II  🔗  📝
1969. Minimum Non-Zero Product of the Array Elements  🔗  📝
🆓 ⭐️⭐️
Math  🔗
Greedy  🔗
Recursion  🔗
1970. Last Day Where You Can Still Cross  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Binary Search  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Union Find  🔗
Matrix  🔗
803. Bricks Falling When Hit  🔗  📝
2258. Escape the Spreading Fire  🔗  📝
1971. Find if Path Exists in Graph  🔗  📝
🆓 👀 ⭐️
Depth-First Search  🔗
Breadth-First Search  🔗
Graph  🔗
2077. Paths in Maze That Lead to Same Room  🔗  📝
2097. Valid Arrangement of Pairs  🔗  📝
1972. First and Last Call On the Same Day  🔗  📝
💰 ⭐️⭐️⭐️
Database  🔗
1973. Count Nodes Equal to Sum of Descendants  🔗  📝
💰 ⭐️⭐️
Tree  🔗
Depth-First Search  🔗
Binary Search Tree  🔗
Binary Tree  🔗
508. Most Frequent Subtree Sum  🔗  📝
1120. Maximum Average Subtree  🔗  📝
2265. Count Nodes Equal to Average of Subtree  🔗  📝
1974. Minimum Time to Type Word Using Special Typewriter  🔗  📝
🆓 ⭐️
String  🔗
Greedy  🔗
1320. Minimum Distance to Type a Word Using Two Fingers  🔗  📝
1975. Maximum Matrix Sum  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Greedy  🔗
Matrix  🔗
1976. Number of Ways to Arrive at Destination  🔗  📝
🆓 ⭐️⭐️
Dynamic Programming  🔗
Graph  🔗
Topological Sort  🔗
Shortest Path  🔗
797. All Paths From Source to Target  🔗  📝
1514. Path with Maximum Probability  🔗  📝
2045. Second Minimum Time to Reach Destination  🔗  📝
1977. Number of Ways to Separate Numbers  🔗  📝
🆓 ⭐️⭐️⭐️
String  🔗
Dynamic Programming  🔗
Suffix Array  🔗
91. Decode Ways  🔗  📝
639. Decode Ways II  🔗  📝
1416. Restore The Array  🔗  📝
1978. Employees Whose Manager Left the Company  🔗  📝
💰 ⭐️
Database  🔗
1979. Find Greatest Common Divisor of Array  🔗  📝
🆓 ⭐️
Array  🔗
Math  🔗
Number Theory  🔗
1071. Greatest Common Divisor of Strings  🔗  📝
1819. Number of Different Subsequences GCDs  🔗  📝
1952. Three Divisors  🔗  📝
1980. Find Unique Binary String  🔗  📝
🆓 ⭐️⭐️
Array  🔗
String  🔗
Backtracking  🔗
268. Missing Number  🔗  📝
448. Find All Numbers Disappeared in an Array  🔗  📝
710. Random Pick with Blacklist  🔗  📝
1981. Minimize the Difference Between Target and Chosen Elements  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
Matrix  🔗
416. Partition Equal Subset Sum  🔗  📝
1755. Closest Subsequence Sum  🔗  📝
1937. Maximum Number of Points with Cost  🔗  📝
1982. Find Array Given Subset Sums  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Divide and Conquer  🔗
78. Subsets  🔗  📝
90. Subsets II  🔗  📝
2122. Recover the Original Array  🔗  📝
1983. Widest Pair of Indices With Equal Range Sum  🔗  📝
💰 ⭐️⭐️
Array  🔗
Hash Table  🔗
Prefix Sum  🔗
1984. Minimum Difference Between Highest and Lowest of K Scores  🔗  📝
🆓 ⭐️
Array  🔗
Sliding Window  🔗
Sorting  🔗
561. Array Partition  🔗  📝
1985. Find the Kth Largest Integer in the Array  🔗  📝
🆓 ⭐️⭐️
Array  🔗
String  🔗
Divide and Conquer  🔗
Sorting  🔗
Heap (Priority Queue)  🔗
Quickselect  🔗
215. Kth Largest Element in an Array  🔗  📝
1986. Minimum Number of Work Sessions to Finish the Tasks  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
Backtracking  🔗
Bit Manipulation  🔗
Bitmask  🔗
1125. Smallest Sufficient Team  🔗  📝
1723. Find Minimum Time to Finish All Jobs  🔗  📝
2305. Fair Distribution of Cookies  🔗  📝
2323. Find Minimum Time to Finish All Jobs II  🔗  📝
1987. Number of Unique Good Subsequences  🔗  📝
🆓 ⭐️⭐️⭐️
String  🔗
Dynamic Programming  🔗
115. Distinct Subsequences  🔗  📝
940. Distinct Subsequences II  🔗  📝
1988. Find Cutoff Score for Each School  🔗  📝
💰 ⭐️⭐️
Database  🔗
1989. Maximum Number of People That Can Be Caught in Tag  🔗  📝
💰 ⭐️⭐️
Array  🔗
Greedy  🔗
2086. Minimum Number of Buckets Required to Collect Rainwater from Houses  🔗  📝
1990. Count the Number of Experiments  🔗  📝
💰 ⭐️⭐️
Database  🔗
1991. Find the Middle Index in Array  🔗  📝
🆓 ⭐️
Array  🔗
Prefix Sum  🔗
724. Find Pivot Index  🔗  📝
1013. Partition Array Into Three Parts With Equal Sum  🔗  📝
2219. Maximum Sum Score of Array  🔗  📝
2270. Number of Ways to Split Array  🔗  📝
1992. Find All Groups of Farmland  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Matrix  🔗
200. Number of Islands  🔗  📝
1905. Count Sub Islands  🔗  📝
1993. Operations on Tree  🔗  📝
🆓 ⭐️⭐️
Hash Table  🔗
Tree  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Design  🔗
1600. Throne Inheritance  🔗  📝
1994. The Number of Good Subsets  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Math  🔗
Dynamic Programming  🔗
Bit Manipulation  🔗
Bitmask  🔗
1125. Smallest Sufficient Team  🔗  📝
1434. Number of Ways to Wear Different Hats to Each Other  🔗  📝
2305. Fair Distribution of Cookies  🔗  📝
1995. Count Special Quadruplets  🔗  📝
🆓 ⭐️
Array  🔗
Enumeration  🔗
18. 4Sum  🔗  📝
334. Increasing Triplet Subsequence  🔗  📝
1534. Count Good Triplets  🔗  📝
1996. The Number of Weak Characters in the Game  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Stack  🔗
Greedy  🔗
Sorting  🔗
Monotonic Stack  🔗
354. Russian Doll Envelopes  🔗  📝
1691. Maximum Height by Stacking Cuboids   🔗  📝
1997. First Day Where You Have Been in All the Rooms  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
1998. GCD Sort of an Array  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Math  🔗
Union Find  🔗
Sorting  🔗
1632. Rank Transform of a Matrix  🔗  📝
1999. Smallest Greater Multiple Made of Two Digits  🔗  📝
💰 ⭐️⭐️
Math  🔗
Enumeration  🔗
2000. Reverse Prefix of Word  🔗  📝
🆓 ⭐️
Two Pointers  🔗
String  🔗