2.01 Array

Array #

0001Two SumGoEasyO(n)O(n)47.2%
0004Median of Two Sorted ArraysGoHard32.1%
0011Container With Most WaterGoMediumO(n)O(1)53.1%
00163Sum ClosestGoMediumO(n^2)O(1)❤️46.5%
0026Remove Duplicates from Sorted ArrayGoEasyO(n)O(1)47.3%
0027Remove ElementGoEasyO(n)O(1)49.9%
0031Next PermutationGoMedium34.3%
0033Search in Rotated Sorted ArrayGoMedium36.5%
0034Find First and Last Position of Element in Sorted ArrayGoMedium38.2%
0035Search Insert PositionGoEasy42.8%
0036Valid SudokuGoMedium51.6%
0037Sudoku SolverGoHard48.6%
0039Combination SumGoMediumO(n log n)O(n)60.9%
0040Combination Sum IIGoMediumO(n log n)O(n)51.1%
0041First Missing PositiveGoHardO(n)O(n)34.6%
0042Trapping Rain WaterGoHardO(n)O(1)❤️52.5%
0045Jump Game IIGoMedium33.4%
0047Permutations IIGoMedium50.8%
0048Rotate ImageGoMediumO(n)O(1)62.3%
0053Maximum SubarrayGoEasyO(n)O(n)48.2%
0054Spiral MatrixGoMediumO(n)O(n^2)37.5%
0055Jump GameGoMedium35.7%
0056Merge IntervalsGoMediumO(n log n)O(1)42.2%
0057Insert IntervalGoMediumO(n)O(1)35.9%
0059Spiral Matrix IIGoMediumO(n)O(n^2)59.1%
0063Unique Paths IIGoMediumO(n^2)O(n^2)36.1%
0064Minimum Path SumGoMediumO(n^2)O(n^2)57.2%
0066Plus OneGoEasy42.1%
0073Set Matrix ZeroesGoMedium45.2%
0074Search a 2D MatrixGoMedium39.1%
0075Sort ColorsGoMediumO(n)O(1)❤️50.9%
0079Word SearchGoMediumO(n^2)O(n^2)❤️37.9%
0080Remove Duplicates from Sorted Array IIGoMediumO(n)O(147.0%
0081Search in Rotated Sorted Array IIGoMedium33.9%
0084Largest Rectangle in HistogramGoHardO(n)O(n)❤️38.1%
0088Merge Sorted ArrayGoEasyO(n)O(1)❤️41.3%
0090Subsets IIGoMediumO(n^2)O(n)❤️49.9%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium54.1%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium51.3%
0108Convert Sorted Array to Binary Search TreeGoEasy62.1%
0118Pascal’s TriangleGoEasy57.7%
0119Pascal’s Triangle IIGoEasy53.4%
0121Best Time to Buy and Sell StockGoEasyO(n)O(1)52.2%
0122Best Time to Buy and Sell Stock IIGoEasyO(n)O(1)59.5%
0128Longest Consecutive SequenceGoMedium47.4%
0130Surrounded RegionsGoMedium30.6%
0136Single NumberGoEasy67.2%
0137Single Number IIGoMedium54.7%
0150Evaluate Reverse Polish NotationGoMedium39.8%
0152Maximum Product SubarrayGoMediumO(n)O(1)33.2%
0153Find Minimum in Rotated Sorted ArrayGoMedium46.7%
0154Find Minimum in Rotated Sorted Array IIGoHard42.3%
0162Find Peak ElementGoMedium44.3%
0164Maximum GapGoHard39.8%
0167Two Sum II - Input array is sortedGoEasyO(n)O(1)56.3%
0169Majority ElementGoEasy60.7%
0174Dungeon GameGoHard33.8%
0189Rotate ArrayGoMedium36.9%
0198House RobberGoMedium43.8%
0200Number of IslandsGoMedium50.6%
0204Count PrimesGoEasy32.8%
0209Minimum Size Subarray SumGoMediumO(n)O(1)40.5%
0212Word Search IIGoHard37.8%
0213House Robber IIGoMedium38.0%
0215Kth Largest Element in an ArrayGoMedium60.0%
0216Combination Sum IIIGoMediumO(n)O(1)❤️61.5%
0217Contains DuplicateGoEasyO(n)O(n)57.7%
0218The Skyline ProblemGoHard37.2%
0219Contains Duplicate IIGoEasyO(n)O(n)39.5%
0220Contains Duplicate IIIGoMedium21.4%
0228Summary RangesGoEasy43.3%
0229Majority Element IIGoMedium39.7%
0239Sliding Window MaximumGoHard45.2%
0240Search a 2D Matrix IIGoMedium46.0%
0260Single Number IIIGoMedium65.6%
0268Missing NumberGoEasy56.3%
0275H-Index IIGoMedium36.5%
0283Move ZeroesGoEasyO(n)O(1)59.0%
0284Peeking IteratorGoMedium51.5%
0287Find the Duplicate NumberGoMediumO(n)O(1)❤️58.1%
0300Longest Increasing SubsequenceGoMedium46.0%
0303Range Sum Query - ImmutableGoEasy49.7%
0304Range Sum Query 2D - ImmutableGoMedium44.0%
0307Range Sum Query - MutableGoMedium37.8%
0309Best Time to Buy and Sell Stock with CooldownGoMedium49.0%
0315Count of Smaller Numbers After SelfGoHard42.0%
0318Maximum Product of Word LengthsGoMedium55.4%
0322Coin ChangeGoMedium38.3%
0324Wiggle Sort IIGoMedium31.1%
0327Count of Range SumGoHard36.2%
0347Top K Frequent ElementsGoMedium63.0%
0349Intersection of Two ArraysGoEasy66.3%
0350Intersection of Two Arrays IIGoEasy52.6%
0354Russian Doll EnvelopesGoHard38.4%
0368Largest Divisible SubsetGoMedium38.7%
0373Find K Pairs with Smallest SumsGoMedium38.9%
0376Wiggle SubsequenceGoMedium42.7%
0377Combination Sum IVGoMedium47.3%
0378Kth Smallest Element in a Sorted MatrixGoMedium57.8%
0393UTF-8 ValidationGoMedium38.5%
0399Evaluate DivisionGoMedium55.2%
0410Split Array Largest SumGoHard47.4%
0413Arithmetic SlicesGoMedium60.3%
0414Third Maximum NumberGoEasy30.8%
0416Partition Equal Subset SumGoMedium45.3%
0417Pacific Atlantic Water FlowGoMedium45.2%
0421Maximum XOR of Two Numbers in an ArrayGoMedium54.7%
0435Non-overlapping IntervalsGoMedium44.8%
0436Find Right IntervalGoMedium48.8%
0447Number of BoomerangsGoMedium52.7%
0448Find All Numbers Disappeared in an ArrayGoEasy56.6%
0453Minimum Moves to Equal Array ElementsGoEasy51.7%
04544Sum IIGoMedium55.0%
0455Assign CookiesGoEasy50.4%
0456132 PatternGoMedium30.7%
0457Circular Array LoopGoMedium30.6%
0462Minimum Moves to Equal Array Elements IIGoMedium55.7%
0463Island PerimeterGoEasy67.3%
0473Matchsticks to SquareGoMedium40.0%
0474Ones and ZeroesGoMedium43.5%
0477Total Hamming DistanceGoMedium51.0%
0480Sliding Window MedianGoHard39.6%
0485Max Consecutive OnesGoEasy53.2%
0491Increasing SubsequencesGoMedium48.6%
0493Reverse PairsGoHard27.9%
0494Target SumGoMedium45.5%
0496Next Greater Element IGoEasy66.7%
0498Diagonal TraverseGoMedium51.6%
0500Keyboard RowGoEasy66.4%
0503Next Greater Element IIGoMedium59.5%
0518Coin Change 2GoMedium53.3%
0523Continuous Subarray SumGoMedium25.4%
0524Longest Word in Dictionary through DeletingGoMedium50.3%
0525Contiguous ArrayGoMedium44.0%
0526Beautiful ArrangementGoMedium62.4%
0532K-diff Pairs in an ArrayGoMediumO(n)O(n)36.1%
054201 MatrixGoMedium41.7%
0554Brick WallGoMedium51.9%
0561Array Partition IGoEasy74.1%
0566Reshape the MatrixGoEasyO(n^2)O(n^2)62.0%
0575Distribute CandiesGoEasy64.7%
0581Shortest Unsorted Continuous SubarrayGoMedium33.2%
0594Longest Harmonious SubsequenceGoEasy51.6%
0598Range Addition IIGoEasy50.5%
0599Minimum Index Sum of Two ListsGoEasy52.4%
0605Can Place FlowersGoEasy31.6%
0609Find Duplicate File in SystemGoMedium63.1%
0622Design Circular QueueGoMedium47.9%
0628Maximum Product of Three NumbersGoEasyO(n)O(1)46.7%
0630Course Schedule IIIGoHard34.9%
0632Smallest Range Covering Elements from K ListsGoHard55.4%
0636Exclusive Time of FunctionsGoMedium56.2%
0638Shopping OffersGoMedium53.8%
0643Maximum Average Subarray IGoEasy42.3%
0645Set MismatchGoEasy40.9%
0648Replace WordsGoMedium59.9%
0658Find K Closest ElementsGoMedium43.4%
0661Image SmootherGoEasy52.7%
0665Non-decreasing ArrayGoMedium20.9%
0667Beautiful Arrangement IIGoMedium59.0%
0674Longest Continuous Increasing SubsequenceGoEasy46.6%
0682Baseball GameGoEasy68.1%
0695Max Area of IslandGoMedium66.8%
0697Degree of an ArrayGoEasy54.8%
0699Falling SquaresGoHard43.4%
0704Binary SearchGoEasy54.8%
0705Design HashSetGoEasy64.0%
0706Design HashMapGoEasy63.9%
0713Subarray Product Less Than KGoMediumO(n)O(1)40.9%
0714Best Time to Buy and Sell Stock with Transaction FeeGoMediumO(n)O(1)58.7%
07171-bit and 2-bit CharactersGoEasy46.3%
0718Maximum Length of Repeated SubarrayGoMedium51.2%
0719Find K-th Smallest Pair DistanceGoHard33.0%
0720Longest Word in DictionaryGoMedium49.7%
0721Accounts MergeGoMedium53.2%
0724Find Pivot IndexGoEasy47.5%
0733Flood FillGoEasy56.2%
0735Asteroid CollisionGoMedium43.5%
0739Daily TemperaturesGoMedium65.4%
0744Find Smallest Letter Greater Than TargetGoEasy45.7%
0746Min Cost Climbing StairsGoEasyO(n)O(1)53.7%
0752Open the LockGoMedium54.7%
0766Toeplitz MatrixGoEasyO(n)O(1)66.0%
0775Global and Local InversionsGoMedium46.0%
0778Swim in Rising WaterGoHard57.7%
0786K-th Smallest Prime FractionGoHard45.1%
0795Number of Subarrays with Bounded MaximumGoMedium51.7%
0803Bricks Falling When HitGoHard32.3%
0810Chalkboard XOR GameGoHard51.1%
0811Subdomain Visit CountGoEasy72.3%
0812Largest Triangle AreaGoEasy59.2%
0815Bus RoutesGoHard44.0%
0820Short Encoding of WordsGoMedium55.0%
0821Shortest Distance to a CharacterGoEasy70.3%
0823Binary Trees With FactorsGoMedium43.7%
0826Most Profit Assigning WorkGoMedium39.6%
0832Flipping an ImageGoEasy78.7%
0845Longest Mountain in ArrayGoMedium38.9%
0850Rectangle Area IIGoHard48.8%
0851Loud and RichGoMedium53.4%
0852Peak Index in a Mountain ArrayGoEasy71.6%
0853Car FleetGoMedium44.9%
0862Shortest Subarray with Sum at Least KGoHard25.3%
0867Transpose MatrixGoEasyO(n)O(1)61.8%
0870Advantage ShuffleGoMedium50.8%
0874Walking Robot SimulationGoEasy36.7%
0875Koko Eating BananasGoMedium53.8%
0877Stone GameGoMedium67.7%
0881Boats to Save PeopleGoMedium49.3%
0885Spiral Matrix IIIGoMedium71.3%
0888Fair Candy SwapGoEasy59.4%
0890Find and Replace PatternGoMedium75.5%
0891Sum of Subsequence WidthsGoHardO(n log n)O(1)33.4%
0892Surface Area of 3D ShapesGoEasy60.3%
0896Monotonic ArrayGoEasy57.8%
0898Bitwise ORs of SubarraysGoMedium35.3%
0904Fruit Into BasketsGoMedium43.2%
0907Sum of Subarray MinimumsGoMediumO(n)O(n)❤️32.8%
0909Snakes and LaddersGoMedium39.4%
0910Smallest Range IIGoMedium31.4%
0911Online ElectionGoMedium51.8%
0914X of a Kind in a Deck of CardsGoEasy33.7%
0916Word SubsetsGoMedium52.7%
0918Maximum Sum Circular SubarrayGoMedium34.7%
0922Sort Array By Parity IIGoEasyO(n)O(1)70.7%
09233Sum With MultiplicityGoMedium41.0%
0924Minimize Malware SpreadGoHard41.8%
0927Three Equal PartsGoHard34.8%
0928Minimize Malware Spread IIGoHard41.5%
0930Binary Subarrays With SumGoMedium46.0%
0942DI String MatchGoEasy74.3%
0946Validate Stack SequencesGoMedium64.5%
0952Largest Component Size by Common FactorGoHard36.5%
0953Verifying an Alien DictionaryGoEasy52.2%
0961N-Repeated Element in Size 2N ArrayGoEasy74.9%
0966Vowel SpellcheckerGoMedium51.8%
0969Pancake SortingGoMediumO(n)O(1)❤️69.0%
0973K Closest Points to OriginGoMedium65.1%
0976Largest Perimeter TriangleGoEasy59.5%
0977Squares of a Sorted ArrayGoEasyO(n)O(1)71.5%
0978Longest Turbulent SubarrayGoMedium46.8%
0980Unique Paths IIIGoHard77.2%
0985Sum of Even Numbers After QueriesGoEasy60.5%
0986Interval List IntersectionsGoMedium69.0%
0989Add to Array-Form of IntegerGoEasy45.1%
0990Satisfiability of Equality EquationsGoMedium47.7%
0992Subarrays with K Different IntegersGoHard51.6%
0995Minimum Number of K Consecutive Bit FlipsGoHard50.4%
0996Number of Squareful ArraysGoHard48.7%
0999Available Captures for RookGoEasy67.7%
1002Find Common CharactersGoEasy68.7%
1004Max Consecutive Ones IIIGoMedium60.8%
1005Maximize Sum Of Array After K NegationsGoEasy52.3%
1011Capacity To Ship Packages Within D DaysGoMedium60.7%
1018Binary Prefix Divisible By 5GoEasy47.5%
1019Next Greater Node In Linked ListGoMedium58.4%
1020Number of EnclavesGoMedium59.9%
1030Matrix Cells in Distance OrderGoEasy68.5%
1040Moving Stones Until Consecutive IIGoMedium54.8%
1048Longest String ChainGoMedium56.3%
1049Last Stone Weight IIGoMedium47.6%
1051Height CheckerGoEasy73.2%
1052Grumpy Bookstore OwnerGoMedium56.1%
1054Distant BarcodesGoMedium44.6%
1073Adding Two Negabinary NumbersGoMedium34.9%
1074Number of Submatrices That Sum to TargetGoHard65.3%
1089Duplicate ZerosGoEasy51.5%
1091Shortest Path in Binary MatrixGoMedium40.7%
1105Filling Bookcase ShelvesGoMedium57.7%
1122Relative Sort ArrayGoEasy67.9%
1128Number of Equivalent Domino PairsGoEasy45.9%
1157Online Majority Element In SubarrayGoHard41.4%
1160Find Words That Can Be Formed by CharactersGoEasy67.8%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium60.6%
1178Number of Valid Words for Each PuzzleGoHard40.6%
1184Distance Between Bus StopsGoEasy53.9%
1200Minimum Absolute DifferenceGoEasy67.2%
1207Unique Number of OccurrencesGoEasy72.2%
1217Minimum Cost to Move Chips to The Same PositionGoEasy70.6%
1232Check If It Is a Straight LineGoEasy42.7%
1235Maximum Profit in Job SchedulingGoHard48.2%
1239Maximum Length of a Concatenated String with Unique CharactersGoMedium50.5%
1252Cells with Odd Values in a MatrixGoEasy78.5%
1254Number of Closed IslandsGoMedium62.2%
1260Shift 2D GridGoEasy61.9%
1266Minimum Time Visiting All PointsGoEasy79.3%
1268Search Suggestions SystemGoMedium65.5%
1275Find Winner on a Tic Tac Toe GameGoEasy52.9%
1283Find the Smallest Divisor Given a ThresholdGoMedium50.8%
1287Element Appearing More Than 25% In Sorted ArrayGoEasy59.9%
1295Find Numbers with Even Number of DigitsGoEasy78.1%
1299Replace Elements with Greatest Element on Right SideGoEasy74.5%
1300Sum of Mutated Array Closest to TargetGoMedium42.6%
1304Find N Unique Integers Sum up to ZeroGoEasy76.5%
1306Jump Game IIIGoMedium61.7%
1310XOR Queries of a SubarrayGoMedium69.9%
1313Decompress Run-Length Encoded ListGoEasy85.5%
1329Sort the Matrix DiagonallyGoMedium81.4%
1337The K Weakest Rows in a MatrixGoEasy71.9%
1353Maximum Number of Events That Can Be AttendedGoMedium30.6%
1380Lucky Numbers in a MatrixGoEasy70.4%
1383Maximum Performance of a TeamGoHard41.2%
1385Find the Distance Value Between Two ArraysGoEasy66.5%
1389Create Target Array in the Given OrderGoEasy85.1%
1423Maximum Points You Can Obtain from CardsGoMedium48.7%
1437Check If All 1’s Are at Least Length K Places AwayGoEasy60.9%
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitGoMedium44.9%
1439Find the Kth Smallest Sum of a Matrix With Sorted RowsGoHard61.2%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium73.0%
1463Cherry Pickup IIGoHard68.6%
1464Maximum Product of Two Elements in an ArrayGoEasy77.1%
1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsGoMedium36.7%
1470Shuffle the ArrayGoEasy88.1%
1480Running Sum of 1d ArrayGoEasy88.9%
1482Minimum Number of Days to Make m BouquetsGoMedium52.4%
1512Number of Good PairsGoEasy87.6%
1539Kth Missing Positive NumberGoEasy54.7%
1572Matrix Diagonal SumGoEasy78.1%
1608Special Array With X Elements Greater Than or Equal XGoEasy61.5%
1619Mean of Array After Removing Some ElementsGoEasy64.6%
1629Slowest KeyGoEasy59.0%
1631Path With Minimum EffortGoMedium50.3%
1636Sort Array by Increasing FrequencyGoEasy67.3%
1640Check Array Formation Through ConcatenationGoEasy55.5%
1642Furthest Building You Can ReachGoMedium43.5%
1646Get Maximum in Generated ArrayGoEasy52.6%
1648Sell Diminishing-Valued Colored BallsGoMedium31.4%
1649Create Sorted Array through InstructionsGoHard36.9%
1652Defuse the BombGoEasy60.4%
1654Minimum Jumps to Reach HomeGoMedium24.7%
1655Distribute Repeating IntegersGoHard40.2%
1656Design an Ordered StreamGoEasy82.4%
1658Minimum Operations to Reduce X to ZeroGoMedium33.3%
1662Check If Two String Arrays are EquivalentGoEasy82.0%
1664Ways to Make a Fair ArrayGoMedium62.0%
1665Minimum Initial Energy to Finish TasksGoHard54.7%
1670Design Front Middle Back QueueGoMedium54.5%
1672Richest Customer WealthGoEasy88.2%
1673Find the Most Competitive SubsequenceGoMedium45.9%
1674Minimum Moves to Make Array ComplementaryGoMedium36.4%
1675Minimize Deviation in ArrayGoHard48.1%
1679Max Number of K-Sum PairsGoMedium53.6%
1681Minimum IncompatibilityGoHard35.8%
1684Count the Number of Consistent StringsGoEasy81.6%
1685Sum of Absolute Differences in a Sorted ArrayGoMedium63.7%
1690Stone Game VIIGoMedium58.6%
1691Maximum Height by Stacking CuboidsGoHard51.0%
1695Maximum Erasure ValueGoMedium52.3%
1696Jump Game VIGoMedium42.0%
1700Number of Students Unable to Eat LunchGoEasy67.7%
1710Maximum Units on a TruckGoEasy72.5%
1720Decode XORed ArrayGoEasy85.6%
1725Number Of Rectangles That Can Form The Largest SquareGoEasy78.3%
1732Find the Highest AltitudeGoEasy79.2%
1734Decode XORed PermutationGoMedium57.2%
1738Find Kth Largest XOR Coordinate ValueGoMedium62.7%
1744Can You Eat Your Favorite Candy on Your Favorite Day?GoMedium31.4%
1748Sum of Unique ElementsGoEasy74.6%
1752Check if Array Is Sorted and RotatedGoEasy44.7%



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