2.01 Array

Array #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0001Two SumGoEasyO(n)O(n)48.6%
0004Median of Two Sorted ArraysGoHard34.2%
0011Container With Most WaterGoMediumO(n)O(1)54.0%
00153SumGoMediumO(n^2)O(n)❤️31.2%
00163Sum ClosestGoMediumO(n^2)O(1)❤️47.1%
00184SumGoMediumO(n^3)O(n^2)❤️37.3%
0026Remove Duplicates from Sorted ArrayGoEasyO(n)O(1)49.0%
0027Remove ElementGoEasyO(n)O(1)51.3%
0031Next PermutationGoMedium36.5%
0033Search in Rotated Sorted ArrayGoMedium37.9%
0034Find First and Last Position of Element in Sorted ArrayGoMedium40.1%
0035Search Insert PositionGoEasy42.3%
0036Valid SudokuGoMedium55.2%
0037Sudoku SolverGoHard54.1%
0039Combination SumGoMediumO(n log n)O(n)65.7%
0040Combination Sum IIGoMediumO(n log n)O(n)52.4%
0041First Missing PositiveGoHardO(n)O(n)36.0%
0042Trapping Rain WaterGoHardO(n)O(1)❤️56.6%
0045Jump Game IIGoMedium37.3%
0046PermutationsGoMedium72.5%
0047Permutations IIGoMedium55.4%
0048Rotate ImageGoMediumO(n)O(1)66.8%
0051N-QueensGoHard57.7%
0053Maximum SubarrayGoEasyO(n)O(n)49.5%
0054Spiral MatrixGoMediumO(n)O(n^2)41.6%
0055Jump GameGoMedium37.9%
0056Merge IntervalsGoMediumO(n log n)O(1)45.0%
0057Insert IntervalGoMediumO(n)O(1)37.4%
0059Spiral Matrix IIGoMediumO(n)O(n^2)65.0%
0063Unique Paths IIGoMediumO(n^2)O(n^2)37.6%
0064Minimum Path SumGoMediumO(n^2)O(n^2)59.4%
0066Plus OneGoEasy42.9%
0073Set Matrix ZeroesGoMedium48.5%
0074Search a 2D MatrixGoMedium44.6%
0075Sort ColorsGoMediumO(n)O(1)❤️55.0%
0078SubsetsGoMediumO(n^2)O(n)❤️71.6%
0079Word SearchGoMediumO(n^2)O(n^2)❤️39.7%
0080Remove Duplicates from Sorted Array IIGoMediumO(n)O(150.6%
0081Search in Rotated Sorted Array IIGoMedium35.6%
0084Largest Rectangle in HistogramGoHardO(n)O(n)❤️40.9%
0088Merge Sorted ArrayGoEasyO(n)O(1)❤️44.0%
0090Subsets IIGoMediumO(n^2)O(n)❤️53.4%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium57.8%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium55.5%
0108Convert Sorted Array to Binary Search TreeGoEasy66.2%
0118Pascal’s TriangleGoEasy64.8%
0119Pascal’s Triangle IIGoEasy57.7%
0120TriangleGoMediumO(n^2)O(n)50.9%
0121Best Time to Buy and Sell StockGoEasyO(n)O(1)54.1%
0122Best Time to Buy and Sell Stock IIGoMediumO(n)O(1)62.1%
0128Longest Consecutive SequenceGoMedium48.7%
0130Surrounded RegionsGoMedium34.1%
0135CandyGoHard37.1%
0136Single NumberGoEasy69.4%
0137Single Number IIGoMedium56.7%
0150Evaluate Reverse Polish NotationGoMedium42.7%
0152Maximum Product SubarrayGoMediumO(n)O(1)34.6%
0153Find Minimum in Rotated Sorted ArrayGoMedium48.0%
0154Find Minimum in Rotated Sorted Array IIGoHard43.3%
0162Find Peak ElementGoMedium46.0%
0164Maximum GapGoHard41.5%
0167Two Sum II - Input Array Is SortedGoMediumO(n)O(1)58.8%
0169Majority ElementGoEasy63.0%
0174Dungeon GameGoHard36.6%
0189Rotate ArrayGoMedium38.6%
0198House RobberGoMedium47.3%
0200Number of IslandsGoMedium54.1%
0204Count PrimesGoMedium33.0%
0209Minimum Size Subarray SumGoMediumO(n)O(1)43.4%
0212Word Search IIGoHard37.9%
0213House Robber IIGoMedium39.9%
0215Kth Largest Element in an ArrayGoMedium63.6%
0216Combination Sum IIIGoMediumO(n)O(1)❤️66.0%
0217Contains DuplicateGoEasyO(n)O(n)60.9%
0218The Skyline ProblemGoHard38.8%
0219Contains Duplicate IIGoEasyO(n)O(n)40.7%
0220Contains Duplicate IIIGoMedium21.7%
0228Summary RangesGoEasy46.4%
0229Majority Element IIGoMedium42.5%
0239Sliding Window MaximumGoHard46.3%
0240Search a 2D Matrix IIGoMedium48.5%
0260Single Number IIIGoMedium67.2%
0268Missing NumberGoEasy59.5%
0274H-IndexGoMedium37.7%
0275H-Index IIGoMedium37.1%
0283Move ZeroesGoEasyO(n)O(1)60.7%
0284Peeking IteratorGoMedium57.6%
0287Find the Duplicate NumberGoMediumO(n)O(1)❤️58.8%
0300Longest Increasing SubsequenceGoMedium49.4%
0303Range Sum Query - ImmutableGoEasy55.6%
0304Range Sum Query 2D - ImmutableGoMedium47.9%
0307Range Sum Query - MutableGoMedium38.7%
0309Best Time to Buy and Sell Stock with CooldownGoMedium52.6%
0315Count of Smaller Numbers After SelfGoHard42.1%
0318Maximum Product of Word LengthsGoMedium56.7%
0322Coin ChangeGoMedium40.2%
0324Wiggle Sort IIGoMedium32.3%
0327Count of Range SumGoHard36.0%
0347Top K Frequent ElementsGoMedium65.0%
0349Intersection of Two ArraysGoEasy69.2%
0350Intersection of Two Arrays IIGoEasy55.0%
0354Russian Doll EnvelopesGoHard38.9%
0368Largest Divisible SubsetGoMedium40.6%
0373Find K Pairs with Smallest SumsGoMedium38.8%
0376Wiggle SubsequenceGoMedium45.0%
0377Combination Sum IVGoMedium49.5%
0378Kth Smallest Element in a Sorted MatrixGoMedium59.7%
0384Shuffle an ArrayGoMedium57.1%
0391Perfect RectangleGoHard32.1%
0393UTF-8 ValidationGoMedium39.2%
0399Evaluate DivisionGoMedium58.7%
0410Split Array Largest SumGoHard52.1%
0413Arithmetic SlicesGoMedium64.5%
0414Third Maximum NumberGoEasy31.9%
0416Partition Equal Subset SumGoMedium46.4%
0417Pacific Atlantic Water FlowGoMedium49.4%
0421Maximum XOR of Two Numbers in an ArrayGoMedium54.3%
0435Non-overlapping IntervalsGoMedium48.4%
0436Find Right IntervalGoMedium49.6%
0447Number of BoomerangsGoMedium54.3%
0448Find All Numbers Disappeared in an ArrayGoEasy59.1%
0453Minimum Moves to Equal Array ElementsGoMedium54.2%
04544Sum IIGoMedium57.1%
0455Assign CookiesGoEasy50.7%
0456132 PatternGoMedium32.3%
0457Circular Array LoopGoMedium31.7%
0462Minimum Moves to Equal Array Elements IIGoMedium57.1%
0463Island PerimeterGoEasy69.0%
0473Matchsticks to SquareGoMedium40.3%
0474Ones and ZeroesGoMedium44.6%
0475HeatersGoMedium35.4%
0477Total Hamming DistanceGoMedium52.0%
0480Sliding Window MedianGoHard41.0%
0485Max Consecutive OnesGoEasy55.1%
0491Increasing SubsequencesGoMedium51.0%
0493Reverse PairsGoHard30.0%
0494Target SumGoMedium45.4%
0495Teemo AttackingGoEasy56.9%
0496Next Greater Element IGoEasy70.2%
0498Diagonal TraverseGoMedium56.9%
0500Keyboard RowGoEasy68.1%
0503Next Greater Element IIGoMedium62.2%
0506Relative RanksGoEasy56.9%
0518Coin Change 2GoMedium57.7%
0523Continuous Subarray SumGoMedium27.3%
0524Longest Word in Dictionary through DeletingGoMedium50.9%
0525Contiguous ArrayGoMedium46.4%
0526Beautiful ArrangementGoMedium64.4%
0529MinesweeperGoMedium64.8%
0532K-diff Pairs in an ArrayGoMediumO(n)O(n)40.2%
0540Single Element in a Sorted ArrayGoMedium58.7%
054201 MatrixGoMedium43.8%
0554Brick WallGoMedium52.6%
0560Subarray Sum Equals KGoMedium44.2%
0561Array Partition IGoEasy75.7%
0566Reshape the MatrixGoEasyO(n^2)O(n^2)62.5%
0575Distribute CandiesGoEasy65.7%
0581Shortest Unsorted Continuous SubarrayGoMedium36.0%
0594Longest Harmonious SubsequenceGoEasy52.7%
0598Range Addition IIGoEasy54.7%
0599Minimum Index Sum of Two ListsGoEasy52.7%
0605Can Place FlowersGoEasy33.1%
0609Find Duplicate File in SystemGoMedium63.8%
0611Valid Triangle NumberGoMedium49.8%
0622Design Circular QueueGoMedium48.7%
0628Maximum Product of Three NumbersGoEasyO(n)O(1)46.7%
0630Course Schedule IIIGoHard35.7%
0632Smallest Range Covering Elements from K ListsGoHard58.7%
0636Exclusive Time of FunctionsGoMedium60.4%
0638Shopping OffersGoMedium54.6%
0643Maximum Average Subarray IGoEasy43.5%
0645Set MismatchGoEasy41.2%
0648Replace WordsGoMedium62.0%
0658Find K Closest ElementsGoMedium44.6%
0661Image SmootherGoEasy54.4%
0665Non-decreasing ArrayGoMedium21.6%
0667Beautiful Arrangement IIGoMedium59.4%
0674Longest Continuous Increasing SubsequenceGoEasy48.5%
0682Baseball GameGoEasy73.2%
0695Max Area of IslandGoMedium69.8%
0697Degree of an ArrayGoEasy55.7%
0699Falling SquaresGoHard43.9%
0704Binary SearchGoEasy55.2%
0705Design HashSetGoEasy66.4%
0706Design HashMapGoEasy65.3%
0713Subarray Product Less Than KGoMediumO(n)O(1)43.9%
0714Best Time to Buy and Sell Stock with Transaction FeeGoMediumO(n)O(1)62.3%
07171-bit and 2-bit CharactersGoEasy46.2%
0718Maximum Length of Repeated SubarrayGoMedium51.3%
0719Find K-th Smallest Pair DistanceGoHard35.2%
0720Longest Word in DictionaryGoMedium51.0%
0721Accounts MergeGoMedium55.9%
0724Find Pivot IndexGoEasy51.7%
0733Flood FillGoEasy58.3%
0735Asteroid CollisionGoMedium44.4%
0739Daily TemperaturesGoMedium67.2%
0744Find Smallest Letter Greater Than TargetGoEasy45.1%
0746Min Cost Climbing StairsGoEasyO(n)O(1)58.9%
0747Largest Number At Least Twice of OthersGoEasy45.3%
0748Shortest Completing WordGoEasy58.9%
0752Open the LockGoMedium55.3%
0766Toeplitz MatrixGoEasyO(n)O(1)68.0%
0775Global and Local InversionsGoMedium45.1%
0778Swim in Rising WaterGoHard58.8%
0781Rabbits in ForestGoMedium55.7%
0786K-th Smallest Prime FractionGoHard48.7%
0794Valid Tic-Tac-Toe StateGoMedium35.2%
0795Number of Subarrays with Bounded MaximumGoMedium52.4%
0803Bricks Falling When HitGoHard33.9%
0807Max Increase to Keep City SkylineGoMedium85.5%
0810Chalkboard XOR GameGoHard53.5%
0811Subdomain Visit CountGoMedium74.3%
0812Largest Triangle AreaGoEasy59.7%
0815Bus RoutesGoHard45.3%
0820Short Encoding of WordsGoMedium55.3%
0821Shortest Distance to a CharacterGoEasy71.0%
0823Binary Trees With FactorsGoMedium43.7%
0825Friends Of Appropriate AgesGoMedium46.0%
0826Most Profit Assigning WorkGoMedium42.3%
0832Flipping an ImageGoEasy79.8%
0839Similar String GroupsGoHard45.7%
0845Longest Mountain in ArrayGoMedium39.9%
0846Hand of StraightsGoMedium56.2%
0850Rectangle Area IIGoHard53.3%
0851Loud and RichGoMedium56.8%
0852Peak Index in a Mountain ArrayGoEasy70.3%
0853Car FleetGoMedium48.3%
0862Shortest Subarray with Sum at Least KGoHard26.2%
0867Transpose MatrixGoEasyO(n)O(1)61.0%
0870Advantage ShuffleGoMedium51.2%
0874Walking Robot SimulationGoMedium37.8%
0875Koko Eating BananasGoMedium54.5%
0877Stone GameGoMedium69.2%
0881Boats to Save PeopleGoMedium52.5%
0885Spiral Matrix IIIGoMedium72.5%
0888Fair Candy SwapGoEasy60.4%
0890Find and Replace PatternGoMedium75.6%
0891Sum of Subsequence WidthsGoHardO(n log n)O(1)35.7%
0892Surface Area of 3D ShapesGoEasy61.9%
0896Monotonic ArrayGoEasy58.4%
0898Bitwise ORs of SubarraysGoMedium36.3%
0904Fruit Into BasketsGoMedium42.7%
0907Sum of Subarray MinimumsGoMediumO(n)O(n)❤️33.9%
0909Snakes and LaddersGoMedium40.5%
0910Smallest Range IIGoMedium32.9%
0911Online ElectionGoMedium51.7%
0914X of a Kind in a Deck of CardsGoEasy32.9%
0916Word SubsetsGoMedium52.6%
0918Maximum Sum Circular SubarrayGoMedium37.2%
0922Sort Array By Parity IIGoEasyO(n)O(1)70.6%
09233Sum With MultiplicityGoMedium45.5%
0924Minimize Malware SpreadGoHard41.9%
0927Three Equal PartsGoHard39.4%
0928Minimize Malware Spread IIGoHard42.3%
0930Binary Subarrays With SumGoMedium48.9%
0942DI String MatchGoEasy75.9%
0946Validate Stack SequencesGoMedium67.6%
0952Largest Component Size by Common FactorGoHard40.3%
0953Verifying an Alien DictionaryGoEasy52.5%
0961N-Repeated Element in Size 2N ArrayGoEasy75.5%
0966Vowel SpellcheckerGoMedium51.6%
0969Pancake SortingGoMediumO(n)O(1)❤️69.7%
0973K Closest Points to OriginGoMedium66.0%
0976Largest Perimeter TriangleGoEasy55.2%
0977Squares of a Sorted ArrayGoEasyO(n)O(1)71.7%
0978Longest Turbulent SubarrayGoMedium47.5%
0980Unique Paths IIIGoHard79.4%
0985Sum of Even Numbers After QueriesGoMedium61.0%
0986Interval List IntersectionsGoMedium71.2%
0989Add to Array-Form of IntegerGoEasy45.5%
0990Satisfiability of Equality EquationsGoMedium50.1%
0992Subarrays with K Different IntegersGoHard53.4%
0995Minimum Number of K Consecutive Bit FlipsGoHard50.7%
0996Number of Squareful ArraysGoHard49.1%
0997Find the Town JudgeGoEasy49.8%
0999Available Captures for RookGoEasy67.6%
1002Find Common CharactersGoEasy68.4%
1004Max Consecutive Ones IIIGoMedium63.0%
1005Maximize Sum Of Array After K NegationsGoEasy51.4%
1010Pairs of Songs With Total Durations Divisible by 60GoMedium53.6%
1011Capacity To Ship Packages Within D DaysGoMedium63.7%
1018Binary Prefix Divisible By 5GoEasy47.5%
1019Next Greater Node In Linked ListGoMedium59.6%
1020Number of EnclavesGoMedium63.0%
1030Matrix Cells in Distance OrderGoEasy69.1%
1034Coloring A BorderGoMedium48.5%
1037Valid BoomerangGoEasy37.5%
1040Moving Stones Until Consecutive IIGoMedium55.6%
1048Longest String ChainGoMedium57.9%
1049Last Stone Weight IIGoMedium51.2%
1051Height CheckerGoEasy74.4%
1052Grumpy Bookstore OwnerGoMedium56.7%
1054Distant BarcodesGoMedium45.2%
1073Adding Two Negabinary NumbersGoMedium35.9%
1074Number of Submatrices That Sum to TargetGoHard66.3%
1089Duplicate ZerosGoEasy51.2%
1091Shortest Path in Binary MatrixGoMedium44.3%
1105Filling Bookcase ShelvesGoMedium58.1%
1122Relative Sort ArrayGoEasy68.2%
1128Number of Equivalent Domino PairsGoEasy46.4%
1157Online Majority Element In SubarrayGoHard42.2%
1160Find Words That Can Be Formed by CharactersGoEasy67.7%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium61.1%
1178Number of Valid Words for Each PuzzleGoHard46.8%
1184Distance Between Bus StopsGoEasy54.1%
1200Minimum Absolute DifferenceGoEasy69.9%
1207Unique Number of OccurrencesGoEasy71.9%
1217Minimum Cost to Move Chips to The Same PositionGoEasy72.6%
1232Check If It Is a Straight LineGoEasy41.8%
1235Maximum Profit in Job SchedulingGoHard50.9%
1239Maximum Length of a Concatenated String with Unique CharactersGoMedium50.5%
1252Cells with Odd Values in a MatrixGoEasy78.5%
1254Number of Closed IslandsGoMedium63.4%
1260Shift 2D GridGoEasy68.1%
1266Minimum Time Visiting All PointsGoEasy79.1%
1268Search Suggestions SystemGoMedium65.3%
1275Find Winner on a Tic Tac Toe GameGoEasy54.7%
1283Find the Smallest Divisor Given a ThresholdGoMedium54.0%
1287Element Appearing More Than 25% In Sorted ArrayGoEasy59.6%
1295Find Numbers with Even Number of DigitsGoEasy77.1%
1296Divide Array in Sets of K Consecutive NumbersGoMedium56.5%
1299Replace Elements with Greatest Element on Right SideGoEasy74.5%
1300Sum of Mutated Array Closest to TargetGoMedium42.9%
1304Find N Unique Integers Sum up to ZeroGoEasy77.0%
1306Jump Game IIIGoMedium62.8%
1310XOR Queries of a SubarrayGoMedium71.3%
1313Decompress Run-Length Encoded ListGoEasy85.9%
1329Sort the Matrix DiagonallyGoMedium81.4%
1337The K Weakest Rows in a MatrixGoEasy74.2%
1353Maximum Number of Events That Can Be AttendedGoMedium33.4%
1380Lucky Numbers in a MatrixGoEasy70.9%
1383Maximum Performance of a TeamGoHard41.5%
1385Find the Distance Value Between Two ArraysGoEasy65.7%
1389Create Target Array in the Given OrderGoEasy85.6%
1423Maximum Points You Can Obtain from CardsGoMedium50.1%
1437Check If All 1’s Are at Least Length K Places AwayGoEasy59.9%
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitGoMedium46.6%
1439Find the Kth Smallest Sum of a Matrix With Sorted RowsGoHard61.6%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium74.8%
1463Cherry Pickup IIGoHard70.7%
1464Maximum Product of Two Elements in an ArrayGoEasy78.5%
1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsGoMedium37.2%
1470Shuffle the ArrayGoEasy88.4%
1480Running Sum of 1d ArrayGoEasy89.6%
1482Minimum Number of Days to Make m BouquetsGoMedium56.1%
1512Number of Good PairsGoEasy88.0%
1539Kth Missing Positive NumberGoEasy55.6%
1572Matrix Diagonal SumGoEasy79.2%
1608Special Array With X Elements Greater Than or Equal XGoEasy60.6%
1619Mean of Array After Removing Some ElementsGoEasy64.5%
1629Slowest KeyGoEasy59.6%
1631Path With Minimum EffortGoMedium55.0%
1636Sort Array by Increasing FrequencyGoEasy68.4%
1640Check Array Formation Through ConcatenationGoEasy55.9%
1642Furthest Building You Can ReachGoMedium45.2%
1646Get Maximum in Generated ArrayGoEasy50.8%
1648Sell Diminishing-Valued Colored BallsGoMedium30.9%
1649Create Sorted Array through InstructionsGoHard37.2%
1652Defuse the BombGoEasy60.8%
1654Minimum Jumps to Reach HomeGoMedium27.2%
1655Distribute Repeating IntegersGoHard40.2%
1656Design an Ordered StreamGoEasy83.9%
1658Minimum Operations to Reduce X to ZeroGoMedium33.6%
1662Check If Two String Arrays are EquivalentGoEasy82.0%
1664Ways to Make a Fair ArrayGoMedium63.3%
1665Minimum Initial Energy to Finish TasksGoHard55.8%
1670Design Front Middle Back QueueGoMedium55.7%
1672Richest Customer WealthGoEasy89.2%
1673Find the Most Competitive SubsequenceGoMedium48.5%
1674Minimum Moves to Make Array ComplementaryGoMedium37.4%
1675Minimize Deviation in ArrayGoHard52.5%
1679Max Number of K-Sum PairsGoMedium57.6%
1681Minimum IncompatibilityGoHard37.1%
1684Count the Number of Consistent StringsGoEasy81.9%
1685Sum of Absolute Differences in a Sorted ArrayGoMedium65.7%
1690Stone Game VIIGoMedium58.7%
1691Maximum Height by Stacking CuboidsGoHard53.8%
1695Maximum Erasure ValueGoMedium52.4%
1696Jump Game VIGoMedium42.8%
1700Number of Students Unable to Eat LunchGoEasy67.7%
1705Maximum Number of Eaten ApplesGoMedium36.5%
1710Maximum Units on a TruckGoEasy72.0%
1720Decode XORed ArrayGoEasy85.9%
1725Number Of Rectangles That Can Form The Largest SquareGoEasy78.8%
1732Find the Highest AltitudeGoEasy78.9%
1734Decode XORed PermutationGoMedium60.9%
1738Find Kth Largest XOR Coordinate ValueGoMedium61.9%
1744Can You Eat Your Favorite Candy on Your Favorite Day?GoMedium32.4%
1748Sum of Unique ElementsGoEasy75.6%
1752Check if Array Is Sorted and RotatedGoEasy47.9%
1816Truncate SentenceGoEasy81.3%
1818Minimum Absolute Sum DifferenceGoMedium29.5%
1846Maximum Element After Decreasing and RearrangingGoMedium58.0%
1877Minimize Maximum Pair Sum in ArrayGoMedium80.7%
1984Minimum Difference Between Highest and Lowest of K ScoresGoEasy53.5%
2022Convert 1D Array Into 2D ArrayGoEasy58.9%
2037Minimum Number of Moves to Seat EveryoneGoEasy82.8%
2043Simple Bank SystemGoMedium65.3%
2164Sort Even and Odd Indices IndependentlyGoEasy67.3%
2166Design BitsetGoMedium29.9%
2170Minimum Operations to Make the Array AlternatingGoMedium32.8%
2171Removing Minimum Number of Magic BeansGoMedium41.2%
2183Count Array Pairs Divisible by KGoHard26.9%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

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