Array
198 solutions
- 1 - Two Sum
- 4 - Median of Two Sorted Arrays
- 26 - Remove Duplicates from Sorted Array
- 27 - Remove Element
- 34 - Find First and Last Position of Element in Sorted Array
- 39 - Combination Sum
- 40 - Combination Sum II
- 42 - Trapping Rain Water
- 45 - Jump Game II
- 48 - Rotate Image
- 49 - Group Anagrams
- 51 - N-Queens
- 53 - Maximum Subarray
- 54 - Spiral Matrix
- 55 - Jump Game
- 56 - Merge Intervals
- 57 - Insert Interval
- 63 - Unique Paths II
- 66 - Plus One
- 73 - Set Matrix Zeroes
- 74 - Search a 2D Matrix
- 75 - Sort Colors
- 78 - Subsets
- 79 - Word Search
- 84 - Largest Rectangle in Histogram
- 88 - Merge Sorted Array
- 90 - Subsets II
- 105 - Construct Binary Tree from Preorder and Inorder Traversal
- 118 - Pascal's Triangle
- 130 - Surrounded Regions
- 139 - Word Break
- 150 - Evaluate Reverse Polish Notation
- 152 - Maximum Product Subarray
- 154 - Find Minimum in Rotated Sorted Array II
- 162 - Find Peak Element
- 188 - Best Time to Buy and Sell Stock IV
- 198 - House Robber
- 200 - Number of Islands
- 202 - Happy Number
- 212 - Word Search II
- 213 - House Robber II
- 238 - Product of Array Except Self
- 239 - Sliding Window Maximum
- 268 - Missing Number
- 286 - Walls and Gates
- 300 - Longest Increasing Subsequence
- 307 - Range Sum Query - Mutable
- 309 - Best Time to Buy and Sell Stock with Cooldown
- 312 - Burst Balloons
- 322 - Coin Change
- 329 - Longest Increasing Path in a Matrix
- 350 - Intersection of Two Arrays II
- 393 - UTF-8 Validation
- 403 - Frog Jump
- 416 - Partition Equal Subset Sum
- 417 - Pacific Atlantic Water Flow
- 435 - Non-overlapping Intervals
- 453 - Minimum Moves to Equal Array Elements
- 462 - Minimum Moves to Equal Array Elements II
- 491 - Non-decreasing Subsequences
- 494 - Target Sum
- 518 - Coin Change 2
- 525 - Contiguous Array
- 540 - Single Element in a Sorted Array
- 542 - 01 Matrix
- 609 - Find Duplicate File in System
- 621 - Task Scheduler
- 622 - Design Circular Queue
- 645 - Set Mismatch
- 695 - Max Area of Island
- 698 - Partition to K Equal Sum Subsets
- 713 - Subarray Product Less Than K
- 718 - Maximum Length of Repeated Subarray
- 724 - Find Pivot Index
- 739 - Daily Temperatures
- 746 - Min Cost Climbing Stairs
- 778 - Swim in Rising Water
- 813 - Largest Sum of Averages
- 846 - Hand of Straights
- 853 - Car Fleet
- 867 - Transpose Matrix
- 896 - Monotonic Array
- 904 - Fruit Into Baskets
- 907 - Sum of Subarray Minimums
- 909 - Snakes and Ladders
- 918 - Maximum Sum Circular Subarray
- 944 - Delete Columns to Make Sorted
- 948 - Bag of Tokens
- 973 - K Closest Points to Origin
- 974 - Subarray Sums Divisible by K
- 977 - Squares of a Sorted Array
- 985 - Sum of Even Numbers After Queries
- 990 - Satisfiability of Equality Equations
- 992 - Subarrays with K Different Integers
- 994 - Rotting Oranges
- 997 - Find the Town Judge
- 1000 - Minimum Cost to Merge Stones
- 1019 - Next Greater Node In Linked List
- 1029 - Two City Scheduling
- 1046 - Last Stone Weight
- 1140 - Stone Game II
- 1219 - Path with Maximum Gold
- 1235 - Maximum Profit in Job Scheduling
- 1239 - Maximum Length of a Concatenated String with Unique Characters
- 1254 - Number of Closed Islands
- 1267 - Count Servers that Communicate
- 1293 - Shortest Path in a Grid with Obstacles Elimination
- 1299 - Replace Elements with Greatest Element on Right Side
- 1326 - Minimum Number of Taps to Open to Water a Garden
- 1329 - Sort the Matrix Diagonally
- 1335 - Minimum Difficulty of a Job Schedule
- 1337 - The K Weakest Rows in a Matrix
- 1383 - Maximum Performance of a Team
- 1385 - Find the Distance Value Between Two Arrays
- 1386 - Cinema Seat Allocation
- 1434 - Number of Ways to Wear Different Hats to Each Other
- 1460 - Make Two Arrays Equal by Reversing Subarrays
- 1464 - Maximum Product of Two Elements in an Array
- 1470 - Shuffle the Array
- 1482 - Minimum Number of Days to Make m Bouquets
- 1550 - Three Consecutive Odds
- 1578 - Minimum Time to Make Rope Colorful
- 1584 - Min Cost to Connect All Points
- 1590 - Make Sum Divisible by P
- 1606 - Find Servers That Handled Most Number of Requests
- 1626 - Best Team With No Conflicts
- 1630 - Arithmetic Subarrays
- 1631 - Path With Minimum Effort
- 1639 - Number of Ways to Form a Target String Given a Dictionary
- 1662 - Check If Two String Arrays are Equivalent
- 1664 - Ways to Make a Fair Array
- 1672 - Richest Customer Wealth
- 1685 - Sum of Absolute Differences in a Sorted Array
- 1706 - Where Will the Ball Fall
- 1727 - Largest Submatrix With Rearrangements
- 1779 - Find Nearest Point That Has the Same X or Y Coordinate
- 1793 - Maximum Score of a Good Subarray
- 1823 - Find the Winner of the Circular Game
- 1851 - Minimum Interval to Include Each Query
- 1882 - Process Tasks Using Servers
- 1899 - Merge Triplets to Form Target Triplet
- 1913 - Maximum Product Difference Between Two Pairs
- 1926 - Nearest Exit from Entrance in Maze
- 1980 - Find Unique Binary String
- 1996 - The Number of Weak Characters in the Game
- 2007 - Find Original Array From Doubled Array
- 2009 - Minimum Number of Operations to Make Array Continuous
- 2013 - Detect Squares
- 2050 - Parallel Courses III
- 2089 - Find Target Indices After Sorting Array
- 2091 - Removing Minimum and Maximum From Array
- 2131 - Longest Palindrome by Concatenating Two Letter Words
- 2149 - Rearrange Array Elements by Sign
- 2214 - Minimum Health to Beat Game
- 2218 - Maximum Value of K Coins From Piles
- 2225 - Find Players With Zero or One Losses
- 2229 - Check if an Array is Consecutive
- 2251 - Number of Flowers in Full Bloom
- 2256 - Minimum Average Difference
- 2300 - Successful Pairs of Spells and Potions
- 2373 - Largest Local Values in a Matrix
- 2401 - Longest Nice Subarray
- 2421 - Number of Good Paths
- 2432 - The Employee That Worked on the Longest Task
- 2439 - Minimize Maximum of Array
- 2455 - Average Value of Even Numbers That Are Divisible by Three
- 2461 - Maximum Sum of Distinct Subarrays With Length K
- 2482 - Difference Between Ones and Zeros in Row and Column
- 2501 - Longest Square Streak in an Array
- 2530 - Maximal Score After Applying K Operations
- 2610 - Convert an Array Into a 2D Array With Conditions
- 2681 - Power of Heroes
- 2747 - Count Zero Request Servers
- 2750 - Ways to Split Array Into Good Subarrays
- 2811 - Check if it is Possible to Split Array
- 2815 - Max Pair Sum in an Array
- 2859 - Sum of Values at Indices With K Set Bits
- 2873 - Maximum Value of an Ordered Triplet I
- 2874 - Maximum Value of an Ordered Triplet II
- 2905 - Find Indices With Index and Value Difference II
- 2903 - Find Indices With Index and Value Difference I
- 3005 - Count Elements With Maximum Frequency
- 3069 - Distribute Elements Into Two Arrays I
- 3105 - Longest Strictly Increasing or Strictly Decreasing Subarray
- 3142 - Check if Grid Satisfies Conditions
- 3238 - Find the Number of Winning Players
- 3289 - The Two Sneaky Numbers of Digitville
- 3420 - Count Non-Decreasing Subarrays After K Operations
- 3471 - Find the Largest Almost Missing Integer
- 3505 - Minimum Operations to Make Elements Within K Subarrays Equal
- 3619 - Count Islands With Total Value Divisible by K
- 3665 - Twisted Mirror Path Count
- 3693 - Climbing Stairs II
- 3702 - Longest Subsequence With Non-Zero Bitwise XOR
- 3718 - Smallest Missing Multiple of K
- 3736 - Minimum Moves to Equal Array Elements III
- 3841 - Palindromic Path Queries in a Tree
- 3942 - Minimum Operations to Sort a Permutation