2.01 Array

Array #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0001Two SumGoEasyO(n)O(n)47.9%
0004Median of Two Sorted ArraysGoHard33.1%
0011Container With Most WaterGoMediumO(n)O(1)53.2%
00153SumGoMediumO(n^2)O(n)❤️30.0%
00163Sum ClosestGoMediumO(n^2)O(1)❤️46.9%
00184SumGoMediumO(n^3)O(n^2)❤️36.8%
0026Remove Duplicates from Sorted ArrayGoEasyO(n)O(1)47.8%
0027Remove ElementGoEasyO(n)O(1)50.5%
0031Next PermutationGoMedium34.8%
0033Search in Rotated Sorted ArrayGoMedium37.1%
0034Find First and Last Position of Element in Sorted ArrayGoMedium39.1%
0035Search Insert PositionGoEasy42.7%
0036Valid SudokuGoMedium53.6%
0037Sudoku SolverGoHard51.8%
0039Combination SumGoMediumO(n log n)O(n)62.8%
0040Combination Sum IIGoMediumO(n log n)O(n)51.7%
0041First Missing PositiveGoHardO(n)O(n)35.3%
0042Trapping Rain WaterGoHardO(n)O(1)❤️54.6%
0045Jump Game IIGoMedium35.4%
0046PermutationsGoMedium70.2%
0047Permutations IIGoMedium52.4%
0048Rotate ImageGoMediumO(n)O(1)64.4%
0051N-QueensGoHard54.9%
0053Maximum SubarrayGoEasyO(n)O(n)49.2%
0054Spiral MatrixGoMediumO(n)O(n^2)39.5%
0055Jump GameGoMedium36.9%
0056Merge IntervalsGoMediumO(n log n)O(1)43.4%
0057Insert IntervalGoMediumO(n)O(1)36.7%
0059Spiral Matrix IIGoMediumO(n)O(n^2)60.7%
0063Unique Paths IIGoMediumO(n^2)O(n^2)36.7%
0064Minimum Path SumGoMediumO(n^2)O(n^2)58.2%
0066Plus OneGoEasy42.2%
0073Set Matrix ZeroesGoMedium46.9%
0074Search a 2D MatrixGoMedium41.1%
0075Sort ColorsGoMediumO(n)O(1)❤️53.0%
0077CombinationsGoMedium61.4%
0078SubsetsGoMediumO(n^2)O(n)❤️68.8%
0079Word SearchGoMediumO(n^2)O(n^2)❤️39.0%
0080Remove Duplicates from Sorted Array IIGoMediumO(n)O(147.9%
0081Search in Rotated Sorted Array IIGoMedium34.2%
0084Largest Rectangle in HistogramGoHardO(n)O(n)❤️39.1%
0088Merge Sorted ArrayGoEasyO(n)O(1)❤️42.4%
0090Subsets IIGoMediumO(n^2)O(n)❤️51.7%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium55.7%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium53.7%
0108Convert Sorted Array to Binary Search TreeGoEasy64.4%
0118Pascal’s TriangleGoEasy60.9%
0119Pascal’s Triangle IIGoEasy55.4%
0120TriangleGoMediumO(n^2)O(n)49.0%
0121Best Time to Buy and Sell StockGoEasyO(n)O(1)53.1%
0122Best Time to Buy and Sell Stock IIGoMediumO(n)O(1)60.9%
0128Longest Consecutive SequenceGoMedium48.1%
0130Surrounded RegionsGoMedium32.7%
0135CandyGoHard36.1%
0136Single NumberGoEasy68.0%
0137Single Number IIGoMedium55.7%
0150Evaluate Reverse Polish NotationGoMedium40.9%
0152Maximum Product SubarrayGoMediumO(n)O(1)33.7%
0153Find Minimum in Rotated Sorted ArrayGoMedium47.5%
0154Find Minimum in Rotated Sorted Array IIGoHard43.2%
0162Find Peak ElementGoMedium45.1%
0164Maximum GapGoHard40.6%
0167Two Sum II - Input Array Is SortedGoEasyO(n)O(1)57.5%
0169Majority ElementGoEasy61.6%
0174Dungeon GameGoHard35.7%
0189Rotate ArrayGoMedium37.3%
0198House RobberGoMedium45.2%
0200Number of IslandsGoMedium52.2%
0204Count PrimesGoMedium32.8%
0209Minimum Size Subarray SumGoMediumO(n)O(1)41.8%
0212Word Search IIGoHard38.4%
0213House Robber IIGoMedium38.9%
0215Kth Largest Element in an ArrayGoMedium61.6%
0216Combination Sum IIIGoMediumO(n)O(1)❤️62.8%
0217Contains DuplicateGoEasyO(n)O(n)59.2%
0218The Skyline ProblemGoHard37.9%
0219Contains Duplicate IIGoEasyO(n)O(n)40.1%
0220Contains Duplicate IIIGoMedium21.5%
0228Summary RangesGoEasy44.2%
0229Majority Element IIGoMedium40.9%
0239Sliding Window MaximumGoHard45.8%
0240Search a 2D Matrix IIGoMedium47.1%
0260Single Number IIIGoMedium66.8%
0268Missing NumberGoEasy57.9%
0274H-IndexGoMedium37.0%
0275H-Index IIGoMedium36.7%
0283Move ZeroesGoEasyO(n)O(1)59.7%
0284Peeking IteratorGoMedium52.7%
0287Find the Duplicate NumberGoMediumO(n)O(1)❤️58.3%
0300Longest Increasing SubsequenceGoMedium47.6%
0303Range Sum Query - ImmutableGoEasy53.2%
0304Range Sum Query 2D - ImmutableGoMedium45.8%
0307Range Sum Query - MutableGoMedium38.3%
0309Best Time to Buy and Sell Stock with CooldownGoMedium50.9%
0315Count of Smaller Numbers After SelfGoHard42.1%
0318Maximum Product of Word LengthsGoMedium56.1%
0322Coin ChangeGoMedium39.1%
0324Wiggle Sort IIGoMedium31.6%
0327Count of Range SumGoHard36.0%
0347Top K Frequent ElementsGoMedium63.9%
0349Intersection of Two ArraysGoEasy67.6%
0350Intersection of Two Arrays IIGoEasy53.9%
0354Russian Doll EnvelopesGoHard39.3%
0368Largest Divisible SubsetGoMedium40.1%
0373Find K Pairs with Smallest SumsGoMedium38.9%
0376Wiggle SubsequenceGoMedium43.8%
0377Combination Sum IVGoMedium48.2%
0378Kth Smallest Element in a Sorted MatrixGoMedium58.6%
0384Shuffle an ArrayGoMedium56.1%
0391Perfect RectangleGoHard31.8%
0393UTF-8 ValidationGoMedium38.9%
0399Evaluate DivisionGoMedium56.1%
0410Split Array Largest SumGoHard48.9%
0413Arithmetic SlicesGoMedium61.6%
0414Third Maximum NumberGoEasy31.1%
0416Partition Equal Subset SumGoMedium45.7%
0417Pacific Atlantic Water FlowGoMedium46.8%
0421Maximum XOR of Two Numbers in an ArrayGoMedium55.1%
0435Non-overlapping IntervalsGoMedium46.6%
0436Find Right IntervalGoMedium49.0%
0447Number of BoomerangsGoMedium53.2%
0448Find All Numbers Disappeared in an ArrayGoEasy58.2%
0453Minimum Moves to Equal Array ElementsGoMedium52.8%
04544Sum IIGoMedium55.6%
0455Assign CookiesGoEasy50.6%
0456132 PatternGoMedium30.7%
0457Circular Array LoopGoMedium31.1%
0462Minimum Moves to Equal Array Elements IIGoMedium56.2%
0463Island PerimeterGoEasy68.4%
0473Matchsticks to SquareGoMedium40.3%
0474Ones and ZeroesGoMedium44.0%
0475HeatersGoMedium34.6%
0477Total Hamming DistanceGoMedium51.6%
0480Sliding Window MedianGoHard40.3%
0485Max Consecutive OnesGoEasy54.5%
0491Increasing SubsequencesGoMedium49.7%
0493Reverse PairsGoHard29.0%
0494Target SumGoMedium45.3%
0495Teemo AttackingGoEasy56.5%
0496Next Greater Element IGoEasy68.8%
0498Diagonal TraverseGoMedium53.9%
0500Keyboard RowGoEasy67.2%
0503Next Greater Element IIGoMedium60.8%
0518Coin Change 2GoMedium55.4%
0523Continuous Subarray SumGoMedium26.3%
0524Longest Word in Dictionary through DeletingGoMedium50.7%
0525Contiguous ArrayGoMedium44.6%
0526Beautiful ArrangementGoMedium63.6%
0529MinesweeperGoMedium63.6%
0532K-diff Pairs in an ArrayGoMediumO(n)O(n)37.1%
054201 MatrixGoMedium43.2%
0554Brick WallGoMedium52.2%
0561Array Partition IGoEasy74.8%
0566Reshape the MatrixGoEasyO(n^2)O(n^2)62.0%
0575Distribute CandiesGoEasy65.2%
0581Shortest Unsorted Continuous SubarrayGoMedium33.7%
0594Longest Harmonious SubsequenceGoEasy52.2%
0598Range Addition IIGoEasy54.3%
0599Minimum Index Sum of Two ListsGoEasy52.9%
0605Can Place FlowersGoEasy31.9%
0609Find Duplicate File in SystemGoMedium63.4%
0611Valid Triangle NumberGoMedium49.3%
0622Design Circular QueueGoMedium48.2%
0628Maximum Product of Three NumbersGoEasyO(n)O(1)46.7%
0630Course Schedule IIIGoHard35.3%
0632Smallest Range Covering Elements from K ListsGoHard57.0%
0636Exclusive Time of FunctionsGoMedium58.3%
0638Shopping OffersGoMedium54.2%
0643Maximum Average Subarray IGoEasy42.9%
0645Set MismatchGoEasy41.1%
0648Replace WordsGoMedium61.1%
0658Find K Closest ElementsGoMedium43.8%
0661Image SmootherGoEasy53.4%
0665Non-decreasing ArrayGoMedium21.2%
0667Beautiful Arrangement IIGoMedium59.2%
0674Longest Continuous Increasing SubsequenceGoEasy47.6%
0682Baseball GameGoEasy68.8%
0695Max Area of IslandGoMedium68.2%
0697Degree of an ArrayGoEasy55.3%
0699Falling SquaresGoHard43.6%
0704Binary SearchGoEasy54.6%
0705Design HashSetGoEasy63.8%
0706Design HashMapGoEasy63.8%
0713Subarray Product Less Than KGoMediumO(n)O(1)42.2%
0714Best Time to Buy and Sell Stock with Transaction FeeGoMediumO(n)O(1)60.4%
07171-bit and 2-bit CharactersGoEasy46.3%
0718Maximum Length of Repeated SubarrayGoMedium51.3%
0719Find K-th Smallest Pair DistanceGoHard33.9%
0720Longest Word in DictionaryGoMedium50.3%
0721Accounts MergeGoMedium54.4%
0724Find Pivot IndexGoEasy49.5%
0733Flood FillGoEasy57.0%
0735Asteroid CollisionGoMedium44.2%
0739Daily TemperaturesGoMedium66.4%
0744Find Smallest Letter Greater Than TargetGoEasy45.8%
0746Min Cost Climbing StairsGoEasyO(n)O(1)56.2%
0752Open the LockGoMedium55.1%
0766Toeplitz MatrixGoEasyO(n)O(1)66.9%
0775Global and Local InversionsGoMedium45.7%
0778Swim in Rising WaterGoHard58.1%
0786K-th Smallest Prime FractionGoHard47.1%
0795Number of Subarrays with Bounded MaximumGoMedium52.2%
0803Bricks Falling When HitGoHard33.3%
0810Chalkboard XOR GameGoHard52.1%
0811Subdomain Visit CountGoMedium73.3%
0812Largest Triangle AreaGoEasy59.5%
0815Bus RoutesGoHard44.7%
0820Short Encoding of WordsGoMedium55.1%
0821Shortest Distance to a CharacterGoEasy70.7%
0823Binary Trees With FactorsGoMedium43.6%
0826Most Profit Assigning WorkGoMedium40.5%
0832Flipping an ImageGoEasy79.1%
0845Longest Mountain in ArrayGoMedium39.3%
0850Rectangle Area IIGoHard52.8%
0851Loud and RichGoMedium55.1%
0852Peak Index in a Mountain ArrayGoEasy71.4%
0853Car FleetGoMedium47.0%
0862Shortest Subarray with Sum at Least KGoHard25.9%
0867Transpose MatrixGoEasyO(n)O(1)61.4%
0870Advantage ShuffleGoMedium51.0%
0874Walking Robot SimulationGoMedium37.3%
0875Koko Eating BananasGoMedium54.2%
0877Stone GameGoMedium68.7%
0881Boats to Save PeopleGoMedium49.6%
0885Spiral Matrix IIIGoMedium71.9%
0888Fair Candy SwapGoEasy60.0%
0890Find and Replace PatternGoMedium75.5%
0891Sum of Subsequence WidthsGoHardO(n log n)O(1)34.1%
0892Surface Area of 3D ShapesGoEasy60.9%
0896Monotonic ArrayGoEasy58.2%
0898Bitwise ORs of SubarraysGoMedium36.2%
0904Fruit Into BasketsGoMedium43.1%
0907Sum of Subarray MinimumsGoMediumO(n)O(n)❤️33.0%
0909Snakes and LaddersGoMedium39.7%
0910Smallest Range IIGoMedium32.0%
0911Online ElectionGoMedium51.6%
0914X of a Kind in a Deck of CardsGoEasy33.6%
0916Word SubsetsGoMedium52.9%
0918Maximum Sum Circular SubarrayGoMedium35.8%
0922Sort Array By Parity IIGoEasyO(n)O(1)70.6%
09233Sum With MultiplicityGoMedium41.3%
0924Minimize Malware SpreadGoHard41.8%
0927Three Equal PartsGoHard39.2%
0928Minimize Malware Spread IIGoHard41.8%
0930Binary Subarrays With SumGoMedium47.5%
0942DI String MatchGoEasy75.1%
0946Validate Stack SequencesGoMedium65.0%
0952Largest Component Size by Common FactorGoHard40.4%
0953Verifying an Alien DictionaryGoEasy52.2%
0961N-Repeated Element in Size 2N ArrayGoEasy75.2%
0966Vowel SpellcheckerGoMedium51.7%
0969Pancake SortingGoMediumO(n)O(1)❤️69.3%
0973K Closest Points to OriginGoMedium65.7%
0976Largest Perimeter TriangleGoEasy60.0%
0977Squares of a Sorted ArrayGoEasyO(n)O(1)71.5%
0978Longest Turbulent SubarrayGoMedium47.5%
0980Unique Paths IIIGoHard79.2%
0985Sum of Even Numbers After QueriesGoMedium60.7%
0986Interval List IntersectionsGoMedium70.4%
0989Add to Array-Form of IntegerGoEasy45.2%
0990Satisfiability of Equality EquationsGoMedium49.1%
0992Subarrays with K Different IntegersGoHard52.8%
0995Minimum Number of K Consecutive Bit FlipsGoHard50.4%
0996Number of Squareful ArraysGoHard49.1%
0999Available Captures for RookGoEasy67.6%
1002Find Common CharactersGoEasy68.5%
1004Max Consecutive Ones IIIGoMedium61.8%
1005Maximize Sum Of Array After K NegationsGoEasy51.8%
1011Capacity To Ship Packages Within D DaysGoMedium62.1%
1018Binary Prefix Divisible By 5GoEasy47.5%
1019Next Greater Node In Linked ListGoMedium59.3%
1020Number of EnclavesGoMedium60.9%
1030Matrix Cells in Distance OrderGoEasy68.8%
1040Moving Stones Until Consecutive IIGoMedium54.9%
1048Longest String ChainGoMedium57.2%
1049Last Stone Weight IIGoMedium49.6%
1051Height CheckerGoEasy73.7%
1052Grumpy Bookstore OwnerGoMedium56.4%
1054Distant BarcodesGoMedium45.0%
1073Adding Two Negabinary NumbersGoMedium35.1%
1074Number of Submatrices That Sum to TargetGoHard66.0%
1089Duplicate ZerosGoEasy51.2%
1091Shortest Path in Binary MatrixGoMedium41.5%
1105Filling Bookcase ShelvesGoMedium57.8%
1122Relative Sort ArrayGoEasy67.9%
1128Number of Equivalent Domino PairsGoEasy45.9%
1157Online Majority Element In SubarrayGoHard42.0%
1160Find Words That Can Be Formed by CharactersGoEasy67.8%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium60.8%
1178Number of Valid Words for Each PuzzleGoHard46.8%
1184Distance Between Bus StopsGoEasy53.9%
1200Minimum Absolute DifferenceGoEasy67.7%
1207Unique Number of OccurrencesGoEasy72.4%
1217Minimum Cost to Move Chips to The Same PositionGoEasy70.7%
1232Check If It Is a Straight LineGoEasy42.3%
1235Maximum Profit in Job SchedulingGoHard50.5%
1239Maximum Length of a Concatenated String with Unique CharactersGoMedium50.7%
1252Cells with Odd Values in a MatrixGoEasy78.5%
1254Number of Closed IslandsGoMedium62.7%
1260Shift 2D GridGoEasy62.1%
1266Minimum Time Visiting All PointsGoEasy79.2%
1268Search Suggestions SystemGoMedium65.8%
1275Find Winner on a Tic Tac Toe GameGoEasy55.7%
1283Find the Smallest Divisor Given a ThresholdGoMedium52.4%
1287Element Appearing More Than 25% In Sorted ArrayGoEasy59.6%
1295Find Numbers with Even Number of DigitsGoEasy77.5%
1299Replace Elements with Greatest Element on Right SideGoEasy74.3%
1300Sum of Mutated Array Closest to TargetGoMedium42.4%
1304Find N Unique Integers Sum up to ZeroGoEasy76.6%
1306Jump Game IIIGoMedium61.5%
1310XOR Queries of a SubarrayGoMedium70.8%
1313Decompress Run-Length Encoded ListGoEasy85.7%
1329Sort the Matrix DiagonallyGoMedium81.4%
1337The K Weakest Rows in a MatrixGoEasy72.1%
1353Maximum Number of Events That Can Be AttendedGoMedium32.4%
1380Lucky Numbers in a MatrixGoEasy70.7%
1383Maximum Performance of a TeamGoHard41.3%
1385Find the Distance Value Between Two ArraysGoEasy66.2%
1389Create Target Array in the Given OrderGoEasy85.3%
1423Maximum Points You Can Obtain from CardsGoMedium49.5%
1437Check If All 1’s Are at Least Length K Places AwayGoEasy60.5%
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitGoMedium45.4%
1439Find the Kth Smallest Sum of a Matrix With Sorted RowsGoHard61.6%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium73.9%
1463Cherry Pickup IIGoHard68.3%
1464Maximum Product of Two Elements in an ArrayGoEasy77.6%
1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsGoMedium37.0%
1470Shuffle the ArrayGoEasy88.2%
1480Running Sum of 1d ArrayGoEasy89.2%
1482Minimum Number of Days to Make m BouquetsGoMedium54.1%
1512Number of Good PairsGoEasy87.7%
1539Kth Missing Positive NumberGoEasy55.0%
1572Matrix Diagonal SumGoEasy78.3%
1608Special Array With X Elements Greater Than or Equal XGoEasy60.9%
1619Mean of Array After Removing Some ElementsGoEasy64.5%
1629Slowest KeyGoEasy59.8%
1631Path With Minimum EffortGoMedium51.2%
1636Sort Array by Increasing FrequencyGoEasy67.9%
1640Check Array Formation Through ConcatenationGoEasy55.5%
1642Furthest Building You Can ReachGoMedium43.9%
1646Get Maximum in Generated ArrayGoEasy51.3%
1648Sell Diminishing-Valued Colored BallsGoMedium31.5%
1649Create Sorted Array through InstructionsGoHard37.1%
1652Defuse the BombGoEasy60.5%
1654Minimum Jumps to Reach HomeGoMedium25.7%
1655Distribute Repeating IntegersGoHard40.7%
1656Design an Ordered StreamGoEasy82.7%
1658Minimum Operations to Reduce X to ZeroGoMedium33.3%
1662Check If Two String Arrays are EquivalentGoEasy82.0%
1664Ways to Make a Fair ArrayGoMedium62.4%
1665Minimum Initial Energy to Finish TasksGoHard55.3%
1670Design Front Middle Back QueueGoMedium55.0%
1672Richest Customer WealthGoEasy88.2%
1673Find the Most Competitive SubsequenceGoMedium47.4%
1674Minimum Moves to Make Array ComplementaryGoMedium36.9%
1675Minimize Deviation in ArrayGoHard48.2%
1679Max Number of K-Sum PairsGoMedium53.5%
1681Minimum IncompatibilityGoHard36.6%
1684Count the Number of Consistent StringsGoEasy81.7%
1685Sum of Absolute Differences in a Sorted ArrayGoMedium64.6%
1690Stone Game VIIGoMedium58.8%
1691Maximum Height by Stacking CuboidsGoHard52.7%
1695Maximum Erasure ValueGoMedium52.2%
1696Jump Game VIGoMedium42.3%
1700Number of Students Unable to Eat LunchGoEasy67.7%
1710Maximum Units on a TruckGoEasy72.1%
1720Decode XORed ArrayGoEasy85.7%
1725Number Of Rectangles That Can Form The Largest SquareGoEasy78.7%
1732Find the Highest AltitudeGoEasy79.0%
1734Decode XORed PermutationGoMedium59.0%
1738Find Kth Largest XOR Coordinate ValueGoMedium62.6%
1744Can You Eat Your Favorite Candy on Your Favorite Day?GoMedium31.8%
1748Sum of Unique ElementsGoEasy75.1%
1752Check if Array Is Sorted and RotatedGoEasy45.2%
1818Minimum Absolute Sum DifferenceGoMedium28.3%
1846Maximum Element After Decreasing and RearrangingGoMedium56.0%
1877Minimize Maximum Pair Sum in ArrayGoMedium80.1%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

Calendar Dec 6, 2021
Edit Edit this page
本站总访问量:  次 您是本站第  位访问者