2.01 Array

Array #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0001Two SumGoEasyO(n)O(n)49.0%
0004Median of Two Sorted ArraysGoHard34.8%
0011Container With Most WaterGoMediumO(n)O(1)54.1%
00153SumGoMediumO(n^2)O(n)❤️31.9%
00163Sum ClosestGoMediumO(n^2)O(1)❤️46.4%
00184SumGoMediumO(n^3)O(n^2)❤️36.8%
0026Remove Duplicates from Sorted ArrayGoEasyO(n)O(1)49.9%
0027Remove ElementGoEasyO(n)O(1)51.8%
0031Next PermutationGoMedium36.9%
0033Search in Rotated Sorted ArrayGoMedium38.4%
0034Find First and Last Position of Element in Sorted ArrayGoMedium41.3%
0035Search Insert PositionGoEasy42.1%
0036Valid SudokuGoMedium56.3%
0037Sudoku SolverGoHard56.0%
0039Combination SumGoMediumO(n log n)O(n)67.0%
0040Combination Sum IIGoMediumO(n log n)O(n)53.1%
0041First Missing PositiveGoHardO(n)O(n)36.4%
0042Trapping Rain WaterGoHardO(n)O(1)❤️57.8%
0045Jump Game IIGoMedium38.2%
0046PermutationsGoMedium74.0%
0047Permutations IIGoMedium56.3%
0048Rotate ImageGoMediumO(n)O(1)68.4%
0049Group AnagramsGoMedium65.4%
0051N-QueensGoHard62.1%
0053Maximum SubarrayGoMediumO(n)O(n)49.9%
0054Spiral MatrixGoMediumO(n)O(n^2)43.0%
0055Jump GameGoMedium38.3%
0056Merge IntervalsGoMediumO(n log n)O(1)45.6%
0057Insert IntervalGoMediumO(n)O(1)37.8%
0059Spiral Matrix IIGoMediumO(n)O(n^2)66.1%
0063Unique Paths IIGoMediumO(n^2)O(n^2)38.9%
0064Minimum Path SumGoMediumO(n^2)O(n^2)60.3%
0066Plus OneGoEasy43.2%
0073Set Matrix ZeroesGoMedium49.5%
0074Search a 2D MatrixGoMedium46.2%
0075Sort ColorsGoMediumO(n)O(1)❤️56.5%
0078SubsetsGoMediumO(n^2)O(n)❤️73.1%
0079Word SearchGoMediumO(n^2)O(n^2)❤️40.0%
0080Remove Duplicates from Sorted Array IIGoMediumO(n)O(151.2%
0081Search in Rotated Sorted Array IIGoMedium35.7%
0084Largest Rectangle in HistogramGoHardO(n)O(n)❤️41.7%
0088Merge Sorted ArrayGoEasyO(n)O(1)❤️45.4%
0090Subsets IIGoMediumO(n^2)O(n)❤️54.7%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium60.1%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium56.8%
0108Convert Sorted Array to Binary Search TreeGoEasy68.4%
0118Pascal’s TriangleGoEasy68.1%
0119Pascal’s Triangle IIGoEasy59.1%
0120TriangleGoMediumO(n^2)O(n)53.5%
0121Best Time to Buy and Sell StockGoEasyO(n)O(1)54.4%
0122Best Time to Buy and Sell Stock IIGoMediumO(n)O(1)62.9%
0128Longest Consecutive SequenceGoMedium49.0%
0130Surrounded RegionsGoMedium35.3%
0135CandyGoHard40.4%
0136Single NumberGoEasy69.9%
0137Single Number IIGoMedium57.4%
0150Evaluate Reverse Polish NotationGoMedium43.9%
0152Maximum Product SubarrayGoMediumO(n)O(1)34.8%
0153Find Minimum in Rotated Sorted ArrayGoMedium48.3%
0154Find Minimum in Rotated Sorted Array IIGoHard43.3%
0162Find Peak ElementGoMedium46.1%
0164Maximum GapGoHard42.2%
0167Two Sum II - Input Array Is SortedGoMediumO(n)O(1)59.9%
0169Majority ElementGoEasy63.6%
0174Dungeon GameGoHard37.1%
0189Rotate ArrayGoMedium39.0%
0198House RobberGoMedium48.3%
0200Number of IslandsGoMedium55.2%
0204Count PrimesGoMedium33.1%
0209Minimum Size Subarray SumGoMediumO(n)O(1)44.2%
0212Word Search IIGoHard37.2%
0213House Robber IIGoMedium40.5%
0215Kth Largest Element in an ArrayGoMedium65.4%
0216Combination Sum IIIGoMediumO(n)O(1)❤️66.8%
0217Contains DuplicateGoEasyO(n)O(n)61.1%
0218The Skyline ProblemGoHard39.2%
0219Contains Duplicate IIGoEasyO(n)O(n)40.9%
0220Contains Duplicate IIIGoMedium21.7%
0228Summary RangesGoEasy46.7%
0229Majority Element IIGoMedium43.5%
0239Sliding Window MaximumGoHard46.5%
0240Search a 2D Matrix IIGoMedium50.2%
0260Single Number IIIGoMedium67.3%
0268Missing NumberGoEasy61.1%
0274H-IndexGoMedium38.0%
0275H-Index IIGoMedium37.3%
0283Move ZeroesGoEasyO(n)O(1)61.1%
0284Peeking IteratorGoMedium58.0%
0287Find the Duplicate NumberGoMediumO(n)O(1)❤️59.0%
0300Longest Increasing SubsequenceGoMedium51.2%
0303Range Sum Query - ImmutableGoEasy57.3%
0304Range Sum Query 2D - ImmutableGoMedium51.7%
0307Range Sum Query - MutableGoMedium40.6%
0309Best Time to Buy and Sell Stock with CooldownGoMedium53.9%
0315Count of Smaller Numbers After SelfGoHard42.9%
0318Maximum Product of Word LengthsGoMedium60.2%
0322Coin ChangeGoMedium41.2%
0324Wiggle Sort IIGoMedium32.7%
0327Count of Range SumGoHard36.1%
0329Longest Increasing Path in a MatrixGoHard51.8%
0347Top K Frequent ElementsGoMedium64.9%
0349Intersection of Two ArraysGoEasy69.9%
0350Intersection of Two Arrays IIGoEasy55.4%
0354Russian Doll EnvelopesGoHard38.5%
0368Largest Divisible SubsetGoMedium41.1%
0373Find K Pairs with Smallest SumsGoMedium38.4%
0376Wiggle SubsequenceGoMedium48.1%
0377Combination Sum IVGoMedium51.9%
0378Kth Smallest Element in a Sorted MatrixGoMedium61.4%
0384Shuffle an ArrayGoMedium57.5%
0391Perfect RectangleGoHard32.4%
0393UTF-8 ValidationGoMedium39.4%
0396Rotate FunctionGoMedium40.1%
0399Evaluate DivisionGoMedium59.2%
0410Split Array Largest SumGoHard52.9%
0413Arithmetic SlicesGoMedium64.9%
0414Third Maximum NumberGoEasy32.3%
0416Partition Equal Subset SumGoMedium46.7%
0417Pacific Atlantic Water FlowGoMedium51.4%
0419Battleships in a BoardGoMedium74.4%
0421Maximum XOR of Two Numbers in an ArrayGoMedium54.6%
0435Non-overlapping IntervalsGoMedium49.4%
0436Find Right IntervalGoMedium50.2%
0447Number of BoomerangsGoMedium54.5%
0448Find All Numbers Disappeared in an ArrayGoEasy59.4%
0453Minimum Moves to Equal Array ElementsGoMedium55.2%
04544Sum IIGoMedium57.2%
0455Assign CookiesGoEasy50.7%
0456132 PatternGoMedium32.4%
0457Circular Array LoopGoMedium32.0%
0462Minimum Moves to Equal Array Elements IIGoMedium60.1%
0463Island PerimeterGoEasy69.3%
0473Matchsticks to SquareGoMedium40.6%
0474Ones and ZeroesGoMedium46.7%
0475HeatersGoMedium35.9%
0477Total Hamming DistanceGoMedium52.1%
0480Sliding Window MedianGoHard41.3%
0485Max Consecutive OnesGoEasy55.7%
0491Increasing SubsequencesGoMedium51.7%
0493Reverse PairsGoHard30.7%
0494Target SumGoMedium45.4%
0495Teemo AttackingGoEasy56.9%
0496Next Greater Element IGoEasy71.0%
0498Diagonal TraverseGoMedium57.7%
0500Keyboard RowGoEasy68.7%
0503Next Greater Element IIGoMedium62.8%
0506Relative RanksGoEasy58.2%
0518Coin Change 2GoMedium59.2%
0523Continuous Subarray SumGoMedium27.6%
0524Longest Word in Dictionary through DeletingGoMedium51.1%
0525Contiguous ArrayGoMedium46.7%
0526Beautiful ArrangementGoMedium64.6%
0529MinesweeperGoMedium65.2%
0532K-diff Pairs in an ArrayGoMediumO(n)O(n)40.6%
0540Single Element in a Sorted ArrayGoMedium58.6%
054201 MatrixGoMedium44.0%
0554Brick WallGoMedium52.9%
0560Subarray Sum Equals KGoMedium44.2%
0561Array PartitionGoEasy76.3%
0566Reshape the MatrixGoEasyO(n^2)O(n^2)62.6%
0575Distribute CandiesGoEasy65.9%
0581Shortest Unsorted Continuous SubarrayGoMedium36.1%
0594Longest Harmonious SubsequenceGoEasy53.0%
0598Range Addition IIGoEasy54.9%
0599Minimum Index Sum of Two ListsGoEasy52.5%
0605Can Place FlowersGoEasy33.1%
0609Find Duplicate File in SystemGoMedium64.0%
0611Valid Triangle NumberGoMedium50.1%
0622Design Circular QueueGoMedium49.0%
0628Maximum Product of Three NumbersGoEasyO(n)O(1)46.6%
0630Course Schedule IIIGoHard40.2%
0632Smallest Range Covering Elements from K ListsGoHard59.9%
0636Exclusive Time of FunctionsGoMedium60.8%
0638Shopping OffersGoMedium54.6%
0643Maximum Average Subarray IGoEasy43.9%
0645Set MismatchGoEasy41.4%
0648Replace WordsGoMedium62.5%
0658Find K Closest ElementsGoMedium45.0%
0661Image SmootherGoEasy54.8%
0665Non-decreasing ArrayGoMedium24.0%
0667Beautiful Arrangement IIGoMedium59.5%
0674Longest Continuous Increasing SubsequenceGoEasy48.9%
0682Baseball GameGoEasy73.5%
0695Max Area of IslandGoMedium71.5%
0697Degree of an ArrayGoEasy55.8%
0699Falling SquaresGoHard44.2%
0704Binary SearchGoEasy55.2%
0705Design HashSetGoEasy66.0%
0706Design HashMapGoEasy65.2%
0713Subarray Product Less Than KGoMediumO(n)O(1)44.6%
0714Best Time to Buy and Sell Stock with Transaction FeeGoMediumO(n)O(1)63.7%
07171-bit and 2-bit CharactersGoEasy46.0%
0718Maximum Length of Repeated SubarrayGoMedium51.4%
0719Find K-th Smallest Pair DistanceGoHard35.9%
0720Longest Word in DictionaryGoMedium51.6%
0721Accounts MergeGoMedium56.2%
0724Find Pivot IndexGoEasy53.0%
0733Flood FillGoEasy59.8%
0735Asteroid CollisionGoMedium44.4%
0739Daily TemperaturesGoMedium67.7%
0744Find Smallest Letter Greater Than TargetGoEasy44.6%
0746Min Cost Climbing StairsGoEasyO(n)O(1)61.9%
0747Largest Number At Least Twice of OthersGoEasy45.9%
0748Shortest Completing WordGoEasy59.1%
0752Open the LockGoMedium55.5%
0766Toeplitz MatrixGoEasyO(n)O(1)68.1%
0775Global and Local InversionsGoMedium44.2%
0778Swim in Rising WaterGoHard59.4%
0781Rabbits in ForestGoMedium55.4%
0786K-th Smallest Prime FractionGoMedium50.2%
0794Valid Tic-Tac-Toe StateGoMedium35.2%
0795Number of Subarrays with Bounded MaximumGoMedium52.5%
0803Bricks Falling When HitGoHard34.1%
0807Max Increase to Keep City SkylineGoMedium85.8%
0810Chalkboard XOR GameGoHard54.7%
0811Subdomain Visit CountGoMedium74.8%
0812Largest Triangle AreaGoEasy59.7%
0815Bus RoutesGoHard45.7%
0820Short Encoding of WordsGoMedium60.7%
0821Shortest Distance to a CharacterGoEasy71.2%
0823Binary Trees With FactorsGoMedium50.1%
0825Friends Of Appropriate AgesGoMedium46.2%
0826Most Profit Assigning WorkGoMedium43.7%
0832Flipping an ImageGoEasy80.1%
0839Similar String GroupsGoHard47.0%
0845Longest Mountain in ArrayGoMedium40.1%
0846Hand of StraightsGoMedium56.4%
0850Rectangle Area IIGoHard53.5%
0851Loud and RichGoMedium57.6%
0852Peak Index in a Mountain ArrayGoMedium69.6%
0853Car FleetGoMedium49.6%
0862Shortest Subarray with Sum at Least KGoHard26.1%
0867Transpose MatrixGoEasyO(n)O(1)63.6%
0870Advantage ShuffleGoMedium51.5%
0874Walking Robot SimulationGoMedium38.2%
0875Koko Eating BananasGoMedium53.0%
0877Stone GameGoMedium69.5%
0881Boats to Save PeopleGoMedium52.6%
0885Spiral Matrix IIIGoMedium72.8%
0888Fair Candy SwapGoEasy60.4%
0890Find and Replace PatternGoMedium78.0%
0891Sum of Subsequence WidthsGoHardO(n log n)O(1)36.3%
0892Surface Area of 3D ShapesGoEasy62.7%
0896Monotonic ArrayGoEasy58.3%
0898Bitwise ORs of SubarraysGoMedium36.5%
0904Fruit Into BasketsGoMedium42.6%
0907Sum of Subarray MinimumsGoMediumO(n)O(n)❤️34.2%
0909Snakes and LaddersGoMedium40.7%
0910Smallest Range IIGoMedium33.9%
0911Online ElectionGoMedium51.9%
0914X of a Kind in a Deck of CardsGoEasy32.4%
0916Word SubsetsGoMedium54.3%
0918Maximum Sum Circular SubarrayGoMedium37.9%
0922Sort Array By Parity IIGoEasyO(n)O(1)70.7%
09233Sum With MultiplicityGoMedium45.5%
0924Minimize Malware SpreadGoHard42.0%
0927Three Equal PartsGoHard39.5%
0928Minimize Malware Spread IIGoHard42.4%
0930Binary Subarrays With SumGoMedium50.2%
0942DI String MatchGoEasy76.4%
0946Validate Stack SequencesGoMedium67.6%
0952Largest Component Size by Common FactorGoHard40.3%
0953Verifying an Alien DictionaryGoEasy52.6%
0961N-Repeated Element in Size 2N ArrayGoEasy75.7%
0966Vowel SpellcheckerGoMedium51.5%
0969Pancake SortingGoMediumO(n)O(1)❤️69.9%
0973K Closest Points to OriginGoMedium65.9%
0976Largest Perimeter TriangleGoEasy52.8%
0977Squares of a Sorted ArrayGoEasyO(n)O(1)71.8%
0978Longest Turbulent SubarrayGoMedium47.5%
0980Unique Paths IIIGoHard79.5%
0985Sum of Even Numbers After QueriesGoMedium61.1%
0986Interval List IntersectionsGoMedium71.3%
0989Add to Array-Form of IntegerGoEasy45.5%
0990Satisfiability of Equality EquationsGoMedium50.6%
0992Subarrays with K Different IntegersGoHard53.9%
0995Minimum Number of K Consecutive Bit FlipsGoHard51.1%
0996Number of Squareful ArraysGoHard49.1%
0997Find the Town JudgeGoEasy49.5%
0999Available Captures for RookGoEasy67.7%
1002Find Common CharactersGoEasy68.3%
1004Max Consecutive Ones IIIGoMedium63.4%
1005Maximize Sum Of Array After K NegationsGoEasy51.3%
1010Pairs of Songs With Total Durations Divisible by 60GoMedium53.1%
1011Capacity To Ship Packages Within D DaysGoMedium64.2%
1018Binary Prefix Divisible By 5GoEasy47.5%
1019Next Greater Node In Linked ListGoMedium59.8%
1020Number of EnclavesGoMedium64.2%
1030Matrix Cells in Distance OrderGoEasy69.3%
1034Coloring A BorderGoMedium48.9%
1037Valid BoomerangGoEasy37.5%
1040Moving Stones Until Consecutive IIGoMedium55.6%
1048Longest String ChainGoMedium59.2%
1049Last Stone Weight IIGoMedium52.0%
1051Height CheckerGoEasy74.8%
1052Grumpy Bookstore OwnerGoMedium56.9%
1054Distant BarcodesGoMedium45.6%
1073Adding Two Negabinary NumbersGoMedium36.2%
1074Number of Submatrices That Sum to TargetGoHard69.8%
1089Duplicate ZerosGoEasy51.4%
1091Shortest Path in Binary MatrixGoMedium44.5%
1105Filling Bookcase ShelvesGoMedium58.6%
1122Relative Sort ArrayGoEasy68.4%
1128Number of Equivalent Domino PairsGoEasy46.7%
1157Online Majority Element In SubarrayGoHard42.1%
1160Find Words That Can Be Formed by CharactersGoEasy67.8%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium61.2%
1178Number of Valid Words for Each PuzzleGoHard46.6%
1184Distance Between Bus StopsGoEasy54.1%
1200Minimum Absolute DifferenceGoEasy69.8%
1207Unique Number of OccurrencesGoEasy71.3%
1217Minimum Cost to Move Chips to The Same PositionGoEasy72.3%
1232Check If It Is a Straight LineGoEasy41.4%
1235Maximum Profit in Job SchedulingGoHard50.9%
1239Maximum Length of a Concatenated String with Unique CharactersGoMedium50.6%
1252Cells with Odd Values in a MatrixGoEasy78.5%
1254Number of Closed IslandsGoMedium64.1%
1260Shift 2D GridGoEasy68.0%
1266Minimum Time Visiting All PointsGoEasy79.2%
1268Search Suggestions SystemGoMedium66.8%
1275Find Winner on a Tic Tac Toe GameGoEasy54.4%
1283Find the Smallest Divisor Given a ThresholdGoMedium54.9%
1287Element Appearing More Than 25% In Sorted ArrayGoEasy59.5%
1293Shortest Path in a Grid with Obstacles EliminationGoHard43.6%
1295Find Numbers with Even Number of DigitsGoEasy77.0%
1296Divide Array in Sets of K Consecutive NumbersGoMedium56.6%
1299Replace Elements with Greatest Element on Right SideGoEasy74.6%
1300Sum of Mutated Array Closest to TargetGoMedium43.0%
1304Find N Unique Integers Sum up to ZeroGoEasy77.1%
1306Jump Game IIIGoMedium63.0%
1310XOR Queries of a SubarrayGoMedium71.9%
1313Decompress Run-Length Encoded ListGoEasy85.9%
1329Sort the Matrix DiagonallyGoMedium83.6%
1337The K Weakest Rows in a MatrixGoEasy73.4%
1353Maximum Number of Events That Can Be AttendedGoMedium33.0%
1380Lucky Numbers in a MatrixGoEasy70.6%
1383Maximum Performance of a TeamGoHard41.6%
1385Find the Distance Value Between Two ArraysGoEasy65.3%
1389Create Target Array in the Given OrderGoEasy85.8%
1423Maximum Points You Can Obtain from CardsGoMedium52.3%
1437Check If All 1’s Are at Least Length K Places AwayGoEasy59.4%
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitGoMedium47.7%
1439Find the Kth Smallest Sum of a Matrix With Sorted RowsGoHard61.4%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium75.4%
1463Cherry Pickup IIGoHard70.3%
1464Maximum Product of Two Elements in an ArrayGoEasy79.1%
1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsGoMedium40.8%
1470Shuffle the ArrayGoEasy88.5%
1480Running Sum of 1d ArrayGoEasy90.2%
1482Minimum Number of Days to Make m BouquetsGoMedium56.8%
1512Number of Good PairsGoEasy88.1%
1539Kth Missing Positive NumberGoEasy55.8%
1572Matrix Diagonal SumGoEasy79.6%
1608Special Array With X Elements Greater Than or Equal XGoEasy60.2%
1619Mean of Array After Removing Some ElementsGoEasy64.5%
1629Slowest KeyGoEasy59.5%
1631Path With Minimum EffortGoMedium55.3%
1636Sort Array by Increasing FrequencyGoEasy68.4%
1640Check Array Formation Through ConcatenationGoEasy56.0%
1642Furthest Building You Can ReachGoMedium48.2%
1646Get Maximum in Generated ArrayGoEasy50.3%
1648Sell Diminishing-Valued Colored BallsGoMedium30.7%
1649Create Sorted Array through InstructionsGoHard37.3%
1652Defuse the BombGoEasy61.0%
1654Minimum Jumps to Reach HomeGoMedium28.4%
1655Distribute Repeating IntegersGoHard39.7%
1656Design an Ordered StreamGoEasy84.6%
1658Minimum Operations to Reduce X to ZeroGoMedium37.6%
1662Check If Two String Arrays are EquivalentGoEasy81.8%
1664Ways to Make a Fair ArrayGoMedium63.5%
1665Minimum Initial Energy to Finish TasksGoHard56.0%
1670Design Front Middle Back QueueGoMedium56.2%
1672Richest Customer WealthGoEasy88.6%
1673Find the Most Competitive SubsequenceGoMedium49.1%
1674Minimum Moves to Make Array ComplementaryGoMedium38.4%
1675Minimize Deviation in ArrayGoHard52.2%
1679Max Number of K-Sum PairsGoMedium57.4%
1681Minimum IncompatibilityGoHard37.5%
1684Count the Number of Consistent StringsGoEasy81.9%
1685Sum of Absolute Differences in a Sorted ArrayGoMedium65.6%
1690Stone Game VIIGoMedium58.8%
1691Maximum Height by Stacking CuboidsGoHard54.3%
1695Maximum Erasure ValueGoMedium57.8%
1696Jump Game VIGoMedium46.3%
1700Number of Students Unable to Eat LunchGoEasy67.8%
1705Maximum Number of Eaten ApplesGoMedium37.3%
1710Maximum Units on a TruckGoEasy74.2%
1720Decode XORed ArrayGoEasy85.9%
1725Number Of Rectangles That Can Form The Largest SquareGoEasy78.8%
1732Find the Highest AltitudeGoEasy78.7%
1734Decode XORed PermutationGoMedium61.8%
1738Find Kth Largest XOR Coordinate ValueGoMedium61.8%
1744Can You Eat Your Favorite Candy on Your Favorite Day?GoMedium32.6%
1748Sum of Unique ElementsGoEasy75.6%
1752Check if Array Is Sorted and RotatedGoEasy49.1%
1816Truncate SentenceGoEasy81.7%
1818Minimum Absolute Sum DifferenceGoMedium30.0%
1846Maximum Element After Decreasing and RearrangingGoMedium58.8%
1877Minimize Maximum Pair Sum in ArrayGoMedium80.4%
1984Minimum Difference Between Highest and Lowest of K ScoresGoEasy53.3%
2022Convert 1D Array Into 2D ArrayGoEasy58.5%
2037Minimum Number of Moves to Seat EveryoneGoEasy82.4%
2043Simple Bank SystemGoMedium65.8%
2164Sort Even and Odd Indices IndependentlyGoEasy66.8%
2166Design BitsetGoMedium31.2%
2170Minimum Operations to Make the Array AlternatingGoMedium33.1%
2171Removing Minimum Number of Magic BeansGoMedium41.7%
2183Count Array Pairs Divisible by KGoHard27.8%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

Calendar Sep 11, 2022
Edit Edit this page
本站总访问量:  次 您是本站第  位访问者