Tag: array
- 01 Matrix
- 1-bit and 2-bit Characters
- 132 Pattern
- 24 Game
- 3Sum Closest
- 3Sum With Multiplicity
- 3Sum
- 4Sum II
- 4Sum
- Accounts Merge
- Add Minimum Number of Rungs
- Add to Array-Form of Integer
- Adding Spaces to a String
- Adding Two Negabinary Numbers
- Adjacent Increasing Subarrays Detection I
- Adjacent Increasing Subarrays Detection II
- Advantage Shuffle
- Alert Using Same Key-Card Three or More Times in a One Hour Period
- All Divisions With the Highest Score of a Binary Array
- Allocate Mailboxes
- Alternating Groups I
- Alternating Groups II
- Alternating Groups III
- Ant on the Boundary
- Append K Integers With Minimal Sum
- Apple Redistribution into Boxes
- Apply Discount Every n Orders
- Apply Operations on Array to Maximize Sum of Squares
- Apply Operations to an Array
- Apply Operations to Make All Array Elements Equal to Zero
- Apply Operations to Make String Empty
- Apply Operations to Maximize Frequency Score
- Apply Operations to Maximize Score
- Arithmetic Slices II - Subsequence
- Arithmetic Slices
- Arithmetic Subarrays
- Array Nesting
- Array of Doubled Pairs
- Array Partition
- As Far from Land as Possible
- Assign Cookies
- Assign Elements to Groups with Constraints
- Asteroid Collision
- Available Captures for Rook
- Average Salary Excluding the Minimum and Maximum Salary
- Average Value of Even Numbers That Are Divisible by Three
- Average Waiting Time
- Avoid Flood in The City
- Bag of Tokens
- Baseball Game
- Battleships in a Board
- Beautiful Arrangement II
- Beautiful Arrangement
- Beautiful Array
- Beautiful Towers I
- Beautiful Towers II
- Best Poker Hand
- Best Position for a Service Centre
- Best Sightseeing Pair
- Best Team With No Conflicts
- Best Time to Buy and Sell Stock II
- Best Time to Buy and Sell Stock III
- Best Time to Buy and Sell Stock IV
- Best Time to Buy and Sell Stock with Cooldown
- Best Time to Buy and Sell Stock with Transaction Fee
- Best Time to Buy and Sell Stock
- Binary Prefix Divisible By 5
- Binary Search
- Binary Subarrays With Sum
- Binary Trees With Factors
- Bitwise ORs of Subarrays
- Bitwise XOR of All Pairings
- Block Placement Queries
- Boats to Save People
- Brick Wall
- Bricks Falling When Hit
- Build a Matrix With Conditions
- Build an Array With Stack Operations
- Build Array from Permutation
- Burst Balloons
- Bus Routes
- Button with Longest Push Time
- Buy Two Chocolates
- Calculate Amount Paid in Taxes
- Camelcase Matching
- Can Make Arithmetic Progression From Sequence
- Can Make Palindrome from Substring
- Can Place Flowers
- Can You Eat Your Favorite Candy on Your Favorite Day?
- Candy
- Capacity To Ship Packages Within D Days
- Car Fleet II
- Car Fleet
- Car Pooling
- Card Flipping Game
- Cat and Mouse II
- Cells with Odd Values in a Matrix
- Chalkboard XOR Game
- Check Array Formation Through Concatenation
- Check Distances Between Same Letters
- Check if a String Is an Acronym of Words
- Check If All 1's Are at Least Length K Places Away
- Check if All the Integers in a Range Are Covered
- Check if Array is Good
- Check if Array Is Sorted and Rotated
- Check If Array Pairs Are Divisible by k
- Check if Bitwise OR Has Trailing Zeros
- Check if DFS Strings Are Palindromes
- Check if Every Row and Column Contains All Numbers
- Check if Grid can be Cut into Sections
- Check if Grid Satisfies Conditions
- Check If It Is a Good Array
- Check If It Is a Straight Line
- Check if it is Possible to Split Array
- Check if Matrix Is X-Matrix
- Check if Move is Legal
- Check If N and Its Double Exist
- Check If String Is a Prefix of Array
- Check if the Rectangle Corner Is Reachable
- Check if There Is a Valid Parentheses String Path
- Check if There is a Valid Partition For The Array
- Check if There is a Valid Path in a Grid
- Check If Two String Arrays are Equivalent
- Check if Word Can Be Placed In Crossword
- Check Knight Tour Configuration
- Checking Existence of Edge Length Limited Paths
- Cherry Pickup II
- Cherry Pickup
- Choose K Elements With Maximum Sum
- Cinema Seat Allocation
- Circular Array Loop
- Closest Dessert Cost
- Closest Equal Element Queries
- Closest Nodes Queries in a Binary Search Tree
- Closest Subsequence Sum
- Coin Change II
- Coin Change
- Collect Coins in a Tree
- Collecting Chocolates
- Coloring A Border
- Combination Sum II
- Combination Sum III
- Combination Sum IV
- Combination Sum
- Compare Strings by Frequency of the Smallest Character
- Concatenated Words
- Concatenation of Array
- Constrained Subsequence Sum
- Construct 2D Grid Matching Graph Layout
- Construct Binary Search Tree from Preorder Traversal
- Construct Binary Tree from Inorder and Postorder Traversal
- Construct Binary Tree from Preorder and Inorder Traversal
- Construct Binary Tree from Preorder and Postorder Traversal
- Construct Product Matrix
- Construct Quad Tree
- Construct String with Minimum Cost
- Construct Target Array With Multiple Sums
- Construct the Lexicographically Largest Valid Sequence
- Construct the Minimum Bitwise Array I
- Construct the Minimum Bitwise Array II
- Contain Virus
- Container With Most Water
- Contains Duplicate II
- Contains Duplicate III
- Contains Duplicate
- Contiguous Array
- Continuous Subarray Sum
- Continuous Subarrays
- Convert 1D Array Into 2D Array
- Convert an Array Into a 2D Array With Conditions
- Convert Sorted Array to Binary Search Tree
- Coordinate With Maximum Network Quality
- Corporate Flight Bookings
- Count All Possible Routes
- Count Almost Equal Pairs I
- Count Almost Equal Pairs II
- Count Alternating Subarrays
- Count Array Pairs Divisible by K
- Count Artifacts That Can Be Extracted
- Count Beautiful Splits in an Array
- Count Common Words With One Occurrence
- Count Complete Subarrays in an Array
- Count Connected Components in LCM Graph
- Count Days Without Meetings
- Count Distinct Numbers on Board
- Count Elements With Maximum Frequency
- Count Elements With Strictly Smaller and Greater Elements
- Count Equal and Divisible Pairs in an Array
- Count Fertile Pyramids in a Land
- Count Good Meals
- Count Good Triplets in an Array
- Count Good Triplets
- Count Hills and Valleys in an Array
- Count Increasing Quadruplets
- Count Items Matching a Rule
- Count Lattice Points Inside a Circle
- Count Mentions Per User
- Count Negative Numbers in a Sorted Matrix
- Count Nice Pairs in an Array
- Count Nodes With the Highest Score
- Count Non-Decreasing Subarrays After K Operations
- Count Number of Bad Pairs
- Count Number of Distinct Integers After Reverse Operations
- Count Number of Maximum Bitwise-OR Subsets
- Count Number of Nice Subarrays
- Count Number of Pairs With Absolute Difference K
- Count Number of Possible Root Nodes
- Count Number of Rectangles Containing Each Point
- Count Number of Special Subsequences
- Count Number of Teams
- Count of Interesting Subarrays
- Count of Range Sum
- Count of Smaller Numbers After Self
- Count of Sub-Multisets With Bounded Sum
- Count Pairs of Connectable Servers in a Weighted Tree Network
- Count Pairs Of Nodes
- Count Pairs of Points With Distance k
- Count Pairs Of Similar Strings
- Count Pairs That Form a Complete Day I
- Count Pairs That Form a Complete Day II
- Count Pairs Whose Sum is Less than Target
- Count Pairs With XOR in a Range
- Count Partitions with Even Sum Difference
- Count Paths With the Given XOR Value
- Count Prefix and Suffix Pairs I
- Count Prefix and Suffix Pairs II
- Count Prefixes of a Given String
- Count Primes
- Count Servers that Communicate
- Count Special Quadruplets
- Count Special Subsequences
- Count Square Submatrices with All Ones
- Count Sub Islands
- Count Subarrays of Length Three With a Condition
- Count Subarrays Where Max Element Appears at Least K Times
- Count Subarrays With Fixed Bounds
- Count Subarrays With Median K
- Count Subarrays With Score Less Than K
- Count Submatrices With All Ones
- Count Submatrices With Equal Frequency of X and Y
- Count Submatrices with Top-Left Element and Sum Less Than k
- Count Substrings That Satisfy K-Constraint II
- Count Tested Devices After Test Operations
- Count the Hidden Sequences
- Count the Number of Beautiful Subarrays
- Count the Number of Consistent Strings
- Count the Number of Fair Pairs
- Count the Number of Good Partitions
- Count the Number of Good Subarrays
- Count the Number of Incremovable Subarrays I
- Count the Number of Incremovable Subarrays II
- Count the Number of Infection Sequences
- Count the Number of Inversions
- Count the Number of Square-Free Subsets
- Count the Number of Vowel Strings in Range
- Count Triplets That Can Form Two Arrays of Equal XOR
- Count Unguarded Cells in the Grid
- Count Unhappy Friends
- Count Vowel Strings in Ranges
- Count Ways to Group Overlapping Ranges
- Count Ways to Make Array With Product
- Count Words Obtained After Adding a Letter
- Count Zero Request Servers
- Counting Words With a Given Prefix
- Course Schedule III
- Crawler Log Folder
- Create Binary Tree From Descriptions
- Create Components With Same Value
- Create Maximum Number
- Create Sorted Array through Instructions
- Create Target Array in the Given Order
- Cut Off Trees for Golf Event
- Cycle Length Queries in a Tree
- Cyclically Rotating a Grid
- Daily Temperatures
- Decode XORed Array
- Decode XORed Permutation
- Decompress Run-Length Encoded List
- Decremental String Concatenation
- Defuse the Bomb
- Degree of an Array
- Delete and Earn
- Delete Columns to Make Sorted II
- Delete Columns to Make Sorted III
- Delete Columns to Make Sorted
- Delete Duplicate Folders in System
- Delete Greatest Value in Each Row
- Delete Nodes And Return Forest
- Delete Nodes From Linked List Present in Array
- Delivering Boxes from Storage to Ports
- Describe the Painting
- Design a Food Rating System
- Design a Stack With Increment Operation
- Design an ATM Machine
- Design an Ordered Stream
- Design Bitset
- Design Browser History
- Design Circular Deque
- Design Circular Queue
- Design Front Middle Back Queue
- Design HashMap
- Design HashSet
- Design Memory Allocator
- Design Movie Rental System
- Design Neighbor Sum Service
- Design Spreadsheet
- Destination City
- Destroy Sequential Targets
- Destroying Asteroids
- Detect Cycles in 2D Grid
- Detect Pattern of Length M Repeated K or More Times
- Detect Squares
- Determine if Two Events Have Conflict
- Determine the Winner of a Bowling Game
- Determine Whether Matrix Can Be Obtained By Rotation
- Detonate the Maximum Bombs
- DI String Match
- Diagonal Traverse II
- Diagonal Traverse
- Dice Roll Simulation
- Difference Between Element Sum and Digit Sum of an Array
- Difference Between Maximum and Minimum Price Sum
- Difference Between Ones and Zeros in Row and Column
- Difference of Number of Distinct Values on Diagonals
- Disconnect Path in a Binary Matrix by at Most One Flip
- Display Table of Food Orders in a Restaurant
- Distance Between Bus Stops
- Distant Barcodes
- Distinct Prime Factors of Product of Array
- Distribute Candies
- Distribute Elements Into Two Arrays I
- Distribute Elements Into Two Arrays II
- Distribute Repeating Integers
- Divide an Array Into Subarrays With Minimum Cost I
- Divide an Array Into Subarrays With Minimum Cost II
- Divide Array in Sets of K Consecutive Numbers
- Divide Array Into Arrays With Max Difference
- Divide Array Into Equal Pairs
- Divide Intervals Into Minimum Number of Groups
- Divide Players Into Teams of Equal Skill
- Double Modular Exponentiation
- Dungeon Game
- Duplicate Zeros
- Earliest Possible Day of Full Bloom
- Earliest Second to Mark Indices I
- Earliest Second to Mark Indices II
- Eat Pizzas!
- Element Appearing More Than 25% In Sorted Array
- Eliminate Maximum Number of Monsters
- Employee Importance
- Encrypt and Decrypt Strings
- Equal Row and Column Pairs
- Equal Sum Arrays With Minimum Number of Operations
- Erect the Fence
- Escape a Large Maze
- Escape The Ghosts
- Escape the Spreading Fire
- Evaluate Division
- Evaluate Reverse Polish Notation
- Evaluate the Bracket Pairs of a String
- Exclusive Time of Functions
- Expressive Words
- Extra Characters in a String
- Fair Candy Swap
- Fair Distribution of Cookies
- Falling Squares
- Filling Bookcase Shelves
- Filter Restaurants by Vegan-Friendly, Price and Distance
- Final Array State After K Multiplication Operations I
- Final Array State After K Multiplication Operations II
- Final Prices With a Special Discount in a Shop
- Final Value of Variable After Performing Operations
- Find a Good Subset of the Matrix
- Find a Peak Element II
- Find a Safe Walk Through a Grid
- Find a Value of a Mysterious Function Closest to Target
- Find All Duplicates in an Array
- Find All Good Indices
- Find All Groups of Farmland
- Find All K-Distant Indices in an Array
- Find All Lonely Numbers in the Array
- Find All Numbers Disappeared in an Array
- Find All Possible Recipes from Given Supplies
- Find And Replace in String
- Find and Replace Pattern
- Find Array Given Subset Sums
- Find Building Where Alice and Bob Can Meet
- Find Champion I
- Find Closest Number to Zero
- Find Common Characters
- Find Common Elements Between Two Arrays
- Find Duplicate File in System
- Find First and Last Position of Element in Sorted Array
- Find First Palindromic String in the Array
- Find Good Days to Rob the Bank
- Find Greatest Common Divisor of Array
- Find if Array Can Be Sorted
- Find if Digit Game Can Be Won
- Find in Mountain Array
- Find Indices of Stable Mountains
- Find Indices With Index and Value Difference I
- Find Indices With Index and Value Difference II
- Find K Closest Elements
- Find K Pairs with Smallest Sums
- Find K-th Smallest Pair Distance
- Find Kth Largest XOR Coordinate Value
- Find Latest Group of Size M
- Find Lucky Integer in an Array
- Find Maximum Non-decreasing Array Length
- Find Maximum Number of String Pairs
- Find Maximum Removals From Source String
- Find Minimum Cost to Remove Array Elements
- Find Minimum in Rotated Sorted Array II
- Find Minimum in Rotated Sorted Array
- Find Minimum Operations to Make All Elements Divisible by Three
- Find Minimum Time to Finish All Jobs
- Find Minimum Time to Reach Last Room I
- Find Minimum Time to Reach Last Room II
- Find Missing and Repeated Values
- Find Missing Observations
- Find N Unique Integers Sum up to Zero
- Find Nearest Point That Has the Same X or Y Coordinate
- Find Numbers with Even Number of Digits
- Find Occurrences of an Element in an Array
- Find Original Array From Doubled Array
- Find Palindrome With Fixed Length
- Find Peak Element
- Find Pivot Index
- Find Players With Zero or One Losses
- Find Polygon With the Largest Perimeter
- Find Products of Elements of Big Array
- Find Resultant Array After Removing Anagrams
- Find Score of an Array After Marking All Elements
- Find Servers That Handled Most Number of Requests
- Find Smallest Letter Greater Than Target
- Find Subarray With Bitwise OR Closest to K
- Find Subarrays With Equal Sum
- Find Subsequence of Length K With the Largest Sum
- Find Subtree Sizes After Changes
- Find Target Indices After Sorting Array
- Find the Array Concatenation Value
- Find the Count of Monotonic Pairs I
- Find the Count of Monotonic Pairs II
- Find the Count of Numbers Which Are Not Special
- Find the Difference of Two Arrays
- Find the Distance Value Between Two Arrays
- Find the Distinct Difference Array
- Find the Divisibility Array of a String
- Find the Duplicate Number
- Find The First Player to win K Games in a Row
- Find the Grid of Region Average
- Find the Highest Altitude
- Find the Integer Added to Array I
- Find the Integer Added to Array II
- Find the K-or of an Array
- Find the K-Sum of an Array
- Find the Kth Largest Integer in the Array
- Find the Kth Smallest Sum of a Matrix With Sorted Rows
- Find the Largest Almost Missing Integer
- Find the Largest Area of Square Inside Two Rectangles
- Find the Length of the Longest Common Prefix
- Find the Longest Equal Subarray
- Find the Longest Valid Obstacle Course at Each Position
- Find the Losers of the Circular Game
- Find the Maximum Divisibility Score
- Find the Maximum Factor Score of Array
- Find the Maximum Length of a Good Subsequence I
- Find the Maximum Length of a Good Subsequence II
- Find the Maximum Length of Valid Subsequence I
- Find the Maximum Length of Valid Subsequence II
- Find the Maximum Number of Elements in Subset
- Find the Maximum Number of Fruits Collected
- Find the Maximum Number of Marked Indices
- Find the Maximum Sequence Value of Array
- Find the Maximum Sum of Node Values
- Find the Median of the Uniqueness Array
- Find the Middle Index in Array
- Find the Minimum Amount of Time to Brew Potions
- Find the Minimum Area to Cover All Ones I
- Find the Minimum Area to Cover All Ones II
- Find the Minimum Cost Array Permutation
- Find the Most Competitive Subsequence
- Find the N-th Value After K Seconds
- Find the Number of Copy Arrays
- Find the Number of Distinct Colors Among the Balls
- Find the Number of Good Pairs I
- Find the Number of Good Pairs II
- Find the Number of Subarrays Where Boundary Elements Are Maximum
- Find the Number of Subsequences With Equal GCD
- Find the Number of Ways to Place People II
- Find the Number of Winning Players
- Find The Original Array of Prefix Xor
- Find the Peaks
- Find the Power of K-Size Subarrays I
- Find the Power of K-Size Subarrays II
- Find the Prefix Common Array of Two Arrays
- Find the Safest Path in a Grid
- Find the Score of All Prefixes of an Array
- Find the Shortest Superstring
- Find the Smallest Divisor Given a Threshold
- Find the String with LCP
- Find the Student that Will Replace the Chalk
- Find the Substring With Maximum Cost
- Find the Sum of Encrypted Integers
- Find the Sum of Subsequence Powers
- Find the Sum of the Power of All Subsequences
- Find the Town Judge
- Find the Value of the Partition
- Find the Width of Columns of a Grid
- Find the Winner of an Array Game
- Find the Winner of the Circular Game
- Find the XOR of Numbers Which Appear Twice
- Find Triangular Sum of an Array
- Find Two Non-overlapping Sub-arrays Each With Target Sum
- Find Unique Binary String
- Find Valid Matrix Given Row and Column Sums
- Find Winner on a Tic Tac Toe Game
- Find Words Containing Character
- Find Words That Can Be Formed by Characters
- Find X-Sum of All K-Long Subarrays I
- Find X-Sum of All K-Long Subarrays II
- Find Xor-Beauty of Array
- Find XOR Sum of All Pairs Bitwise AND
- Finding 3-Digit Even Numbers
- Finding Pairs With a Certain Sum
- Finding the Users Active Minutes
- First Completely Painted Row or Column
- First Day Where You Have Been in All the Rooms
- Flip Columns For Maximum Number of Equal Rows
- Flipping an Image
- Flood Fill
- Form Array by Concatenating Subarrays of Another Array
- Form Largest Integer With Digits That Add up to Target
- Form Smallest Number From Two Digit Arrays
- Four Divisors
- Frequencies of Shortest Supersequences
- Frequency of the Most Frequent Element
- Friends Of Appropriate Ages
- Frog Jump II
- Frog Jump
- Fruit Into Baskets
- Fruits Into Baskets II
- Fruits Into Baskets III
- Furthest Building You Can Reach
- Game of Life
- Gas Station
- GCD Sort of an Array
- Get Biggest Three Rhombus Sums in a Grid
- Get Maximum in Generated Array
- Get the Maximum Score
- Get Watched Videos by Your Friends
- Global and Local Inversions
- Graph Connectivity With Threshold
- Greatest Common Divisor Traversal
- Greatest Sum Divisible by Three
- Grid Game
- Grid Illumination
- Group Anagrams
- Group the People Given the Group Size They Belong To
- Groups of Special-Equivalent Strings
- Grumpy Bookstore Owner
- Guess the Word
- H-Index II
- H-Index
- Hand of Straights
- Handling Sum Queries After Update
- Happy Students
- Heaters
- Height Checker
- Height of Binary Tree After Subtree Removal Queries
- High-Access Employees
- House Robber II
- House Robber IV
- House Robber
- How Many Numbers Are Smaller Than the Current Number
- Identify the Largest Outlier in an Array
- Image Overlap
- Image Smoother
- Increasing Triplet Subsequence
- Increment Submatrices by One
- Insert Delete GetRandom O(1) - Duplicates allowed
- Insert Delete GetRandom O(1)
- Insert Interval
- Intersection of Multiple Arrays
- Interval List Intersections
- Intervals Between Identical Elements
- Invalid Transactions
- IPO
- Island Perimeter
- Jump Game II
- Jump Game III
- Jump Game IV
- Jump Game V
- Jump Game VI
- Jump Game
- K Closest Points to Origin
- K-Concatenation Maximum Sum
- K-diff Pairs in an Array
- K Divisible Elements Subarrays
- K Highest Ranked Items Within a Price Range
- K Radius Subarray Averages
- K-th Nearest Obstacle Queries
- K-th Smallest Prime Fraction
- Keep Multiplying Found Values by Two
- Keyboard Row
- Kids With the Greatest Number of Candies
- Koko Eating Bananas
- Kth Distinct String in an Array
- Kth Largest Element in an Array
- Kth Missing Positive Number
- Kth Smallest Amount With Single Denomination Combination
- Kth Smallest Element in a Sorted Matrix
- Kth Smallest Instructions
- Kth Smallest Product of Two Sorted Arrays
- Largest 1-Bordered Square
- Largest Combination With Bitwise AND Greater Than Zero
- Largest Component Size by Common Factor
- Largest Divisible Subset
- Largest Element in an Array after Merge Operations
- Largest Local Values in a Matrix
- Largest Magic Square
- Largest Multiple of Three
- Largest Number After Mutating Substring
- Largest Number At Least Twice of Others
- Largest Number
- Largest Perimeter Triangle
- Largest Plus Sign
- Largest Positive Integer That Exists With Its Negative
- Largest Rectangle in Histogram
- Largest Submatrix With Rearrangements
- Largest Sum of Averages
- Largest Time for Given Digits
- Largest Triangle Area
- Largest Values From Labels
- Last Day Where You Can Still Cross
- Last Moment Before All Ants Fall Out of a Plank
- Last Stone Weight II
- Last Stone Weight
- Last Visited Integers
- Least Number of Unique Integers after K Removals
- Left and Right Sum Differences
- Lemonade Change
- Length of Longest Fibonacci Subsequence
- Length of Longest Subarray With at Most K Frequency
- Length of Longest V-Shaped Diagonal Segment
- Length of the Longest Increasing Path
- Length of the Longest Subsequence That Sums to Target
- Length of the Longest Valid Substring
- Linked List Components
- Longest Alternating Subarray
- Longest Arithmetic Subsequence of Given Difference
- Longest Arithmetic Subsequence
- Longest Common Prefix of K Strings After Removal
- Longest Common Subpath
- Longest Common Suffix Queries
- Longest Consecutive Sequence
- Longest Continuous Increasing Subsequence
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- Longest Even Odd Subarray With Threshold
- Longest Harmonious Subsequence
- Longest Increasing Path in a Matrix
- Longest Increasing Subsequence II
- Longest Increasing Subsequence
- Longest Mountain in Array
- Longest Nice Subarray
- Longest Non-decreasing Subarray From Two Arrays
- Longest Palindrome by Concatenating Two Letter Words
- Longest Path With Different Adjacent Characters
- Longest Special Path II
- Longest Special Path
- Longest Square Streak in an Array
- Longest Strictly Increasing or Strictly Decreasing Subarray
- Longest String Chain
- Longest Subarray of 1's After Deleting One Element
- Longest Subarray With Maximum Bitwise AND
- Longest Subsequence With Decreasing Adjacent Difference
- Longest Subsequence With Limited Sum
- Longest Substring of One Repeating Character
- Longest Turbulent Subarray
- Longest Uncommon Subsequence II
- Longest Unequal Adjacent Groups Subsequence I
- Longest Unequal Adjacent Groups Subsequence II
- Longest Well-Performing Interval
- Longest Word in Dictionary through Deleting
- Longest Word in Dictionary
- Loud and Rich
- Lucky Numbers in a Matrix
- Magic Squares In Grid
- Magnetic Force Between Two Balls
- Majority Element II
- Majority Element
- Make a Square with the Same Color
- Make Array Elements Equal to Zero
- Make Array Empty
- Make Array Strictly Increasing
- Make Array Zero by Subtracting Equal Amounts
- Make Costs of Paths Equal in a Binary Tree
- Make K-Subarray Sums Equal
- Make Lexicographically Smallest Array by Swapping Elements
- Make Sum Divisible by P
- Make the XOR of All Segments Equal to Zero
- Make Two Arrays Equal by Reversing Subarrays
- Making A Large Island
- Making File Names Unique
- Map of Highest Peak
- Mark Elements on Array by Performing Queries
- Match Substring After Replacement
- Matchsticks to Square
- Matrix Cells in Distance Order
- Matrix Diagonal Sum
- Matrix Similarity After Cyclic Shifts
- Max Area of Island
- Max Chunks To Make Sorted II
- Max Chunks To Make Sorted
- Max Consecutive Ones III
- Max Consecutive Ones
- Max Dot Product of Two Subsequences
- Max Increase to Keep City Skyline
- Max Number of K-Sum Pairs
- Max Pair Sum in an Array
- Max Points on a Line
- Max Sum of a Pair With Equal Sum of Digits
- Max Sum of Rectangle No Larger Than K
- Max Value of Equation
- Maximal Rectangle
- Maximal Score After Applying K Operations
- Maximal Square
- Maximize Amount After Two Days of Conversions
- Maximize Area of Square Hole in Grid
- Maximize Consecutive Elements in an Array After Modification
- Maximize Distance to Closest Person
- Maximize Greatness of an Array
- Maximize Happiness of Selected Children
- Maximize Score After N Operations
- Maximize Score of Numbers in Ranges
- Maximize Subarray Sum After Removing All Occurrences of One Element
- Maximize Subarrays After Removing One Conflicting Pair
- Maximize Sum Of Array After K Negations
- Maximize the Distance Between Points on a Square
- Maximize the Minimum Game Score
- Maximize the Minimum Powered City
- Maximize the Profit as the Salesman
- Maximize the Topmost Element After K Moves
- Maximize the Total Height of Unique Towers
- Maximize Total Cost of Alternating Subarrays
- Maximize Value of Function in a Ball Passing Game
- Maximize Win From Two Segments
- Maximum Absolute Sum of Any Subarray
- Maximum Alternating Subsequence Sum
- Maximum Amount of Money Robot Can Earn
- Maximum and Minimum Sums of at Most Size K Subarrays
- Maximum and Minimum Sums of at Most Size K Subsequences
- Maximum AND Sum of Array
- Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- Maximum Area of Longest Diagonal Rectangle
- Maximum Area Rectangle With Point Constraints I
- Maximum Area Rectangle With Point Constraints II
- Maximum Ascending Subarray Sum
- Maximum Average Pass Ratio
- Maximum Average Subarray I
- Maximum Bags With Full Capacity of Rocks
- Maximum Balanced Subsequence Sum
- Maximum Beauty of an Array After Applying Operation
- Maximum Binary Tree
- Maximum Building Height
- Maximum Candies Allocated to K Children
- Maximum Candies You Can Get from Boxes
- Maximum Coins From K Consecutive Bags
- Maximum Compatibility Score Sum
- Maximum Consecutive Floors Without Special Floors
- Maximum Count of Positive Integer and Negative Integer
- Maximum Difference Between Adjacent Elements in a Circular Array
- Maximum Difference Between Increasing Elements
- Maximum Difference Score in a Grid
- Maximum Distance Between a Pair of Values
- Maximum Distance in Arrays
- Maximum Earnings From Taxi
- Maximum Elegance of a K-Length Subsequence
- Maximum Element After Decreasing and Rearranging
- Maximum Element-Sum of a Complete Subset of Indices
- Maximum Enemy Forts That Can Be Captured
- Maximum Energy Boost From Two Drinks
- Maximum Equal Frequency
- Maximum Erasure Value
- Maximum Frequency After Subarray Operation
- Maximum Frequency of an Element After Performing Operations I
- Maximum Frequency of an Element After Performing Operations II
- Maximum Fruits Harvested After at Most K Steps
- Maximum Gap
- Maximum Genetic Difference Query
- Maximum Good People Based on Statements
- Maximum Good Subarray Sum
- Maximum Height by Stacking Cuboids
- Maximum Height of a Triangle
- Maximum Ice Cream Bars
- Maximum Length of a Concatenated String with Unique Characters
- Maximum Length of Pair Chain
- Maximum Length of Repeated Subarray
- Maximum Length of Subarray With Positive Product
- Maximum Matching of Players With Trainers
- Maximum Matrix Sum
- Maximum Non Negative Product in a Matrix
- Maximum Number of Achievable Transfer Requests
- Maximum Number of Alloys
- Maximum Number of Coins You Can Get
- Maximum Number of Consecutive Values You Can Make
- Maximum Number of Darts Inside of a Circular Dartboard
- Maximum Number of Distinct Elements After Operations
- Maximum Number of Eaten Apples
- Maximum Number of Events That Can Be Attended II
- Maximum Number of Events That Can Be Attended
- Maximum Number of Fish in a Grid
- Maximum Number of Groups Entering a Competition
- Maximum Number of Groups Getting Fresh Donuts
- Maximum Number of Groups With Increasing Length
- Maximum Number of Integers to Choose From a Range I
- Maximum Number of Jumps to Reach the Last Index
- Maximum Number of Moves in a Grid
- Maximum Number of Moves to Kill All Pawns
- Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
- Maximum Number of Operations With the Same Score I
- Maximum Number of Operations With the Same Score II
- Maximum Number of Pairs in Array
- Maximum Number of Points From Grid Queries
- Maximum Number of Points with Cost
- Maximum Number of Removable Characters
- Maximum Number of Robots Within Budget
- Maximum Number of Tasks You Can Assign
- Maximum Number of Visible Points
- Maximum Number of Ways to Partition an Array
- Maximum Number of Weeks for Which You Can Work
- Maximum Number of Words Found in Sentences
- Maximum of Absolute Value Expression
- Maximum OR
- Maximum Palindromes After Operations
- Maximum Path Quality of a Graph
- Maximum Performance of a Team
- Maximum Points After Collecting Coins From All Nodes
- Maximum Points After Enemy Battles
- Maximum Points in an Archery Competition
- Maximum Points Inside the Square
- Maximum Points Tourist Can Earn
- Maximum Points You Can Obtain from Cards
- Maximum Population Year
- Maximum Possible Number by Binary Concatenation
- Maximum Prime Difference
- Maximum Product After K Increments
- Maximum Product Difference Between Two Pairs
- Maximum Product of Three Numbers
- Maximum Product of Two Elements in an Array
- Maximum Product of Word Lengths
- Maximum Product Subarray
- Maximum Profit in Job Scheduling
- Maximum Profit of Operating a Centennial Wheel
- Maximum Rows Covered by Columns
- Maximum Running Time of N Computers
- Maximum Score From Grid Operations
- Maximum Score from Performing Multiplication Operations
- Maximum Score of a Good Subarray
- Maximum Score of a Node Sequence
- Maximum Score of Non-overlapping Intervals
- Maximum Score Of Spliced Array
- Maximum Score Words Formed by Letters
- Maximum Segment Sum After Removals
- Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- Maximum Size of a Set After Removals
- Maximum Spending After Buying Items
- Maximum Square Area by Removing Fences From a Field
- Maximum Star Sum of a Graph
- Maximum Strength of a Group
- Maximum Strength of K Disjoint Subarrays
- Maximum Strictly Increasing Cells in a Matrix
- Maximum Strong Pair XOR I
- Maximum Strong Pair XOR II
- Maximum Students Taking Exam
- Maximum Subarray Min-Product
- Maximum Subarray Sum With Length Divisible by K
- Maximum Subarray Sum with One Deletion
- Maximum Subarray With Equal Products
- Maximum Subarray
- Maximum Subsequence Score
- Maximum Sum Circular Subarray
- Maximum Sum Obtained of Any Permutation
- Maximum Sum of 3 Non-Overlapping Subarrays
- Maximum Sum of Almost Unique Subarray
- Maximum Sum of an Hourglass
- Maximum Sum of Distinct Subarrays With Length K
- Maximum Sum of Subsequence With Non-adjacent Elements
- Maximum Sum of Two Non-Overlapping Subarrays
- Maximum Sum Queries
- Maximum Sum With at Most K Elements
- Maximum Sum With Exactly K Elements
- Maximum Tastiness of Candy Basket
- Maximum Total Beauty of the Gardens
- Maximum Total Damage With Spell Casting
- Maximum Total Reward Using Operations I
- Maximum Total Reward Using Operations II
- Maximum Trailing Zeros in a Cornered Path
- Maximum Unique Subarray Sum After Deletion
- Maximum Units on a Truck
- Maximum Value of a String in an Array
- Maximum Value of an Ordered Triplet I
- Maximum Value of an Ordered Triplet II
- Maximum Value of K Coins From Piles
- Maximum Value Sum by Placing Three Rooks I
- Maximum Value Sum by Placing Three Rooks II
- Maximum White Tiles Covered by a Carpet
- Maximum Width Ramp
- Maximum XOR After Operations
- Maximum XOR for Each Query
- Maximum XOR of Two Numbers in an Array
- Maximum XOR Score Subarray Queries
- Maximum XOR With an Element From Array
- Mean of Array After Removing Some Elements
- Median of Two Sorted Arrays
- Meeting Rooms III
- Merge Intervals
- Merge Similar Items
- Merge Sorted Array
- Merge Triplets to Form Target Triplet
- Merge Two 2D Arrays by Summing Values
- Mice and Cheese
- Min Cost Climbing Stairs
- Min Cost to Connect All Points
- Min Max Game
- Minesweeper
- Minimize Deviation in Array
- Minimize Hamming Distance After Swap Operations
- Minimize Length of Array Using Operations
- Minimize Malware Spread II
- Minimize Malware Spread
- Minimize Manhattan Distances
- Minimize Maximum of Array
- Minimize Maximum Pair Sum in Array
- Minimize OR of Remaining Elements Using Operations
- Minimize the Difference Between Target and Chosen Elements
- Minimize the Maximum Adjacent Element Difference
- Minimize the Maximum Difference of Pairs
- Minimize the Total Price of the Trips
- Minimized Maximum of Products Distributed to Any Store
- Minimum Absolute Difference Between Elements With Constraint
- Minimum Absolute Difference Queries
- Minimum Absolute Difference
- Minimum Absolute Sum Difference
- Minimum Adjacent Swaps for K Consecutive Ones
- Minimum Amount of Damage Dealt to Bob
- Minimum Amount of Time to Collect Garbage
- Minimum Amount of Time to Fill Cups
- Minimum Area Rectangle II
- Minimum Area Rectangle
- Minimum Array Changes to Make Differences Equal
- Minimum Array Length After Pair Removals
- Minimum Array Sum
- Minimum Average Difference
- Minimum Average of Smallest and Largest Elements
- Minimum Common Value
- Minimum Consecutive Cards to Pick Up
- Minimum Cost for Cutting Cake I
- Minimum Cost for Cutting Cake II
- Minimum Cost For Tickets
- Minimum Cost Homecoming of a Robot in a Grid
- Minimum Cost of a Path With Special Roads
- Minimum Cost of Buying Candies With Discount
- Minimum Cost to Connect Two Groups of Points
- Minimum Cost to Convert String I
- Minimum Cost to Convert String II
- Minimum Cost to Cut a Stick
- Minimum Cost to Equalize Array
- Minimum Cost to Hire K Workers
- Minimum Cost to Make Array Equal
- Minimum Cost to Make Array Equalindromic
- Minimum Cost to Make Arrays Identical
- Minimum Cost to Make at Least One Valid Path in a Grid
- Minimum Cost to Merge Stones
- Minimum Cost to Move Chips to The Same Position
- Minimum Cost to Reach Destination in Time
- Minimum Cost to Split an Array
- Minimum Cost Tree From Leaf Values
- Minimum Cost Walk in Weighted Graph
- Minimum Deletions to Make Array Beautiful
- Minimum Deletions to Make Array Divisible
- Minimum Difference Between Highest and Lowest of K Scores
- Minimum Difference Between Largest and Smallest Value in Three Moves
- Minimum Difference in Sums After Removal of Elements
- Minimum Difficulty of a Job Schedule
- Minimum Distance to the Target Element
- Minimum Division Operations to Make Array Non Decreasing
- Minimum Domino Rotations For Equal Row
- Minimum Edge Weight Equilibrium Queries in a Tree
- Minimum Element After Replacement With Digit Sum
- Minimum Elements to Add to Form a Given Sum
- Minimum Equal Sum of Two Arrays After Replacing Zeros
- Minimum Falling Path Sum II
- Minimum Falling Path Sum
- Minimum Hours of Training to Win a Competition
- Minimum Impossible OR
- Minimum Incompatibility
- Minimum Increment Operations to Make Array Beautiful
- Minimum Increment to Make Array Unique
- Minimum Increments for Target Multiples in an Array
- Minimum Index of a Valid Split
- Minimum Index Sum of Two Lists
- Minimum Initial Energy to Finish Tasks
- Minimum Interval to Include Each Query
- Minimum Jumps to Reach Home
- Minimum Levels to Gain More Points
- Minimum Limit of Balls in a Bag
- Minimum Lines to Represent a Line Chart
- Minimum Money Required Before Transactions
- Minimum Moves to Equal Array Elements II
- Minimum Moves to Equal Array Elements
- Minimum Moves to Make Array Complementary
- Minimum Moves to Move a Box to Their Target Location
- Minimum Moves to Pick K Ones
- Minimum Moves to Reach Target with Rotations
- Minimum Moves to Spread Stones Over Grid
- Minimum Number Game
- Minimum Number of Arrows to Burst Balloons
- Minimum Number of Coins for Fruits
- Minimum Number of Coins to be Added
- Minimum Number of Days to Disconnect Island
- Minimum Number of Days to Make m Bouquets
- Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- Minimum Number of Flips to Make Binary Grid Palindromic I
- Minimum Number of Flips to Make Binary Grid Palindromic II
- Minimum Number of Groups to Create a Valid Assignment
- Minimum Number of Increments on Subarrays to Form a Target Array
- Minimum Number of K Consecutive Bit Flips
- Minimum Number of Moves to Seat Everyone
- Minimum Number of Operations to Make All Array Elements Equal to 1
- Minimum Number of Operations to Make Array Continuous
- Minimum Number of Operations to Make Array Empty
- Minimum Number of Operations to Make Array XOR Equal to K
- Minimum Number of Operations to Make Arrays Similar
- Minimum Number of Operations to Make Elements in Array Distinct
- Minimum Number of Operations to Move All Balls to Each Box
- Minimum Number of Operations to Reinitialize a Permutation
- Minimum Number of Operations to Satisfy Conditions
- Minimum Number of People to Teach
- Minimum Number of Refueling Stops
- Minimum Number of Removals to Make Mountain Array
- Minimum Number of Seconds to Make Mountain Height Zero
- Minimum Number of Taps to Open to Water a Garden
- Minimum Number of Valid Strings to Form Target I
- Minimum Number of Valid Strings to Form Target II
- Minimum Number of Visited Cells in a Grid
- Minimum Number of Work Sessions to Finish the Tasks
- Minimum Numbers of Function Calls to Make Target Array
- Minimum Obstacle Removal to Reach Corner
- Minimum Operations to Collect Elements
- Minimum Operations to Convert Number
- Minimum Operations to Exceed Threshold Value I
- Minimum Operations to Exceed Threshold Value II
- Minimum Operations to Form Subsequence With Target Sum
- Minimum Operations to Halve Array Sum
- Minimum Operations to Make a Subsequence
- Minimum Operations to Make a Uni-Value Grid
- Minimum Operations to Make All Array Elements Equal
- Minimum Operations to Make Array Elements Zero
- Minimum Operations to Make Array Equal II
- Minimum Operations to Make Array Equal to Target
- Minimum Operations to Make Array Values Equal to K
- Minimum Operations to Make Binary Array Elements Equal to One I
- Minimum Operations to Make Binary Array Elements Equal to One II
- Minimum Operations to Make Columns Strictly Increasing
- Minimum Operations to Make Median of Array Equal to K
- Minimum Operations to Make the Array Alternating
- Minimum Operations to Make the Array Increasing
- Minimum Operations to Make the Array K-Increasing
- Minimum Operations to Maximize Last Elements in Arrays
- Minimum Operations to Reduce X to Zero
- Minimum Operations to Write the Letter Y on a Grid
- Minimum Path Cost in a Grid
- Minimum Path Sum
- Minimum Positive Sum Subarray
- Minimum Processing Time
- Minimum Rectangles to Cover Points
- Minimum Replacements to Sort the Array
- Minimum Reverse Operations
- Minimum Right Shifts to Sort the Array
- Minimum Rounds to Complete All Tasks
- Minimum Score After Removals on a Tree
- Minimum Score by Changing Two Elements
- Minimum Score Triangulation of Polygon
- Minimum Seconds to Equalize a Circular Array
- Minimum Sideway Jumps
- Minimum Size Subarray in Infinite Array
- Minimum Size Subarray Sum
- Minimum Skips to Arrive at Meeting On Time
- Minimum Space Wasted From Packaging
- Minimum Speed to Arrive on Time
- Minimum Subsequence in Non-Increasing Order
- Minimum Sum of Mountain Triplets I
- Minimum Sum of Mountain Triplets II
- Minimum Sum of Squared Difference
- Minimum Sum of Values by Dividing Array
- Minimum Swaps to Arrange a Binary Grid
- Minimum Swaps to Group All 1's Together II
- Minimum Swaps To Make Sequences Increasing
- Minimum Time Difference
- Minimum Time to Break Locks I
- Minimum Time to Complete All Tasks
- Minimum Time to Complete Trips
- Minimum Time to Finish the Race
- Minimum Time to Make Array Sum At Most x
- Minimum Time to Make Rope Colorful
- Minimum Time to Repair Cars
- Minimum Time to Visit a Cell In a Grid
- Minimum Time to Visit Disappearing Nodes
- Minimum Time Visiting All Points
- Minimum Total Cost to Make Arrays Unequal
- Minimum Total Distance Traveled
- Minimum Total Space Wasted With K Resizing Operations
- Minimum Value to Get Positive Step by Step Sum
- Minimum XOR Sum of Two Arrays
- Missing Number
- Modify the Matrix
- Monotonic Array
- Most Beautiful Item for Each Query
- Most Common Word
- Most Frequent Even Element
- Most Frequent IDs
- Most Frequent Number Following Key In an Array
- Most Frequent Prime
- Most Popular Video Creator
- Most Profit Assigning Work
- Most Profitable Path in a Tree
- Most Visited Sector in a Circular Track
- Move Zeroes
- Movement of Robots
- Moving Stones Until Consecutive II
- My Calendar I
- My Calendar II
- N-Queens
- N-Repeated Element in Size 2N Array
- Naming a Company
- Nearest Exit from Entrance in Maze
- Neighboring Bitwise XOR
- Neither Minimum nor Maximum
- Next Greater Element I
- Next Greater Element II
- Next Greater Element IV
- Next Greater Node In Linked List
- Next Permutation
- Non-decreasing Array
- Non-decreasing Subsequences
- Non-overlapping Intervals
- Number of Adjacent Elements With the Same Color
- Number of Arithmetic Triplets
- Number of Beautiful Pairs
- Number of Black Blocks
- Number of Boomerangs
- Number of Closed Islands
- Number of Different Subsequences GCDs
- Number of Distinct Averages
- Number of Employees Who Met the Target
- Number of Enclaves
- Number of Equivalent Domino Pairs
- Number of Excellent Pairs
- Number of Flowers in Full Bloom
- Number of Good Pairs
- Number of Good Paths
- Number of Great Partitions
- Number of Increasing Paths in a Grid
- Number of Islands
- Number of Laser Beams in a Bank
- Number of Lines To Write String
- Number of Longest Increasing Subsequence
- Number of Matching Subsequences
- Number of Orders in the Backlog
- Number of Pairs of Interchangeable Rectangles
- Number of Pairs of Strings With Concatenation Equal to Target
- Number of Pairs Satisfying Inequality
- Number of Paths with Max Score
- Number Of Rectangles That Can Form The Largest Square
- Number of Senior Citizens
- Number of Smooth Descent Periods of a Stock
- Number of Squareful Arrays
- Number of Strings That Appear as Substrings in Word
- Number of Students Doing Homework at a Given Time
- Number of Students Unable to Eat Lunch
- Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
- Number of Sub-arrays With Odd Sum
- Number of Subarrays That Match a Pattern I
- Number of Subarrays That Match a Pattern II
- Number of Subarrays With AND Value of K
- Number of Subarrays with Bounded Maximum
- Number of Subarrays With GCD Equal to K
- Number of Subarrays With LCM Equal to K
- Number of Submatrices That Sum to Target
- Number of Subsequences That Satisfy the Given Sum Condition
- Number of Times Binary String Is Prefix-Aligned
- Number of Unequal Triplets in Array
- Number of Valid Move Combinations On Chessboard
- Number of Valid Words for Each Puzzle
- Number of Visible People in a Queue
- Number of Ways of Cutting a Pizza
- Number of Ways to Earn Points
- Number of Ways to Form a Target String Given a Dictionary
- Number of Ways to Reorder Array to Get Same BST
- Number of Ways to Split Array
- Number of Ways to Wear Different Hats to Each Other
- Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- Number of Zero-Filled Subarrays
- Numbers At Most N Given Digit Set
- Odd Even Jump
- Odd String Difference
- Ones and Zeroes
- Online Election
- Online Majority Element In Subarray
- Open the Lock
- Operations on Tree
- Optimal Division
- Pacific Atlantic Water Flow
- Paint House III
- Paint House IV
- Painting the Walls
- Pairs of Songs With Total Durations Divisible by 60
- Palindrome Pairs
- Pancake Sorting
- Parallel Courses III
- Partition Array According to Given Pivot
- Partition Array for Maximum Sum
- Partition Array into Disjoint Intervals
- Partition Array Into Three Parts With Equal Sum
- Partition Array Into Two Arrays to Minimize Sum Difference
- Partition Array Such That Maximum Difference Is K
- Partition Equal Subset Sum
- Partition to K Equal Sum Subsets
- Pascal's Triangle II
- Pascal's Triangle
- Patching Array
- Path with Maximum Gold
- Path with Maximum Probability
- Path With Minimum Effort
- Paths in Matrix Whose Sum Is Divisible by K
- Peak Index in a Mountain Array
- Peaks in Array
- Peeking Iterator
- People Whose List of Favorite Companies Is Not a Subset of Another List
- Perfect Rectangle
- Permutations II
- Permutations IV
- Pizza With 3n Slices
- Plates Between Candles
- Plus One
- Points That Intersect With Cars
- Power of Heroes
- Predict the Winner
- Prefix and Suffix Search
- Previous Permutation With One Swap
- Prime In Diagonal
- Prime Pairs With Target Sum
- Prime Subtraction Operation
- Print Words Vertically
- Prison Cells After N Days
- Probability of a Two Boxes Having The Same Number of Distinct Balls
- Process Tasks Using Servers
- Product of Array Except Self
- Product of the Last K Numbers
- Profitable Schemes
- Projection Area of 3D Shapes
- Properties Graph
- Put Marbles in Bags
- Queens That Can Attack the King
- Queries on a Permutation With Key
- Queries on Number of Points Inside a Circle
- Query Kth Smallest Trimmed Number
- Queue Reconstruction by Height
- Rabbits in Forest
- Random Pick with Blacklist
- Random Pick with Weight
- Random Point in Non-overlapping Rectangles
- Range Addition II
- Range Frequency Queries
- Range Product Queries of Powers
- Range Sum of Sorted Subarray Sums
- Range Sum Query 2D - Immutable
- Range Sum Query - Immutable
- Range Sum Query - Mutable
- Rank Teams by Votes
- Rank Transform of a Matrix
- Rank Transform of an Array
- Reach End of Array With Max Score
- Reachable Nodes With Restrictions
- Rearrange Array Elements by Sign
- Rearrange Array to Maximize Prefix Score
- Rearranging Fruits
- Reconstruct a 2-Row Binary Matrix
- Recover the Original Array
- Rectangle Area II
- Reduce Array Size to The Half
- Reducing Dishes
- Reduction Operations to Make the Array Elements Equal
- Regions Cut By Slashes
- Relative Ranks
- Relative Sort Array
- Relocate Marbles
- Remove Boxes
- Remove Comments
- Remove Covered Intervals
- Remove Duplicates from Sorted Array II
- Remove Duplicates from Sorted Array
- Remove Element
- Remove One Element to Make the Array Strictly Increasing
- Remove Stones to Minimize the Total
- Remove Sub-Folders from the Filesystem
- Removing Minimum and Maximum From Array
- Removing Minimum Number of Magic Beans
- Reorder Data in Log Files
- Replace Elements in an Array
- Replace Elements with Greatest Element on Right Side
- Replace Non-Coprime Numbers in Array
- Replace Words
- Report Spam Message
- Reschedule Meetings for Maximum Free Time I
- Reschedule Meetings for Maximum Free Time II
- Reshape the Matrix
- Restore the Array From Adjacent Pairs
- Reveal Cards In Increasing Order
- Reverse Pairs
- Reverse Subarray To Maximize Array Value
- Reward Top K Students
- Richest Customer Wealth
- Right Triangles
- RLE Iterator
- Robot Collisions
- Rotate Array
- Rotate Function
- Rotate Image
- Rotating the Box
- Rotting Oranges
- Row With Maximum Ones
- Running Sum of 1d Array
- Russian Doll Envelopes
- Satisfiability of Equality Equations
- Score After Flipping Matrix
- Search a 2D Matrix II
- Search a 2D Matrix
- Search in Rotated Sorted Array II
- Search in Rotated Sorted Array
- Search Insert Position
- Search Suggestions System
- Select Cells in Grid With Maximum Score
- Self Crossing
- Sell Diminishing-Valued Colored Balls
- Selling Pieces of Wood
- Semi-Ordered Permutation
- Sender With Largest Word Count
- Sentence Similarity III
- Separate Squares I
- Separate Squares II
- Separate the Digits in an Array
- Set Intersection Size At Least Two
- Set Matrix Zeroes
- Set Mismatch
- Shift 2D Grid
- Shift Distance Between Two Strings
- Shifting Letters II
- Shifting Letters
- Shopping Offers
- Short Encoding of Words
- Shortest Bridge
- Shortest Completing Word
- Shortest Distance After Road Addition Queries I
- Shortest Distance After Road Addition Queries II
- Shortest Distance to a Character
- Shortest Distance to Target String in a Circular Array
- Shortest Impossible Sequence of Rolls
- Shortest Path in a Grid with Obstacles Elimination
- Shortest Path in Binary Matrix
- Shortest Path to Get All Keys
- Shortest Subarray to be Removed to Make Array Sorted
- Shortest Subarray With OR at Least K I
- Shortest Subarray With OR at Least K II
- Shortest Subarray with Sum at Least K
- Shortest Uncommon Substring in an Array
- Shortest Unsorted Continuous Subarray
- Shuffle an Array
- Shuffle String
- Shuffle the Array
- Sign of the Product of an Array
- Similar String Groups
- Simple Bank System
- Single Element in a Sorted Array
- Single Number II
- Single Number III
- Single Number
- Single-Threaded CPU
- Sliding Puzzle
- Sliding Subarray Beauty
- Sliding Window Maximum
- Sliding Window Median
- Slowest Key
- Smallest Index With Equal Value
- Smallest Missing Integer Greater Than Sequential Prefix Sum
- Smallest Missing Non-negative Integer After Operations
- Smallest Range Covering Elements from K Lists
- Smallest Range I
- Smallest Range II
- Smallest Rotation with Highest Score
- Smallest String With Swaps
- Smallest Subarrays With Maximum Bitwise OR
- Smallest Substring With Identical Characters I
- Smallest Sufficient Team
- Snakes and Ladders
- Snapshot Array
- Solving Questions With Brainpower
- Sort an Array
- Sort Array by Increasing Frequency
- Sort Array By Parity II
- Sort Array By Parity
- Sort Colors
- Sort Even and Odd Indices Independently
- Sort Integers by The Number of 1 Bits
- Sort Matrix by Diagonals
- Sort the Jumbled Numbers
- Sort the Matrix Diagonally
- Sort the People
- Sort the Students by Their Kth Score
- Sorted GCD Pair Queries
- Sorting Three Groups
- Special Array I
- Special Array II
- Special Array With X Elements Greater Than or Equal X
- Special Permutations
- Special Positions in a Binary Matrix
- Spiral Matrix II
- Spiral Matrix III
- Spiral Matrix IV
- Spiral Matrix
- Split Array into Consecutive Subsequences
- Split Array Into Maximum Number of Subarrays
- Split Array Largest Sum
- Split Array With Same Average
- Split Strings by Separator
- Split the Array to Make Coprime Products
- Split the Array
- Squares of a Sorted Array
- Stamping the Grid
- Statistics from a Large Sample
- Steps to Make Array Non-decreasing
- Stickers to Spell Word
- Stone Game II
- Stone Game III
- Stone Game IX
- Stone Game V
- Stone Game VI
- Stone Game VII
- Stone Game VIII
- Stone Game
- Strange Printer II
- Stream of Characters
- String Matching in an Array
- Subarray Product Less Than K
- Subarray Sum Equals K
- Subarray Sums Divisible by K
- Subarray With Elements Greater Than Varying Threshold
- Subarrays Distinct Element Sum of Squares I
- Subarrays Distinct Element Sum of Squares II
- Subarrays with K Different Integers
- Subdomain Visit Count
- Subrectangle Queries
- Subsequences with a Unique Middle Mode I
- Subsets II
- Subsets
- Substring With Largest Variance
- Substring XOR Queries
- Successful Pairs of Spells and Potions
- Sudoku Solver
- Sum in a Matrix
- Sum of Absolute Differences in a Sorted Array
- Sum of All Odd Length Subarrays
- Sum of All Subset XOR Totals
- Sum of Beauty in the Array
- Sum of Digit Differences of All Pairs
- Sum of Distances
- Sum of Even Numbers After Queries
- Sum of Floored Pairs
- Sum of Good Numbers
- Sum of Good Subsequences
- Sum of Imbalance Numbers of All Subarrays
- Sum of K Subarrays With Length at Least M
- Sum of Matrix After Queries
- Sum of Mutated Array Closest to Target
- Sum of Prefix Scores of Strings
- Sum of Squares of Special Elements
- Sum of Subarray Minimums
- Sum of Subarray Ranges
- Sum of Subsequence Widths
- Sum of Total Strength of Wizards
- Sum of Unique Elements
- Sum of Values at Indices With K Set Bits
- Sum of Variable Length Subarrays
- Summary Ranges
- Super Ugly Number
- Super Washing Machines
- Surface Area of 3D Shapes
- Surrounded Regions
- Swim in Rising Water
- Take Gifts From the Richest Pile
- Taking Maximum Energy From the Mystic Dungeon
- Tallest Billboard
- Target Sum
- Task Scheduler II
- Task Scheduler
- Teemo Attacking
- Text Justification
- The Employee That Worked on the Longest Task
- The k Strongest Values in an Array
- The K Weakest Rows in a Matrix
- The Latest Time to Catch a Bus
- The Number of Beautiful Subsets
- The Number of Good Subsets
- The Number of the Smallest Unoccupied Chair
- The Number of Weak Characters in the Game
- The Score of Students Solving Math Expression
- The Skyline Problem
- The Time When the Network Becomes Idle
- The Two Sneaky Numbers of Digitville
- Third Maximum Number
- Three Consecutive Odds
- Three Equal Parts
- Time Needed to Buy Tickets
- Time to Cross a Bridge
- Toeplitz Matrix
- Top K Frequent Elements
- Top K Frequent Words
- Total Cost to Hire K Workers
- Total Hamming Distance
- Transform Array by Parity
- Transform to Chessboard
- Transformed Array
- Transpose Matrix
- Trapping Rain Water II
- Trapping Rain Water
- Tree of Coprimes
- Triangle
- Triples with Bitwise AND Equal To Zero
- Truncate Sentence
- Tuple with Same Product
- Two Best Non-Overlapping Events
- Two City Scheduling
- Two Furthest Houses With Different Colors
- Two Out of Three
- Two Sum II - Input Array Is Sorted
- Two Sum
- Type of Triangle
- Uncrossed Lines
- Unique 3-Digit Even Numbers
- Unique Email Addresses
- Unique Morse Code Words
- Unique Number of Occurrences
- Unique Paths II
- Unique Paths III
- UTF-8 Validation
- Valid Boomerang
- Valid Mountain Array
- Valid Tic-Tac-Toe State
- Valid Triangle Number
- Validate Stack Sequences
- Verbal Arithmetic Puzzle
- Verifying an Alien Dictionary
- Video Stitching
- Visit Array Positions to Maximize Score
- Vowel Spellchecker
- Walking Robot Simulation
- Watering Plants II
- Watering Plants
- Ways to Make a Fair Array
- Ways to Split Array Into Good Subarrays
- Ways to Split Array Into Three Subarrays
- Where Will the Ball Fall
- Widest Vertical Area Between Two Points Containing No Points
- Wiggle Sort II
- Wiggle Subsequence
- Word Break II
- Word Break
- Word Search II
- Word Search
- Word Subsets
- Words Within Two Edits of Dictionary
- X of a Kind in a Deck of Cards
- XOR Queries of a Subarray
- Zero Array Transformation I
- Zero Array Transformation II
- Zero Array Transformation III
- Zero Array Transformation IV
- Zigzag Grid Traversal With Skip