Array
183 solutions
- 0001 - Two Sum (Easy)
- 0004 - Median of Two Sorted Arrays
- 0026 - Remove Duplicates from Sorted Array (Easy)
- 0027 - Remove Element (Easy)
- 0034 - Find First and Last Position of Element in Sorted Array (Medium)
- 0039 - Combination Sum (Medium)
- 0040 - Combination Sum II (Medium)
- 0042 - Trapping Rain Water (Hard)
- 0045 - Jump Game II (Medium)
- 0048 - Rotate Image (Medium)
- 0049 - Group Anagrams (Medium)
- 0051 - N-Queens (Hard)
- 0053 - Maximum Subarray (Medium)
- 0054 - Spiral Matrix (Medium)
- 0055 - Jump Game (Medium)
- 0056 - Merge Intervals (Medium)
- 0057 - Insert Interval (Medium)
- 0063 - Unique Paths II (Medium)
- 0066 - Plus One (Easy)
- 0073 - Set Matrix Zeroes (Medium)
- 0074 - Search a 2D Matrix (Medium)
- 0075 - Sort Colors (Medium)
- 0078 - Subsets (Medium)
- 0079 - Word Search (Medium)
- 0084 - Largest Rectangle in Histogram (Hard)
- 0088 - Merge Sorted Array (Easy)
- 0090 - Subsets II (Medium)
- 0105 - Construct Binary Tree from Preorder and Inorder Traversal (Medium)
- 0118 - Pascal's Triangle (Easy)
- 0130 Surrounded Regions (Medium)
- 0139 - Word Break (Medium)
- 0150 - Evaluate Reverse Polish Notation (Medium)
- 0152 - Maximum Product Subarray (Medium)
- 0154 - Find Minimum in Rotated Sorted Array II (Hard)
- 0162 - Find Peak Element (Medium)
- 0188 - Best Time to Buy and Sell Stock IV (Hard)
- 0198 - House Robber (Medium)
- 0200 - Number of Islands (Medium)
- 0202 - Happy Number (Easy)
- 0212 - Word Search II (Hard)
- 0213 - House Robber II (Medium)
- 0238 - Product of Array Except Self (Medium)
- 0239 - Sliding Window Maximum (Hard)
- 0268 - Missing Number (Easy)
- 0286 - Walls and Gates (Medium)
- 0300 - Longest Increasing Subsequence (Medium)
- 0307 - Range Sum Query - Mutable (Medium)
- 0309 - Best Time to Buy and Sell Stock with Cooldown (Medium)
- 0312 - Burst Balloons (Hard)
- 0322 - Coin Change (Medium)
- 0329 - Longest Increasing Path in a Matrix (Hard)
- 0350 - Intersection of Two Arrays II (Easy)
- 0393 - UTF-8 Validation (Medium)
- 0403 - Frog Jump (Hard)
- 0416 - Partition Equal Subset Sum (Medium)
- 0417 - Pacific Atlantic Water Flow (Medium)
- 0435 - Non-overlapping Intervals (Medium)
- 0491 - Non-decreasing Subsequences (Medium)
- 0494 - Target Sum (Medium)
- 0518 - Coin Change 2 (Medium)
- 0525 - Contiguous Array (Medium)
- 0540 - Single Element in a Sorted Array (Medium)
- 0542 - 01 Matrix (Medium)
- 0609 - Find Duplicate File in System (Medium)
- 0621 - Task Scheduler (Medium)
- 0622 - Design Circular Queue (Medium)
- 0645 - Set Mismatch (Easy)
- 0695 - Max Area of Island (Medium)
- 0698 - Partition to K Equal Sum Subsets (Medium)
- 0713 - Subarray Product Less Than K (Medium)
- 0718 - Maximum Length of Repeated Subarray (Medium)
- 0724 - Find Pivot Index (Easy)
- 0739 - Daily Temperatures
- 0746 - Min Cost Climbing Stairs (Easy)
- 0778 - Swim in Rising Water (Hard)
- 0813 - Largest Sum of Averages (Medium)
- 0846 - Hand of Straights (Medium)
- 0853 - Car Fleet (Medium)
- 0867 - Transpose Matrix (Easy)
- 0896 - Monotonic Array (Easy)
- 0904 - Fruit Into Baskets (Medium)
- 0907 - Sum of Subarray Minimums (Medium)
- 0909 - Snakes and Ladders (Medium)
- 0918 - Maximum Sum Circular Subarray (Medium)
- 0944 - Delete Columns to Make Sorted (Easy)
- 0948 - Bag of Tokens (Medium)
- 0973 - K Closest Points to Origin (Medium)
- 0974 - Subarray Sums Divisible by K (Medium)
- 0977 - Squares of A Sorted Array (Easy)
- 0985 - Sum of Even Numbers After Queries (Medium)
- 0990 - Satisfiability of Equality Equations (Medium)
- 0992 - Subarrays with K Different Integers (Hard)
- 0994 - Rotting Oranges (Medium)
- 0997 - Find the Town Judge (Easy)
- 1000 - Minimum Cost to Merge Stones (Hard)
- 1019 - Next Greater Node In Linked List (Medium)
- 1029 - Two City Scheduling (Medium)
- 1046 - Last Stone Weight (Easy)
- 1140 - Stone Game II (Medium)
- 1219 - Path with Maximum Gold (Medium)
- 1235 - Maximum Profit in Job Scheduling (Hard)
- 1239 - Maximum Length of a Concatenated String with Unique Characters (Medium)
- 1254 - Number of Closed Islands (Medium)
- 1293 - Shortest Path in a Grid with Obstacles Elimination (Hard)
- 1299 - Replace Elements with Greatest Element on Right Side
- 1326 - Minimum Number of Taps to Open to Water a Garden (Hard)
- 1329 - Sort the Matrix Diagonally (Medium)
- 1335 - Minimum Difficulty of a Job Schedule (Hard)
- 1337 - The K Weakest Rows in a Matrix (Easy)
- 1383 - Maximum Performance of a Team (Hard)
- 1386 - Cinema Seat Allocation (Medium)
- 1434 - Number of Ways to Wear Different Hats to Each Other (Hard)
- 1460 - Make Two Arrays Equal by Reversing Subarrays (Easy)
- 1464 - Maximum Product of Two Elements in an Array (Easy)
- 1470 - Shuffle the Array (Easy)
- 1482 - Minimum Number of Days to Make m Bouquets (Medium)
- 1550 - Three Consecutive Odds (Easy)
- 1578 - Minimum Time to Make Rope Colorful (Medium)
- 1584 - Min Cost to Connect All Points (Medium)
- 1590 - Make Sum Divisible by P (Medium)
- 1626 - Best Team With No Conflicts (Medium)
- 1630 - Arithmetic Subarrays (Medium)
- 1631 - Path With Minimum Effort (Medium)
- 1639 - Number of Ways to Form a Target String Given a Dictionary (Hard)
- 1662 - Check If Two String Arrays are Equivalent (Easy)
- 1664 - Ways to Make a Fair Array (Medium)
- 1672 - Richest Customer Wealth (Easy)
- 1685 - Sum of Absolute Differences in a Sorted Array (Medium)
- 1706 - Where Will the Ball Fall (Medium)
- 1727 - Largest Submatrix With Rearrangements (Medium)
- 1779 - Find Nearest Point That Has the Same X or Y Coordinate (Easy)
- 1793 - Maximum Score of a Good Subarray (Hard)
- 1823 - Find the Winner of the Circular Game (Medium)
- 1851 - Minimum Interval to Include Each Query
- 1899 - Merge Triplets to Form Target Triplet (Medium)
- 1913 - Maximum Product Difference Between Two Pairs (Easy)
- 1926 - Nearest Exit from Entrance in Maze (Medium)
- 1980 - Find Unique Binary String (Medium)
- 1996 - The Number of Weak Characters in the Game (Medium)
- 2007 - Find Original Array From Doubled Array (Medium)
- 2009 - Minimum Number of Operations to Make Array Continuous (Hard)
- 2013 - Detect Squares (Medium)
- 2050 - Parallel Courses III (Hard)
- 2089 - Find Target Indices After Sorting Array (Easy)
- 2091 - Removing Minimum and Maximum From Array (Medium)
- 2131 - Longest Palindrome by Concatenating Two Letter Words (Medium)
- 2149 - Rearrange Array Elements by Sign (Medium)
- 2214 - Minimum Health to Beat Game (Medium)
- 2218 - Maximum Value of K Coins From Piles (Hard)
- 2225 - Find Players With Zero or One Losses (Medium)
- 2229 - Check if an Array is Consecutive (Easy)
- 2251 - Number of Flowers in Full Bloom (Hard)
- 2256 - Minimum Average Difference (Medium)
- 2300 - Successful Pairs of Spells and Potions (Medium)
- 2373 - Largest Local Values in a Matrix (Easy)
- 2401 - Longest Nice Subarray (Medium)
- 2421 - Number of Good Paths (Hard)
- 2432 - The Employee That Worked on the Longest Task (Easy)
- 2439 - Minimize Maximum of Array (Medium)
- 2455 - Average Value of Even Numbers That Are Divisible by Three (Easy)
- 2461 - Maximum Sum of Distinct Subarrays With Length K (Medium)
- 2482 - Difference Between Ones and Zeros in Row and Column (Medium)
- 2501 - Longest Square Streak in an Array (Medium)
- 2530 - Maximal Score After Applying K Operations (Medium)
- 2610 - Convert an Array Into a 2D Array With Conditions (Medium)
- 2681 - Power of Heroes (Hard)
- 2750 - Ways to Split Array Into Good Subarrays (Medium)
- 2811 - Check if it is Possible to Split Array (Medium)
- 2815 - Max Pair Sum in an Array (Easy)
- 2859 - Sum of Values at Indices With K Set Bits (Easy)
- 2873 - Maximum Value of an Ordered Triplet I (Easy)
- 2874 - Maximum Value of an Ordered Triplet II (Medium)
- 2905 - Find Indices With Index and Value Difference II (Medium)
- 2903 - Find Indices With Index and Value Difference I (Easy)
- 3005 - Count Elements With Maximum Frequency (Easy)
- 3069 - Distribute Elements Into Two Arrays I (Easy)
- 3142 - Check if Grid Satisfies Conditions (Easy)
- 3238 - Find the Number of Winning Players (Easy)
- 3289 - The Two Sneaky Numbers of Digitville (Easy)
- 3471 - Find the Largest Almost Missing Integer (Easy)
- 3702 - Longest Subsequence With Non-Zero Bitwise XOR (Medium)
- 3718 - Smallest Missing Multiple of K (Easy)
- 3942 - Minimum Operations to Sort a Permutation (Medium)