Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
Question Free? Status Difficulty Topics Similar Questions
901. Online Stock Span  🔗  📝
🆓 ⭐️⭐️
Stack  🔗
Design  🔗
Monotonic Stack  🔗
Data Stream  🔗
739. Daily Temperatures  🔗  📝
902. Numbers At Most N Given Digit Set  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Math  🔗
Binary Search  🔗
Dynamic Programming  🔗
903. Valid Permutations for DI Sequence  🔗  📝
🆓 ⭐️⭐️⭐️
Dynamic Programming  🔗
904. Fruit Into Baskets  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
Sliding Window  🔗
905. Sort Array By Parity  🔗  📝
🆓 ⭐️
Array  🔗
Two Pointers  🔗
Sorting  🔗
2164. Sort Even and Odd Indices Independently  🔗  📝
2231. Largest Number After Digit Swaps by Parity  🔗  📝
906. Super Palindromes  🔗  📝
🆓 ⭐️⭐️⭐️
Math  🔗
Enumeration  🔗
907. Sum of Subarray Minimums  🔗  📝
🆓 👀 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
Stack  🔗
Monotonic Stack  🔗
2104. Sum of Subarray Ranges  🔗  📝
2281. Sum of Total Strength of Wizards  🔗  📝
908. Smallest Range I  🔗  📝
🆓 ⭐️
Array  🔗
Math  🔗
909. Snakes and Ladders  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Breadth-First Search  🔗
Matrix  🔗
910. Smallest Range II  🔗  📝
🆓 👀 ⭐️⭐️
Array  🔗
Math  🔗
Greedy  🔗
Sorting  🔗
911. Online Election  🔗  📝
🆓 👀 ⭐️⭐️
Array  🔗
Hash Table  🔗
Binary Search  🔗
Design  🔗
1366. Rank Teams by Votes  🔗  📝
912. Sort an Array  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Divide and Conquer  🔗
Sorting  🔗
Heap (Priority Queue)  🔗
Merge Sort  🔗
Bucket Sort  🔗
Radix Sort  🔗
Counting Sort  🔗
913. Cat and Mouse  🔗  📝
🆓 ⭐️⭐️⭐️
Math  🔗
Dynamic Programming  🔗
Graph  🔗
Topological Sort  🔗
Memoization  🔗
Game Theory  🔗
1728. Cat and Mouse II  🔗  📝
914. X of a Kind in a Deck of Cards  🔗  📝
🆓 ⭐️
Array  🔗
Hash Table  🔗
Math  🔗
Counting  🔗
Number Theory  🔗
915. Partition Array into Disjoint Intervals  🔗  📝
🆓 👀 ⭐️⭐️
Array  🔗
2012. Sum of Beauty in the Array  🔗  📝
916. Word Subsets  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
String  🔗
917. Reverse Only Letters  🔗  📝
🆓 ⭐️
Two Pointers  🔗
String  🔗
918. Maximum Sum Circular Subarray  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Divide and Conquer  🔗
Dynamic Programming  🔗
Queue  🔗
Monotonic Queue  🔗
919. Complete Binary Tree Inserter  🔗  📝
🆓 ⭐️⭐️
Tree  🔗
Breadth-First Search  🔗
Design  🔗
Binary Tree  🔗
920. Number of Music Playlists  🔗  📝
🆓 ⭐️⭐️⭐️
Math  🔗
Dynamic Programming  🔗
Combinatorics  🔗
921. Minimum Add to Make Parentheses Valid  🔗  📝
🆓 ⭐️⭐️
String  🔗
Stack  🔗
Greedy  🔗
1963. Minimum Number of Swaps to Make the String Balanced  🔗  📝
922. Sort Array By Parity II  🔗  📝
🆓 ⭐️
Array  🔗
Two Pointers  🔗
Sorting  🔗
2149. Rearrange Array Elements by Sign  🔗  📝
2164. Sort Even and Odd Indices Independently  🔗  📝
2231. Largest Number After Digit Swaps by Parity  🔗  📝
923. 3Sum With Multiplicity  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
Two Pointers  🔗
Sorting  🔗
Counting  🔗
924. Minimize Malware Spread  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Union Find  🔗
Matrix  🔗
925. Long Pressed Name  🔗  📝
🆓 ⭐️
Two Pointers  🔗
String  🔗
926. Flip String to Monotone Increasing  🔗  📝
🆓 ⭐️⭐️
String  🔗
Dynamic Programming  🔗
927. Three Equal Parts  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Math  🔗
928. Minimize Malware Spread II  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Union Find  🔗
Matrix  🔗
929. Unique Email Addresses  🔗  📝
🆓 ⭐️
Array  🔗
Hash Table  🔗
String  🔗
930. Binary Subarrays With Sum  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
Sliding Window  🔗
Prefix Sum  🔗
2302. Count Subarrays With Score Less Than K  🔗  📝
931. Minimum Falling Path Sum  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
Matrix  🔗
1289. Minimum Falling Path Sum II  🔗  📝
932. Beautiful Array  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Math  🔗
Divide and Conquer  🔗
933. Number of Recent Calls  🔗  📝
🆓 ⭐️
Design  🔗
Queue  🔗
Data Stream  🔗
934. Shortest Bridge  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Matrix  🔗
935. Knight Dialer  🔗  📝
🆓 ⭐️⭐️
Dynamic Programming  🔗
936. Stamping The Sequence  🔗  📝
🆓 ⭐️⭐️⭐️
String  🔗
Stack  🔗
Greedy  🔗
Queue  🔗
937. Reorder Data in Log Files  🔗  📝
🆓 ⭐️⭐️
Array  🔗
String  🔗
Sorting  🔗
938. Range Sum of BST  🔗  📝
🆓 ⭐️
Tree  🔗
Depth-First Search  🔗
Binary Search Tree  🔗
Binary Tree  🔗
939. Minimum Area Rectangle  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
Math  🔗
Geometry  🔗
Sorting  🔗
940. Distinct Subsequences II  🔗  📝
🆓 ⭐️⭐️⭐️
String  🔗
Dynamic Programming  🔗
1987. Number of Unique Good Subsequences  🔗  📝
941. Valid Mountain Array  🔗  📝
🆓 ⭐️
Array  🔗
1671. Minimum Number of Removals to Make Mountain Array  🔗  📝
942. DI String Match  🔗  📝
🆓 ⭐️
Array  🔗
Math  🔗
Two Pointers  🔗
String  🔗
Greedy  🔗
943. Find the Shortest Superstring  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
String  🔗
Dynamic Programming  🔗
Bit Manipulation  🔗
Bitmask  🔗
944. Delete Columns to Make Sorted  🔗  📝
🆓 ⭐️
Array  🔗
String  🔗
945. Minimum Increment to Make Array Unique  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Greedy  🔗
Sorting  🔗
Counting  🔗
2233. Maximum Product After K Increments  🔗  📝
946. Validate Stack Sequences  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Stack  🔗
Simulation  🔗
947. Most Stones Removed with Same Row or Column  🔗  📝
🆓 ⭐️⭐️
Depth-First Search  🔗
Union Find  🔗
Graph  🔗
948. Bag of Tokens  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Two Pointers  🔗
Greedy  🔗
Sorting  🔗
949. Largest Time for Given Digits  🔗  📝
🆓 ⭐️⭐️
String  🔗
Enumeration  🔗
950. Reveal Cards In Increasing Order  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Queue  🔗
Sorting  🔗
Simulation  🔗
951. Flip Equivalent Binary Trees  🔗  📝
🆓 ⭐️⭐️
Tree  🔗
Depth-First Search  🔗
Binary Tree  🔗
952. Largest Component Size by Common Factor  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Math  🔗
Union Find  🔗
2157. Groups of Strings  🔗  📝
953. Verifying an Alien Dictionary  🔗  📝
🆓 ⭐️
Array  🔗
Hash Table  🔗
String  🔗
954. Array of Doubled Pairs  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
Greedy  🔗
Sorting  🔗
2007. Find Original Array From Doubled Array  🔗  📝
955. Delete Columns to Make Sorted II  🔗  📝
🆓 ⭐️⭐️
Array  🔗
String  🔗
Greedy  🔗
956. Tallest Billboard  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Dynamic Programming  🔗
2035. Partition Array Into Two Arrays to Minimize Sum Difference  🔗  📝
957. Prison Cells After N Days  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
Math  🔗
Bit Manipulation  🔗
958. Check Completeness of a Binary Tree  🔗  📝
🆓 ⭐️⭐️
Tree  🔗
Breadth-First Search  🔗
Binary Tree  🔗
959. Regions Cut By Slashes  🔗  📝
🆓 ⭐️⭐️
Depth-First Search  🔗
Breadth-First Search  🔗
Union Find  🔗
Graph  🔗
960. Delete Columns to Make Sorted III  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
String  🔗
Dynamic Programming  🔗
961. N-Repeated Element in Size 2N Array  🔗  📝
🆓 ⭐️
Array  🔗
Hash Table  🔗
962. Maximum Width Ramp  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Stack  🔗
Monotonic Stack  🔗
963. Minimum Area Rectangle II  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Math  🔗
Geometry  🔗
964. Least Operators to Express Number  🔗  📝
🆓 ⭐️⭐️⭐️
Math  🔗
Dynamic Programming  🔗
965. Univalued Binary Tree  🔗  📝
🆓 ⭐️
Tree  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Binary Tree  🔗
1469. Find All The Lonely Nodes  🔗  📝
966. Vowel Spellchecker  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
String  🔗
967. Numbers With Same Consecutive Differences  🔗  📝
🆓 ⭐️⭐️
Backtracking  🔗
Breadth-First Search  🔗
968. Binary Tree Cameras  🔗  📝
🆓 ⭐️⭐️⭐️
Dynamic Programming  🔗
Tree  🔗
Depth-First Search  🔗
Binary Tree  🔗
979. Distribute Coins in Binary Tree  🔗  📝
969. Pancake Sorting  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Two Pointers  🔗
Greedy  🔗
Sorting  🔗
970. Powerful Integers  🔗  📝
🆓 ⭐️⭐️
Hash Table  🔗
Math  🔗
971. Flip Binary Tree To Match Preorder Traversal  🔗  📝
🆓 ⭐️⭐️
Tree  🔗
Depth-First Search  🔗
Binary Tree  🔗
972. Equal Rational Numbers  🔗  📝
🆓 ⭐️⭐️⭐️
Math  🔗
String  🔗
973. K Closest Points to Origin  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Math  🔗
Divide and Conquer  🔗
Geometry  🔗
Sorting  🔗
Heap (Priority Queue)  🔗
Quickselect  🔗
215. Kth Largest Element in an Array  🔗  📝
347. Top K Frequent Elements  🔗  📝
692. Top K Frequent Words  🔗  📝
1779. Find Nearest Point That Has the Same X or Y Coordinate  🔗  📝
974. Subarray Sums Divisible by K  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Hash Table  🔗
Prefix Sum  🔗
560. Subarray Sum Equals K  🔗  📝
1590. Make Sum Divisible by P  🔗  📝
2364. Count Number of Bad Pairs  🔗  📝
975. Odd Even Jump  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Dynamic Programming  🔗
Stack  🔗
Monotonic Stack  🔗
Ordered Set  🔗
976. Largest Perimeter Triangle  🔗  📝
🆓 ⭐️
Array  🔗
Math  🔗
Greedy  🔗
Sorting  🔗
812. Largest Triangle Area  🔗  📝
977. Squares of a Sorted Array  🔗  📝
🆓 ⭐️
Array  🔗
Two Pointers  🔗
Sorting  🔗
88. Merge Sorted Array  🔗  📝
360. Sort Transformed Array  🔗  📝
978. Longest Turbulent Subarray  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
Sliding Window  🔗
53. Maximum Subarray  🔗  📝
979. Distribute Coins in Binary Tree  🔗  📝
🆓 👀 ⭐️⭐️
Tree  🔗
Depth-First Search  🔗
Binary Tree  🔗
834. Sum of Distances in Tree  🔗  📝
968. Binary Tree Cameras  🔗  📝
980. Unique Paths III  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Backtracking  🔗
Bit Manipulation  🔗
Matrix  🔗
37. Sudoku Solver  🔗  📝
63. Unique Paths II  🔗  📝
212. Word Search II  🔗  📝
981. Time Based Key-Value Store  🔗  📝
🆓 ⭐️⭐️
Hash Table  🔗
String  🔗
Binary Search  🔗
Design  🔗
2034. Stock Price Fluctuation   🔗  📝
982. Triples with Bitwise AND Equal To Zero  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Hash Table  🔗
Bit Manipulation  🔗
983. Minimum Cost For Tickets  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Dynamic Programming  🔗
322. Coin Change  🔗  📝
984. String Without AAA or BBB  🔗  📝
🆓 ⭐️⭐️
String  🔗
Greedy  🔗
985. Sum of Even Numbers After Queries  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Simulation  🔗
986. Interval List Intersections  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Two Pointers  🔗
56. Merge Intervals  🔗  📝
88. Merge Sorted Array  🔗  📝
759. Employee Free Time  🔗  📝
987. Vertical Order Traversal of a Binary Tree  🔗  📝
🆓 ⭐️⭐️⭐️
Hash Table  🔗
Tree  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Binary Tree  🔗
988. Smallest String Starting From Leaf  🔗  📝
🆓 ⭐️⭐️
String  🔗
Tree  🔗
Depth-First Search  🔗
Binary Tree  🔗
129. Sum Root to Leaf Numbers  🔗  📝
257. Binary Tree Paths  🔗  📝
989. Add to Array-Form of Integer  🔗  📝
🆓 ⭐️
Array  🔗
Math  🔗
2. Add Two Numbers  🔗  📝
66. Plus One  🔗  📝
67. Add Binary  🔗  📝
415. Add Strings  🔗  📝
990. Satisfiability of Equality Equations  🔗  📝
🆓 ⭐️⭐️
Array  🔗
String  🔗
Union Find  🔗
Graph  🔗
991. Broken Calculator  🔗  📝
🆓 ⭐️⭐️
Math  🔗
Greedy  🔗
650. 2 Keys Keyboard  🔗  📝
992. Subarrays with K Different Integers  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Hash Table  🔗
Sliding Window  🔗
Counting  🔗
3. Longest Substring Without Repeating Characters  🔗  📝
159. Longest Substring with At Most Two Distinct Characters  🔗  📝
340. Longest Substring with At Most K Distinct Characters  🔗  📝
2062. Count Vowel Substrings of a String  🔗  📝
2107. Number of Unique Flavors After Sharing K Candies  🔗  📝
2261. K Divisible Elements Subarrays  🔗  📝
993. Cousins in Binary Tree  🔗  📝
🆓 ⭐️
Tree  🔗
Depth-First Search  🔗
Breadth-First Search  🔗
Binary Tree  🔗
102. Binary Tree Level Order Traversal  🔗  📝
994. Rotting Oranges  🔗  📝
🆓 ⭐️⭐️
Array  🔗
Breadth-First Search  🔗
Matrix  🔗
286. Walls and Gates  🔗  📝
2101. Detonate the Maximum Bombs  🔗  📝
2258. Escape the Spreading Fire  🔗  📝
995. Minimum Number of K Consecutive Bit Flips  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Bit Manipulation  🔗
Sliding Window  🔗
Prefix Sum  🔗
319. Bulb Switcher  🔗  📝
2167. Minimum Time to Remove All Cars Containing Illegal Goods  🔗  📝
996. Number of Squareful Arrays  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Math  🔗
Dynamic Programming  🔗
Backtracking  🔗
Bit Manipulation  🔗
Bitmask  🔗
47. Permutations II  🔗  📝
997. Find the Town Judge  🔗  📝
🆓 ⭐️
Array  🔗
Hash Table  🔗
Graph  🔗
277. Find the Celebrity  🔗  📝
998. Maximum Binary Tree II  🔗  📝
🆓 ⭐️⭐️
Tree  🔗
Binary Tree  🔗
654. Maximum Binary Tree  🔗  📝
999. Available Captures for Rook  🔗  📝
🆓 ⭐️
Array  🔗
Matrix  🔗
Simulation  🔗
2257. Count Unguarded Cells in the Grid  🔗  📝
1000. Minimum Cost to Merge Stones  🔗  📝
🆓 ⭐️⭐️⭐️
Array  🔗
Dynamic Programming  🔗
312. Burst Balloons  🔗  📝
1167. Minimum Cost to Connect Sticks  🔗  📝