Amazon Array Questions

1093 array problems asked at Amazon interviews

Easy (243)Medium (624)Hard (226)

Questions

TitleDifficulty
Two SumEasy
Trapping Rain WaterHard
Number of IslandsMedium
Best Time to Buy and Sell StockEasy
Group AnagramsMedium
3SumMedium
Merge IntervalsMedium
Container With Most WaterMedium
Median of Two Sorted ArraysHard
Koko Eating BananasMedium
Longest Common PrefixEasy
Rotting OrangesMedium
Subarray Sum Equals KMedium
Merge Sorted ArrayEasy
Search in Rotated Sorted ArrayMedium
Top K Frequent ElementsMedium
Maximum SubarrayMedium
Longest Consecutive SequenceMedium
Majority ElementEasy
Product of Array Except SelfMedium
Jump GameMedium
House RobberMedium
Word SearchMedium
Sliding Window MaximumHard
Spiral MatrixMedium
Rotate ImageMedium
Next PermutationMedium
Analyze User Website Visit PatternMedium
Coin ChangeMedium
Task SchedulerMedium
Kth Largest Element in an ArrayMedium
Remove Duplicates from Sorted ArrayEasy
Meeting Rooms IIMedium
SubsetsMedium
Insert Delete GetRandom O(1)Medium
Find Peak ElementMedium
Pascal's TriangleEasy
Word BreakMedium
First Missing PositiveHard
Asteroid CollisionMedium
Move ZeroesEasy
Jump Game IIMedium
Sort ColorsMedium
Largest Rectangle in HistogramHard
Rotate ArrayMedium
N-QueensHard
Find First and Last Position of Element in Sorted ArrayMedium
Fruit Into BasketsMedium
Best Time to Buy and Sell Stock IIMedium
Valid SudokuMedium
4SumMedium
Identify the Largest Outlier in an ArrayMedium
Single NumberEasy
Max Consecutive Ones IIIMedium
Capacity To Ship Packages Within D DaysMedium
Daily TemperaturesMedium
Search a 2D MatrixMedium
Single Element in a Sorted ArrayMedium
Set Matrix ZeroesMedium
Search Insert PositionEasy
Contains DuplicateEasy
Remove ElementEasy
Find the Duplicate NumberMedium
Next Greater Element IIMedium
Missing NumberEasy
Word Search IIHard
CandyHard
PermutationsMedium
Gas StationMedium
Combination SumMedium
Two Sum II - Input Array Is SortedMedium
Concatenated WordsHard
Maximum Product SubarrayMedium
Flood FillEasy
Longest Increasing SubsequenceMedium
Next Greater Element IEasy
Word Break IIHard
Plus OneEasy
Partition Equal Subset SumMedium
Maximum Profit in Job SchedulingHard
3Sum ClosestMedium
Search a 2D Matrix IIMedium
Sum of Subarray MinimumsMedium
Intersection of Two ArraysEasy
Split Array Largest SumHard
Evaluate DivisionMedium
Largest NumberMedium
Contains Duplicate IIEasy
Plates Between CandlesMedium
Max Consecutive OnesEasy
K Closest Points to OriginMedium
Check if Array Is Sorted and RotatedEasy
Sudoku SolverHard
Maximum Frequency After Subarray OperationMedium
Minimum Size Subarray SumMedium
Evaluate Reverse Polish NotationMedium
Search Suggestions SystemMedium
Peak Index in a Mountain ArrayMedium
Remove Duplicates from Sorted Array IIMedium
Make Array Zero by Subtracting Equal AmountsEasy
Count PrimesMedium
Subarrays with K Different IntegersHard
Find Minimum in Rotated Sorted ArrayMedium
Concatenation of ArrayEasy
Construct Binary Tree from Preorder and Inorder TraversalMedium
Random Pick with WeightMedium
Surrounded RegionsMedium
Find K Closest ElementsMedium
Minimum Health to Beat GameMedium
Pacific Atlantic Water FlowMedium
Minimum Path SumMedium
Rearrange Array Elements by SignMedium
Top K Frequent WordsMedium
Subsets IIMedium
Target SumMedium
Reverse PairsHard
Min Cost Climbing StairsEasy
Maximal RectangleHard
Squares of a Sorted ArrayEasy
Binary SearchEasy
Boats to Save PeopleMedium
Majority Element IIMedium
Minimum Number of Days to Make m BouquetsMedium
Find Triangular Sum of an ArrayMedium
Non-overlapping IntervalsMedium
Frequency of the Most Frequent ElementMedium
Set MismatchEasy
Contiguous ArrayMedium
Snakes and LaddersMedium
Trapping Rain Water IIHard
Open the LockMedium
Maximum Width RampMedium
Furthest Building You Can ReachMedium
Sort an ArrayMedium
Smallest Range Covering Elements from K ListsHard
Kth Missing Positive NumberEasy
Design HashMapEasy
Can Place FlowersEasy
Accounts MergeMedium
House Robber IIMedium
Exclusive Time of FunctionsMedium
Making A Large IslandHard
Maximum Units on a TruckEasy
Unique Paths IIMedium
Assign CookiesEasy
Combination Sum IIMedium
TriangleMedium
01 MatrixMedium
Maximum Sum of Distinct Subarrays With Length KMedium
Sum of Total Strength of WizardsHard
Search in Rotated Sorted Array IIMedium
Maximum Average Subarray IEasy
Running Sum of 1d ArrayEasy
Russian Doll EnvelopesHard
Maximum Points You Can Obtain from CardsMedium
Design Tic-Tac-ToeMedium
Max Area of IslandMedium
Kids With the Greatest Number of CandiesEasy
Sum of Subarray RangesMedium
Find Missing and Repeated ValuesEasy
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMedium
Shortest Path in Binary MatrixMedium
Unique Number of OccurrencesEasy
Convert Sorted Array to Binary Search TreeEasy
Minimum Difference in Sums After Removal of ElementsHard
Find K Pairs with Smallest SumsMedium
Number of Distinct IslandsMedium
Maximum K to Sort a PermutationMedium
Lexicographically Smallest Negated Permutation that Sums to TargetMedium
First Unique NumberMedium
Coin Change IIMedium
Alien DictionaryHard
Maximal SquareMedium
Subarray Product Less Than KMedium
Increasing Triplet SubsequenceMedium
Diagonal TraverseMedium
Insert IntervalMedium
Bus RoutesHard
Single Number IIMedium
Design Circular QueueMedium
Find the Smallest Divisor Given a ThresholdMedium
Text JustificationHard
Minimum Number of Primes to Sum to TargetMedium
Partition Array According to Given PivotMedium
Permutations IIMedium
Burst BalloonsHard
Range Sum Query - ImmutableEasy
Maximum Number of Events That Can Be AttendedMedium
Find All Numbers Disappeared in an ArrayEasy
Reorder Data in Log FilesMedium
Rotate FunctionMedium
Minimum Falling Path SumMedium
Binary Subarrays With SumMedium
Count Square Submatrices with All OnesMedium
Replace Elements with Greatest Element on Right SideEasy
Reconstruct ItineraryHard
Put Marbles in BagsHard
Make Sum Divisible by PMedium
Find Pivot IndexEasy
Minimum Operations to Make Array Non DecreasingMedium
Dungeon GameHard
Construct Binary Search Tree from Preorder TraversalMedium
Frog JumpHard
H-IndexMedium
Third Maximum NumberEasy
Maximum Number of Groups With Increasing LengthHard
Predict the WinnerMedium
Maximum Average Pass RatioMedium
Maximum Coins From K Consecutive BagsMedium
Longest Arithmetic Sequence After Changing At Most One ElementMedium
Magnetic Force Between Two BallsMedium
Sell Diminishing-Valued Colored BallsMedium
Minimum Number of Refueling StopsHard
Count Negative Numbers in a Sorted MatrixEasy
Kth Smallest Element in a Sorted MatrixMedium
Baseball GameEasy
Maximum Number of Books You Can TakeHard
Count Number of Rectangles Containing Each PointMedium
Best Poker HandEasy
Number of Equivalent Domino PairsEasy
Max Sum of a Pair With Equal Sum of DigitsMedium
Image SmootherEasy
Sum of All Subset XOR TotalsEasy
Count Bowl SubarraysMedium
Shortest Path in a Grid with Obstacles EliminationHard
Minimum Cost to Cut a StickHard
Spiral Matrix IIMedium
Summary RangesEasy
Best Time to Buy and Sell Stock IIIHard
Find All Duplicates in an ArrayMedium
Minimum Swaps to Group All 1's Together IIMedium
Length of Longest V-Shaped Diagonal SegmentHard
Maximum Length of Pair ChainMedium
Find Minimum Time to Finish All JobsHard
The Number of the Smallest Unoccupied ChairMedium
Sort Array By Parity IIEasy
Number of Ways to Split ArrayMedium
Loud and RichMedium
Design an Expression Tree With Evaluate FunctionMedium
Find the Highest AltitudeEasy
Meeting RoomsEasy
Interval List IntersectionsMedium
Shuffle the ArrayEasy
Minimum Cost For TicketsMedium
Maximum Sum With at Most K ElementsMedium
Divide an Array Into Subarrays With Minimum Cost IEasy
Count Subarrays With Median KHard
132 PatternMedium
Lemonade ChangeEasy
Meeting Rooms IIIHard
Minimum Swaps to Avoid Forbidden ValuesHard
Shortest Subarray to be Removed to Make Array SortedMedium
Determine Whether Matrix Can Be Obtained By RotationEasy
Design Memory AllocatorMedium
Count Number of Pairs With Absolute Difference KEasy
Partition Array Such That Maximum Difference Is KMedium
Partition Array Into Two Arrays to Minimize Sum DifferenceHard
Minimum Operations to Make the Array AlternatingMedium
Pascal's Triangle IIEasy
Maximum Number of Robots Within BudgetHard
Minimum Adjacent Swaps to Make a Valid ArrayMedium
Find the K-Sum of an ArrayHard
GCD Sort of an ArrayHard
Minimum Rounds to Complete All TasksMedium
Allocate MailboxesHard
Number of Students Unable to Eat LunchEasy
Car FleetMedium
Min Cost to Connect All PointsMedium
Last Stone WeightEasy
Array PartitionEasy
Maximize Happiness of Selected ChildrenMedium
Continuous Subarray SumMedium
Find All Possible Recipes from Given SuppliesMedium
Longest Increasing Path in a MatrixHard
HeatersMedium
Maximum Erasure ValueMedium
Combination Sum IIIMedium
Super Washing MachinesHard
K-diff Pairs in an ArrayMedium
Most Common WordEasy
Uncrossed LinesMedium
Fair Distribution of CookiesMedium
MinesweeperMedium
Number of Distinct Islands IIHard
Count the Hidden SequencesMedium
Minimum Sum of Squared DifferenceMedium
Count Number of TeamsMedium
Maximum Score Words Formed by LettersHard
Number of Smooth Descent Periods of a StockMedium
Maximize Fixed Points After DeletionsHard
Max Number of K-Sum PairsMedium
Partition to K Equal Sum SubsetsMedium
Max Points on a LineHard
Trionic Array IEasy
Find K-th Smallest Pair DistanceHard
Minimum Removals to Balance ArrayMedium
Maximum Sum Circular SubarrayMedium
Check If Array Pairs Are Divisible by kMedium
Count Zero Request ServersMedium
Minimum Array SumMedium
Minimum Number of Operations to Make Elements in Array DistinctEasy
Count Covered BuildingsMedium
Design Hit CounterMedium
Shortest Subarray with Sum at Least KHard
Subarray Sums Divisible by KMedium
How Many Numbers Are Smaller Than the Current NumberEasy
Row With Maximum OnesEasy
The K Weakest Rows in a MatrixEasy
Minimum Average DifferenceMedium
Design a Food Rating SystemMedium
Minimum Number of Operations to Make Array EmptyMedium
Find Maximum Non-decreasing Array LengthHard
K Divisible Elements SubarraysMedium
Maximum Alternating Subarray SumMedium
Check for Contradictions in EquationsHard
High FiveEasy
Path With Maximum Minimum ValueMedium
Find Missing ObservationsMedium
Distant BarcodesMedium
Find the Divisibility Array of a StringMedium
Cut Off Trees for Golf EventHard
Maximum Bags With Full Capacity of RocksMedium
Find and Replace PatternMedium
Maximum Matching of Players With TrainersMedium
Smallest Subarrays With Maximum Bitwise ORMedium
Maximum Total from Optimal Activation OrderMedium
Can Make Arithmetic Progression From SequenceEasy
Maximum Element After Decreasing and RearrangingMedium
Number of Laser Beams in a BankMedium
Maximize the Profit as the SalesmanMedium
Most Frequent IDsMedium
Two Sum Less Than KEasy
Maximum Consecutive Floors Without Special FloorsMedium
Get Watched Videos by Your FriendsMedium
Build Array from PermutationEasy
Minimum Operations to Reduce X to ZeroMedium
Design Browser HistoryMedium
Battleships in a BoardMedium
Maximum Bitwise AND After Increment OperationsHard
Walls and GatesMedium
My Calendar IMedium
Unique Paths IIIHard
Delete and EarnMedium
Minimum Number of Coins to be AddedMedium
Insert Delete GetRandom O(1) - Duplicates allowedHard
Swim in Rising WaterHard
Count the Number of Fair PairsMedium
Moving Average from Data StreamEasy
Maximize Y‑Sum by Picking a Triplet of Distinct X‑ValuesMedium
Prison Cells After N DaysMedium
Missing Element in Sorted ArrayMedium
String Matching in an ArrayEasy
Maximum Number of Achievable Transfer RequestsHard
Find Minimum Time to Finish All Jobs IIMedium
Difference Between Ones and Zeros in Row and ColumnMedium
Length of the Longest Valid SubstringHard
Kth Distinct String in an ArrayEasy
Longest Common SubpathHard
Maximum Star Sum of a GraphMedium
Check if Move is LegalMedium
Optimal DivisionMedium
Time Taken to Cross the DoorHard
Sum of Beauty in the ArrayMedium
Find the Index of the Large IntegerMedium
Adding Spaces to a StringMedium
Replace Non-Coprime Numbers in ArrayHard
Decode XORed PermutationMedium
Minimum Swaps To Make Sequences IncreasingHard
Form Array by Concatenating Subarrays of Another ArrayMedium
Minimum Score After Removals on a TreeHard
Closest RoomHard
Design SQLMedium
Find Words That Can Be Formed by CharactersEasy
Find the K-or of an ArrayEasy
Find Good Days to Rob the BankMedium
Replace Elements in an ArrayMedium
Minimum Operations to Sort a PermutationMedium
Find the Length of the Longest Common PrefixMedium
Minimized Maximum of Products Distributed to Any StoreMedium
Defuse the BombEasy
IPOHard
Magic Squares In GridMedium
Maximum Matrix SumMedium
Construct Binary Tree from Inorder and Postorder TraversalMedium
Find a Peak Element IIMedium
Snapshot ArrayMedium
Maximum Candies Allocated to K ChildrenMedium
Lexicographically Maximum MEX ArrayHard
The Skyline ProblemHard
Largest Divisible SubsetMedium
Longest Subarray of 1's After Deleting One ElementMedium
Number of Subsequences That Satisfy the Given Sum ConditionMedium
Max Chunks To Make SortedMedium
Two Best Non-Overlapping EventsMedium
Game of LifeMedium
Shortest BridgeMedium
Find in Mountain ArrayHard
Maximum Subarray Sum with One DeletionMedium
Count Servers that CommunicateMedium
Valid Triangle NumberMedium
Number of Submatrices That Sum to TargetHard
Minimize the Difference Between Target and Chosen ElementsMedium
Longest Square Streak in an ArrayMedium
Count the Number of K-Big IndicesHard
Find the Substring With Maximum CostMedium
Relocate MarblesMedium
Number of Distinct AveragesEasy
Merge Operations to Turn Array Into a PalindromeMedium
Jump Game VIIIMedium
Maximal Range That Each Element Is Maximum in ItMedium
Maximum of Minimum Values in All SubarraysMedium
Count Number of Special SubsequencesHard
Index Pairs of a StringEasy
Sum of Digits in the Minimum NumberEasy
Find Xor-Beauty of ArrayMedium
Subarrays Distinct Element Sum of Squares IIHard
Largest Unique NumberEasy
Maximum Linear Stock ScoreMedium
Maximum Balanced Subsequence SumHard
Minimum Numbers of Function Calls to Make Target ArrayMedium
Count the Number of K-Free SubsetsMedium
Minimum Operations to Make the Array K-IncreasingHard
Remove Covered IntervalsMedium
Minimum Operations to Remove Adjacent Ones in MatrixHard
Find the Maximum Number of Elements in SubsetMedium
Design Front Middle Back QueueMedium
Largest Multiple of ThreeHard
Diet Plan PerformanceEasy
Append K Integers With Minimal SumMedium
Global and Local InversionsMedium
Count Ways to Make Array With ProductHard
Find the Number of Subarrays Where Boundary Elements Are MaximumHard
Maximum Sum Score of ArrayMedium
Find Nearest Point That Has the Same X or Y CoordinateEasy
Count Pairs Of NodesHard
Shift 2D GridEasy
Sort Features by PopularityMedium
Maximum Sum of Almost Unique SubarrayMedium
Minimum Average of Smallest and Largest ElementsEasy
Maximize the Beauty of the GardenHard
Numbers At Most N Given Digit SetHard
Count Triplets with Even XOR Set Bits IEasy
Minimum Money Required Before TransactionsHard
Count Triplets with Even XOR Set Bits IIMedium
Distinct Numbers in Each SubarrayMedium
Minimum Space Wasted From PackagingHard
Minimum Right Shifts to Sort the ArrayEasy
Queries on a Permutation With KeyMedium
Trionic Array IIHard
Minimum Stability Factor of ArrayHard
Maximum Capacity Within BudgetMedium
Maximum Ice Cream BarsMedium
Minimum Distance to the Target ElementEasy
Find the Prefix Common Array of Two ArraysMedium
Range Sum Query 2D - ImmutableMedium
Single Number IIIMedium
Minimum Number of Groups to Create a Valid AssignmentMedium
Max Dot Product of Two SubsequencesHard
Final Prices With a Special Discount in a ShopEasy
Maximum Product of Three NumbersEasy
Island PerimeterEasy
Count Elements With Maximum FrequencyEasy
Pairs of Songs With Total Durations Divisible by 60Medium
Minimum Cost to Merge StonesHard
Best Time to Buy and Sell Stock IVHard
Minimum Number of Arrows to Burst BalloonsMedium
Transpose MatrixEasy
Find the Town JudgeEasy
Find the Difference of Two ArraysEasy
Path With Minimum EffortMedium
Find the Median of the Uniqueness ArrayHard
Course Schedule IIIHard
Delete Nodes From Linked List Present in ArrayMedium
House Robber IVMedium
Number of Zero-Filled SubarraysMedium
Avoid Flood in The CityMedium
Longest Harmonious SubsequenceEasy
Guess the WordHard
Car PoolingMedium
Minimum Difficulty of a Job ScheduleHard
Count Vowel Strings in RangesMedium
Find Winner on a Tic Tac Toe GameEasy
Encode and Decode StringsMedium
Remove Sub-Folders from the FilesystemMedium
Minimum Time to Activate StringMedium
Maximum Median Sum of Subsequences of Size 3Medium
Minimize Array Sum Using Divisible ReplacementsMedium
Create Binary Tree From DescriptionsMedium
Parallel Courses IIIHard
Find Common CharactersEasy
Separate Squares IMedium
Intersection of Two Arrays IIEasy
Number of Good PairsEasy
Sort Array by Increasing FrequencyEasy
Count of Smaller Numbers After SelfHard
Find the Maximum Length of Valid Subsequence IMedium
Number of Visible People in a QueueHard
Valid Mountain ArrayEasy
Nearest Exit from Entrance in MazeMedium
Successful Pairs of Spells and PotionsMedium
Count Number of Bad PairsMedium
Minimum Difference Between Highest and Lowest of K ScoresEasy
Find the Minimum Area to Cover All Ones IIHard
Greatest Sum Divisible by ThreeMedium
Count Subarrays of Length Three With a ConditionEasy
Find N Unique Integers Sum up to ZeroEasy
Minimum Cost to Connect SticksMedium
Threshold Majority QueriesHard
Maximum Calories Burnt from JumpsMedium
Maximize Points After Choosing K TasksMedium
Total Sum of Interaction Cost in Tree GroupsHard
Maximum Score After Binary SwapsMedium
Sum of GCD of Formed PairsMedium
Maximum Total Value of Covered IndicesMedium
Detect Cycles in 2D GridMedium
Walking Robot SimulationMedium
Rotating the BoxMedium
Find the Winner of the Circular GameMedium
Transformed ArrayEasy
Matrix Diagonal SumEasy
Sum of Absolute Differences in a Sorted ArrayMedium
Detonate the Maximum BombsMedium
Count Number of Nice SubarraysMedium
Most Beautiful Item for Each QueryMedium
Maximize Distance to Closest PersonMedium
Maximum Number of Events That Can Be Attended IIHard
Buildings With an Ocean ViewMedium
Grumpy Bookstore OwnerMedium
Minimum Difference Between Largest and Smallest Value in Three MovesMedium
Word SubsetsMedium
Finding 3-Digit Even NumbersEasy
Longest Subarray With Maximum Bitwise ANDMedium
Find All K-Distant Indices in an ArrayEasy
Maximum Performance of a TeamHard
Maximum Absolute Sum of Any SubarrayMedium
Kth Smallest Product of Two Sorted ArraysHard
Vowel SpellcheckerMedium
Reschedule Meetings for Maximum Free Time IMedium
Minimum Equal Sum of Two Arrays After Replacing ZerosMedium
Maximize Subarrays After Removing One Conflicting PairHard
Largest 1-Bordered SquareMedium
Minimum Cost to Reach Destination in TimeHard
Fruits Into Baskets IIEasy
Sliding Window MedianHard
Minimum Time DifferenceMedium
Next Greater Node In Linked ListMedium
Longest Nice SubarrayMedium
Continuous SubarraysMedium
Check If N and Its Double ExistEasy
Maximum Sum of 3 Non-Overlapping SubarraysHard
Minimum Cost to Convert String IIHard
Last Stone Weight IIMedium
Minimum Limit of Balls in a BagMedium
Maximum Number of Tasks You Can AssignHard
Unique 3-Digit Even NumbersEasy
Find Numbers with Even Number of DigitsEasy
Earliest Finish Time for Land and Water Rides IIMedium
Earliest Finish Time for Land and Water Rides IEasy
Minimum Cost of Buying Candies With DiscountEasy
Cherry Pickup IIHard
Minimum Initial Energy to Finish TasksHard
Minimum Moves to Make Array ComplementaryMedium
Jump Game IVHard
Separate Squares IIHard
Minimum Pair Removal to Sort Array IIHard
Partition Array for Maximum SumMedium
Maximum Subarray Min-ProductMedium
Arithmetic SlicesMedium
Monotonic ArrayEasy
Minimum Cost to Convert String IMedium
Count of Range SumHard
As Far from Land as PossibleMedium
Find Resultant Array After Removing AnagramsEasy
Final Value of Variable After Performing OperationsEasy
Best Time to Buy and Sell Stock with CooldownMedium
Relative RanksEasy
Find Target Indices After Sorting ArrayEasy
Maximum Product of Two Elements in an ArrayEasy
Apply Operations to an ArrayEasy
Add to Array-Form of IntegerEasy
Optimal Account BalancingHard
Find Smallest Letter Greater Than TargetEasy
Rabbits in ForestMedium
Reveal Cards In Increasing OrderMedium
Regions Cut By SlashesMedium
Invalid TransactionsMedium
Minimum Number of Operations to Move All Balls to Each BoxMedium
Shortest Distance from All BuildingsHard
Delete Columns to Make SortedEasy
Number of Sub-arrays With Odd SumMedium
Sum of Prefix Scores of StringsHard
Count Number of Maximum Bitwise-OR SubsetsMedium
Minimum Domino Rotations For Equal RowMedium
Number of Sub-arrays of Size K and Average Greater than or Equal to ThresholdMedium
Make Lexicographically Smallest Array by Swapping ElementsMedium
Length of Longest Fibonacci SubsequenceMedium
Maximum Tastiness of Candy BasketMedium
Minimize the Maximum Difference of PairsMedium
Find the Minimum Area to Cover All Ones IMedium
Maximum Subarray Sum With Length Divisible by KMedium
Maximum Difference Between Increasing ElementsEasy
Range Product Queries of PowersMedium
Set Intersection Size At Least TwoHard
Shortest Word DistanceEasy
Combination Sum IVMedium
Shortest Unsorted Continuous SubarrayMedium
Best Time to Buy and Sell Stock with Transaction FeeMedium
Maximum Length of Repeated SubarrayMedium
Hand of StraightsMedium
Filling Bookcase ShelvesMedium
Stone Game IIMedium
Minimum Number of Increments on Subarrays to Form a Target ArrayHard
Maximum Population YearEasy
Design a Stack With Increment OperationMedium
Minimum Cost to Hire K WorkersHard
Minimum Operations to Make Binary Array Elements Equal to One IMedium
Sort the Jumbled NumbersMedium
Contains Duplicate IIIHard
Valid Tic-Tac-Toe StateMedium
Sum of Unique ElementsEasy
Design Snake GameMedium
Maximum Total Damage With Spell CastingMedium
Zero Array Transformation IMedium
Sort Array By ParityEasy
Maximum Balanced ShipmentsMedium
Maximum Good Subarray SumMedium
Maximum GapMedium
N-Repeated Element in Size 2N ArrayEasy
Maximize Area of Square Hole in GridMedium
Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMedium
Construct the Minimum Bitwise Array IIMedium
Minimum Index Sum of Two ListsEasy
Longest Balanced Subarray IMedium
Find Score of an Array After Marking All ElementsMedium
Number of Pairs Satisfying InequalityHard
Minimum Increment to Make Array UniqueMedium
Wiggle Sort IIMedium
Construct Quad TreeMedium
Number of Matching SubsequencesMedium
Relative Sort ArrayEasy
Maximum Length of Subarray With Positive ProductMedium
Extra Characters in a StringMedium
Divide Array Into Arrays With Max DifferenceMedium
Count Complete Subarrays in an ArrayMedium
Divide Players Into Teams of Equal SkillMedium
Find the Maximum Length of Valid Subsequence IIMedium
Rank Transform of an ArrayEasy
Task Scheduler IIMedium
Solving Questions With BrainpowerMedium
Map of Highest PeakMedium
Adjacent Increasing Subarrays Detection IEasy
Zero Array Transformation IIMedium
Shifting Letters IIMedium
Neighboring Bitwise XORMedium
Count Hills and Valleys in an ArrayEasy
Find Duplicate File in SystemMedium
Last Day Where You Can Still CrossHard
Minimum Time to Complete TripsMedium
Find the Number of Ways to Place People IMedium
Taking Maximum Energy From the Mystic DungeonMedium
Best Time to Buy and Sell Stock VMedium
Create Maximum NumberHard
Minimum Moves to Equal Array ElementsMedium
Kill ProcessMedium
Profitable SchemesHard
Fair Candy SwapEasy
Validate Stack SequencesMedium
Verifying an Alien DictionaryEasy
Richest Customer WealthEasy
Count Pairs Whose Sum is Less than TargetEasy
Find Subsequence of Length K With the Largest SumEasy
Employee Free TimeHard
Length of the Longest Subsequence That Sums to TargetMedium
Best Sightseeing PairMedium
Minimum Subsequence in Non-Increasing OrderEasy
Number of Subarrays with Bounded MaximumMedium
Maximum Sum of Two Non-Overlapping SubarraysMedium
Minimum Time to Repair CarsMedium
Longest Continuous Increasing SubsequenceEasy
Count Submatrices With All OnesMedium
Minimum Pair Removal to Sort Array IEasy
Fruits Into Baskets IIIMedium
Maximum Number of Words Found in SentencesEasy
Smallest Missing Non-negative Integer After OperationsMedium
Maximum Score From Grid OperationsHard
First Completely Painted Row or ColumnMedium
Maximum Number of Jumps to Reach the Last IndexMedium
Robot CollisionsHard
Minimum Absolute Distance Between Mirror PairsMedium
Brick WallMedium
Jump Game IIIMedium
Maximum Height by Stacking CuboidsHard
Sort the PeopleEasy
Number of Islands IIHard
Find Unique Binary StringMedium
Sum of DistancesMedium
Longest Arithmetic SubsequenceMedium
Construct the Minimum Bitwise Array IEasy
Paint HouseMedium
Minimum Cost Path with TeleportationsHard
Largest Magic SquareMedium
Rearranging FruitsHard
Maximum Non Negative Product in a MatrixMedium
Linked List ComponentsMedium
Two Furthest Houses With Different ColorsEasy
Sliding Subarray BeautyMedium
Super Ugly NumberMedium
Delete Nodes And Return ForestMedium
Find Minimum in Rotated Sorted Array IIHard
Maximum Total Subarray Value IMedium
Count Subarrays With Fixed BoundsHard
Minimum Absolute DifferenceEasy
Shortest Distance to a CharacterEasy
Queue Reconstruction by HeightMedium
Palindrome PairsHard
Arithmetic Slices II - SubsequenceHard
Smallest Range IIMedium
Largest Perimeter TriangleEasy
Group the People Given the Group Size They Belong ToMedium
Product of the Last K NumbersMedium
Least Number of Unique Integers after K RemovalsMedium
Dot Product of Two Sparse VectorsMedium
Minimum Number of Removals to Make Mountain ArrayHard
Process Tasks Using ServersMedium
Maximum Employees to Be Invited to a MeetingHard
Escape the Spreading FireHard
4Sum IIMedium
Check if the Rectangle Corner Is ReachableHard
Largest Combination With Bitwise AND Greater Than ZeroMedium
Find Servers That Handled Most Number of RequestsHard
Minimum Obstacle Removal to Reach CornerHard
Minimum Operations to Make All Array Elements EqualMedium
Maximum Number of Removable CharactersMedium
Zigzag IteratorMedium
Rearrange Array to Maximize Prefix ScoreMedium
Minimum Score Triangulation of PolygonMedium
Minimum Cost to Make at Least One Valid Path in a GridHard
Most Profitable Path in a TreeMedium
Max Chunks To Make Sorted IIHard
Apply Operations to Make All Array Elements Equal to ZeroMedium
Construct the Lexicographically Largest Valid SequenceMedium
Design Excel Sum FormulaHard
Cherry PickupHard
Range Sum Query 2D - MutableMedium
Count Partitions With Max-Min Difference at Most KMedium
Minimum Operations to Convert All Elements to ZeroMedium
Maximum Unique Subarray Sum After DeletionEasy
Maximum Frequency of an Element After Performing Operations IMedium
Sort Matrix by DiagonalsMedium
Maximum Running Time of N ComputersHard
Get Biggest Three Rhombus Sums in a GridMedium
Find the Minimum Amount of Time to Brew PotionsMedium
Maximum Number of Distinct Elements After OperationsMedium
Find X-Sum of All K-Long Subarrays IEasy
Best Time to Buy and Sell Stock using StrategyMedium
Find Right IntervalMedium
Most Profit Assigning WorkMedium
Check If It Is a Straight LineEasy
Minimum Number of Taps to Open to Water a GardenHard
Largest Positive Integer That Exists With Its NegativeEasy
Count Subarrays Where Max Element Appears at Least K TimesMedium
Best Meeting PointHard
Bitwise ORs of SubarraysMedium
DI String MatchEasy
Paint House IVMedium
Find the Middle Index in ArrayEasy
Teemo AttackingEasy
Count Subarrays With Score Less Than KHard
Paths in Matrix Whose Sum Is Divisible by KHard
Finding the Users Active MinutesMedium
Partition Array Into Three Parts With Equal SumEasy
Sort Integers by The Number of 1 BitsEasy
Minimum Number of People to TeachMedium
Construct Product MatrixMedium
Largest Triangle AreaEasy
Maximize the Minimum Powered CityHard
Detect SquaresMedium
Make Array Elements Equal to ZeroEasy
Ones and ZeroesMedium
Delete Columns to Make Sorted IIMedium
Closest Equal Element QueriesMedium
Minimum Jumps to Reach End via Prime TeleportationMedium
Minimum Operations to Make a Uni-Value GridMedium
Jump Game IXMedium
Jump Game VHard
Longest Common Suffix QueriesHard
Minimum Number GameEasy
Reshape the MatrixEasy
Score After Flipping MatrixMedium
Left and Right Sum DifferencesEasy
Divide an Array Into Subarrays With Minimum Cost IIHard
Longest Balanced Subarray IIHard
Satisfiability of Equality EquationsMedium
Largest Submatrix With RearrangementsMedium
Maximum Amount of Money Robot Can EarnMedium
Maximum Walls Destroyed by RobotsHard
XOR After Range Multiplication Queries IIHard
Perfect RectangleHard
Happy StudentsMedium
Minimum Number of Seconds to Make Mountain Height ZeroMedium
Two City SchedulingMedium
Maximum Product of Word LengthsMedium
Shortest Distance to Target String in a Circular ArrayEasy
Merge BSTs to Create Single BSTHard
Maximum Size Subarray Sum Equals kMedium
Keyboard RowEasy
Shopping OffersMedium
Design HashSetEasy
Flipping an ImageEasy
Meeting SchedulerMedium
Duplicate ZerosEasy
Element Appearing More Than 25% In Sorted ArrayEasy
Three Consecutive OddsEasy
XOR Queries of a SubarrayMedium
Destination CityEasy
Count Good TripletsEasy
Widest Vertical Area Between Two Points Containing No PointsEasy
Check If Two String Arrays are EquivalentEasy
Remove One Element to Make the Array Strictly IncreasingEasy
Find Closest Number to ZeroEasy
Minimize Maximum of ArrayMedium
Count the Number of Good SubarraysMedium
Number of Employees Who Met the TargetEasy
Find Words Containing CharacterEasy
Longest Turbulent SubarrayMedium
Minimum Number of Moves to Seat EveryoneEasy
Degree of an ArrayEasy
Minimum Number of Operations to Make Array XOR Equal to KMedium
Minimum Number of Days to Disconnect IslandHard
Find Occurrences of an Element in an ArrayMedium
Longest Strictly Increasing or Strictly Decreasing SubarrayEasy
Minimum Time to Visit a Cell In a GridHard
Maximize Score of Numbers in RangesMedium
Minimize Max Distance to Gas StationHard
Grid GameMedium
Maximal Score After Applying K OperationsMedium
The MazeMedium
Flip Columns For Maximum Number of Equal RowsMedium
Minimum Operations to Make a SubsequenceHard
Find Building Where Alice and Bob Can MeetHard
Alternating Groups IEasy
Circular Array LoopMedium
Maximum Number of Fish in a GridMedium
Maximum Ascending Subarray SumEasy
Tuple with Same ProductMedium
Employee ImportanceMedium
Number of Pairs of Interchangeable RectanglesMedium
Find the Number of Distinct Colors Among the BallsMedium
Minimum Operations to Exceed Threshold Value IIMedium
Sentence Similarity IIMedium
Sliding PuzzleHard
Get Maximum in Generated ArrayEasy
Check if Grid can be Cut into SectionsMedium
Divide Array Into Equal PairsEasy
Finding Pairs With a Certain SumMedium
Remove BoxesHard
Number of Adjacent Elements With the Same ColorMedium
Maximum Frequency of an Element After Performing Operations IIHard
Max Pair Sum in an ArrayEasy
The Two Sneaky Numbers of DigitvilleEasy
Minimum Time to Make Rope ColorfulMedium
Check if All the Integers in a Range Are CoveredEasy
Stream of CharactersHard
Maximum Difference Between Adjacent Elements in a Circular ArrayEasy
Reschedule Meetings for Maximum Free Time IIMedium
Maximum XOR of Two Numbers in an ArrayMedium
Longest Non-decreasing Subarray From Two ArraysMedium
Maximum Fruits Harvested After at Most K StepsHard
Longest String ChainMedium
Power Grid MaintenanceMedium
Minimum Number of Operations to Make All Array Elements Equal to 1Medium
Minimum Operations to Make Array Sum Divisible by KEasy
Bag of TokensMedium
Patching ArrayHard
Shuffle an ArrayMedium
Beautiful ArrayMedium
Height CheckerEasy
Convert 1D Array Into 2D ArrayEasy
Time Needed to Buy TicketsEasy
Longest Path With Different Adjacent CharactersHard
Path with Maximum ProbabilityMedium
Sort the Matrix DiagonallyMedium
Count the Number of InversionsHard
My Calendar IIMedium
Minimum Operations to Make the Array IncreasingEasy
Escape a Large MazeHard
Find the Kth Smallest Sum of a Matrix With Sorted RowsHard
Minimum Moves to Equal Array Elements IIMedium
Find Minimum Time to Reach Last Room IIMedium
Surface Area of 3D ShapesEasy
Matchsticks to SquareMedium
Minimize Malware SpreadHard
Largest Sum of AveragesMedium
Split Array With Same AverageHard
Minimize Maximum Pair Sum in ArrayMedium
Rank Teams by VotesMedium
Minimum Time Visiting All PointsEasy
Number of Longest Increasing SubsequenceMedium
Unique Email AddressesEasy
Friends Of Appropriate AgesMedium
XOR After Range Multiplication Queries IMedium
Longest Subsequence With Limited SumEasy
Maximum and Minimum Sums of at Most Size K SubsequencesMedium
Number of Good PathsHard
Find Minimum Operations to Make All Elements Divisible by ThreeEasy
Car Fleet IIHard
Minimum Swaps to Arrange a Binary GridMedium
Sign of the Product of an ArrayEasy
Path with Maximum GoldMedium
Minimum Cost to Buy Apples IIHard
Max Sum of Rectangle No Larger Than KHard
Find Maximum Value in a Constrained SequenceMedium
Missing Number In Arithmetic ProgressionEasy
Minimum Subarray Length With Distinct Sum At Least KMedium
Count Submatrices With Equal Frequency of X and YMedium
Matrix Similarity After Cyclic ShiftsEasy
Final Element After Subarray DeletionsMedium
Minimum Distance Between Three Equal Elements IEasy
Minimum Deletions to Make Array DivisibleHard
Minimum Cost to Make Array EqualHard
Cyclically Rotating a GridMedium
Beautiful ArrangementMedium
Advantage ShuffleMedium
Spiral Matrix IIIMedium
Construct Binary Tree from Preorder and Postorder TraversalMedium
Number of EnclavesMedium
Number of Closed IslandsMedium
Create Target Array in the Given OrderEasy
Maximum Number of Coins You Can GetMedium
Sum of All Odd Length SubarraysEasy
Special Array With X Elements Greater Than or Equal XEasy
Count Items Matching a RuleEasy
Single-Threaded CPUMedium
Equal Row and Column PairsMedium
Maximum Subsequence ScoreMedium
Length of Longest Subarray With at Most K FrequencyMedium
Minimum Cost Walk in Weighted GraphHard
The Number of Beautiful SubsetsMedium
Difference Between Element Sum and Digit Sum of an ArrayEasy
Sentence Similarity IIIMedium
Average Waiting TimeMedium
Divide Intervals Into Minimum Number of GroupsMedium
Find the Number of Good Pairs IIMedium
Minimum Cost to Equalize ArrayHard
Special Array IEasy
Valid Arrangement of PairsHard
Make Two Arrays Equal by Reversing SubarraysEasy
Range Sum of Sorted Subarray SumsMedium
Minimum Interval to Include Each QueryHard
Maximum Number of Points with CostMedium
Final Array State After K Multiplication Operations IEasy
Maximum Distance in ArraysMedium
Range AdditionMedium
Subarray With Elements Greater Than Varying ThresholdHard
Count Nodes With the Highest ScoreMedium
Two Sum III - Data structure designEasy
Design Circular DequeMedium
Random Pick with BlacklistHard
Minimum Division Operations to Make Array Non DecreasingMedium
Find if Array Can Be SortedMedium
Simple Bank SystemMedium
Prime Subtraction OperationMedium
Button with Longest Push TimeEasy
Largest Element in an Array after Merge OperationsMedium
Minimum Operations to Make Array Equal to TargetHard
Maximum Strength of K Disjoint SubarraysHard
Count Days Without MeetingsMedium
Maximum Sum With Exactly K ElementsEasy
Minimum Number of Operations to Make Arrays SimilarHard
Describe the PaintingMedium
Maximize the Minimum Game ScoreHard
Maximum Possible Number by Binary ConcatenationMedium
Maximum XOR After OperationsMedium
Check if Matrix Is X-MatrixEasy
Collecting ChocolatesMedium
Maximum Value of an Ordered Triplet IIMedium
Merge Two 2D Arrays by Summing ValuesEasy
Find Common Elements Between Two ArraysEasy
Minimum Index of a Valid SplitMedium
Maximum Score of Non-overlapping IntervalsHard
Maximize Greatness of an ArrayMedium
Number of Subarrays That Match a Pattern IMedium
Two-Letter Card GameMedium
Minimum Cost to Make Arrays IdenticalMedium
Take Gifts From the Richest PileEasy
Maximum Profit From Trading StocksMedium
Count Unguarded Cells in the GridMedium
Minimum Amount of Damage Dealt to BobHard
Minimum Unique Word AbbreviationHard
Count Beautiful Splits in an ArrayMedium
Pizza With 3n SlicesHard
Maximum Value of an Ordered Triplet IEasy
Truncate SentenceEasy
Zero Array Transformation IIIMedium
Count the Number of Computer Unlocking PermutationsMedium
Find Smallest Common Element in All RowsMedium
Range Addition IIEasy
Minimum Cost to Move Chips to The Same PositionEasy
Longest Common Prefix Between Adjacent Strings After RemovalsMedium
Kth Smallest InstructionsHard
Find the Array Concatenation ValueEasy
Maximum Beauty of an Array After Applying OperationMedium
Delete Greatest Value in Each RowEasy
Find Lucky Integer in an ArrayEasy
Delete Duplicate Folders in SystemHard
Diagonal Traverse IIMedium
Stable Subarrays With Equal Boundary and Interior SumMedium
Minimize the Maximum Adjacent Element DifferenceHard
Maximum Number of Visible PointsHard
Sort the Students by Their Kth ScoreMedium
Remove Stones to Minimize the TotalMedium
Buy Two ChocolatesEasy
Number of Ways to Form a Target String Given a DictionaryHard
Falling SquaresHard
Tallest BillboardHard
Minimum Number of Work Sessions to Finish the TasksMedium
The Maze IIMedium
Maximum Size of a Set After RemovalsMedium
Minimum Operations to Write the Letter Y on a GridMedium
Erect the FenceHard
Sequence ReconstructionMedium
Longest Mountain in ArrayMedium
Sum of Perfect Square AncestorsHard
Non-decreasing SubsequencesMedium
Encrypt and Decrypt StringsHard
Longest Word in DictionaryMedium
Wiggle SortMedium
Minimum Seconds to Equalize a Circular ArrayMedium
Count Partitions with Even Sum DifferenceEasy
Shortest Distance After Road Addition Queries IMedium
Maximize Cyclic Partition ScoreHard
Binary Prefix Divisible By 5Easy
Operations on TreeMedium
Implement RouterMedium
Maximum Building HeightHard
Count Good MealsMedium
Non-decreasing ArrayMedium
Design Movie Rental SystemHard
Special Array IIMedium
Similar String GroupsHard
Minimum Number of K Consecutive Bit FlipsHard
Painting the WallsHard
Check Knight Tour ConfigurationMedium
Delete Columns to Make Sorted IIIHard
Four DivisorsMedium
Lucky Numbers in a MatrixEasy
Sparse Matrix MultiplicationMedium
Restore the Array From Adjacent PairsMedium
Find Original Array From Doubled ArrayMedium
Maximum Sum of Three Numbers Divisible by ThreeMedium
Minimum Value to Get Positive Step by Step SumEasy
Frog Jump IIMedium
Design SpreadsheetMedium
Array NestingMedium
3Sum With MultiplicityMedium
Find Greatest Common Divisor of ArrayEasy
Minimum Hours of Training to Win a CompetitionEasy
Ant on the BoundaryEasy
Maximum Number of Points From Grid QueriesHard
Unique Morse Code WordsEasy
Longest Palindrome by Concatenating Two Letter WordsMedium
Split Strings by SeparatorEasy
Special Positions in a Binary MatrixEasy
Word AbbreviationHard
Sum of Variable Length SubarraysEasy
Maximum Number of Weeks for Which You Can WorkMedium
Minimum Impossible ORMedium
Minimum Absolute Difference in Sliding SubmatrixMedium
Grid Teleportation TraversalMedium
Equal Sum Grid Partition IMedium
Stone GameMedium
The Time When the Network Becomes IdleMedium
Distribute Elements Into Two Arrays IEasy
Minimum Distance Between Three Equal Elements IIMedium
Properties GraphMedium
Final Array State After K Multiplication Operations IIHard
Minimum Total Distance TraveledHard
Words Within Two Edits of DictionaryMedium
Put Boxes Into the Warehouse IMedium
Number of Subarrays With LCM Equal to KMedium
Jump Game VIMedium
Minimum Swaps to Group All 1's TogetherMedium
Pancake SortingMedium
Smallest Index With Equal ValueEasy
Odd Even JumpHard
Find the Distinct Difference ArrayEasy
Binary Trees With FactorsMedium
Maximum Total Subarray Value IIHard
Build an Array With Stack OperationsMedium
Number of Ways to Assign Edge Weights IIHard
Find Minimum Cost to Remove Array ElementsMedium
Maximize Sum Of Array After K NegationsEasy
Collect Coins in a TreeHard

Showing 1093 questions