2.01 Array

Array #

0001Two SumGoEasyO(n)O(n)49.7%
0004Median of Two Sorted ArraysGoHard36.2%
0011Container With Most WaterGoMediumO(n)O(1)54.0%
00163Sum ClosestGoMediumO(n^2)O(1)❤️45.7%
0026Remove Duplicates from Sorted ArrayGoEasyO(n)O(1)51.6%
0027Remove ElementGoEasyO(n)O(1)53.0%
0031Next PermutationGoMedium37.6%
0033Search in Rotated Sorted ArrayGoMedium39.0%
0034Find First and Last Position of Element in Sorted ArrayGoMedium41.9%
0035Search Insert PositionGoEasy43.4%
0036Valid SudokuGoMedium58.1%
0037Sudoku SolverGoHard57.7%
0039Combination SumGoMediumO(n log n)O(n)68.6%
0040Combination Sum IIGoMediumO(n log n)O(n)53.4%
0041First Missing PositiveGoHardO(n)O(n)36.7%
0042Trapping Rain WaterGoHardO(n)O(1)❤️59.3%
0045Jump Game IIGoMedium39.8%
0047Permutations IIGoMedium57.4%
0048Rotate ImageGoMediumO(n)O(1)71.0%
0049Group AnagramsGoMedium66.8%
0053Maximum SubarrayGoMediumO(n)O(n)50.2%
0054Spiral MatrixGoMediumO(n)O(n^2)45.0%
0055Jump GameGoMedium38.9%
0056Merge IntervalsGoMediumO(n log n)O(1)46.2%
0057Insert IntervalGoMediumO(n)O(1)39.0%
0059Spiral Matrix IIGoMediumO(n)O(n^2)67.4%
0063Unique Paths IIGoMediumO(n^2)O(n^2)39.4%
0064Minimum Path SumGoMediumO(n^2)O(n^2)62.0%
0066Plus OneGoEasy43.7%
0073Set Matrix ZeroesGoMedium51.3%
0074Search a 2D MatrixGoMedium47.7%
0075Sort ColorsGoMediumO(n)O(1)❤️58.6%
0079Word SearchGoMediumO(n^2)O(n^2)❤️40.2%
0080Remove Duplicates from Sorted Array IIGoMediumO(n)O(152.3%
0081Search in Rotated Sorted Array IIGoMedium35.7%
0084Largest Rectangle in HistogramGoHardO(n)O(n)❤️42.6%
0088Merge Sorted ArrayGoEasyO(n)O(1)❤️46.6%
0090Subsets IIGoMediumO(n^2)O(n)❤️55.9%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium61.6%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium60.0%
0108Convert Sorted Array to Binary Search TreeGoEasy69.9%
0118Pascal’s TriangleGoEasy70.8%
0119Pascal’s Triangle IIGoEasy60.8%
0121Best Time to Buy and Sell StockGoEasyO(n)O(1)54.3%
0122Best Time to Buy and Sell Stock IIGoMediumO(n)O(1)63.9%
0128Longest Consecutive SequenceGoMedium48.5%
0130Surrounded RegionsGoMedium36.8%
0136Single NumberGoEasy70.7%
0137Single Number IIGoMedium58.5%
0150Evaluate Reverse Polish NotationGoMedium45.8%
0152Maximum Product SubarrayGoMediumO(n)O(1)34.9%
0153Find Minimum in Rotated Sorted ArrayGoMedium48.9%
0154Find Minimum in Rotated Sorted Array IIGoHard43.5%
0162Find Peak ElementGoMedium46.0%
0164Maximum GapGoHard43.4%
0167Two Sum II - Input Array Is SortedGoMediumO(n)O(1)60.0%
0169Majority ElementGoEasy63.9%
0174Dungeon GameGoHard37.5%
0179Largest NumberGoMedium34.6%
0189Rotate ArrayGoMedium39.4%
0198House RobberGoMedium49.4%
0200Number of IslandsGoMedium57.0%
0204Count PrimesGoMedium33.1%
0209Minimum Size Subarray SumGoMediumO(n)O(1)45.0%
0212Word Search IIGoHard36.4%
0213House Robber IIGoMedium41.0%
0215Kth Largest Element in an ArrayGoMedium66.2%
0216Combination Sum IIIGoMediumO(n)O(1)❤️67.6%
0217Contains DuplicateGoEasyO(n)O(n)61.4%
0218The Skyline ProblemGoHard41.9%
0219Contains Duplicate IIGoEasyO(n)O(n)42.6%
0220Contains Duplicate IIIGoHard22.1%
0228Summary RangesGoEasy47.2%
0229Majority Element IIGoMedium45.1%
0239Sliding Window MaximumGoHard46.3%
0240Search a 2D Matrix IIGoMedium51.0%
0260Single Number IIIGoMedium67.7%
0268Missing NumberGoEasy62.6%
0275H-Index IIGoMedium37.5%
0283Move ZeroesGoEasyO(n)O(1)61.4%
0284Peeking IteratorGoMedium58.7%
0287Find the Duplicate NumberGoMediumO(n)O(1)❤️59.1%
0300Longest Increasing SubsequenceGoMedium52.2%
0303Range Sum Query - ImmutableGoEasy59.5%
0304Range Sum Query 2D - ImmutableGoMedium52.9%
0307Range Sum Query - MutableGoMedium40.7%
0309Best Time to Buy and Sell Stock with CooldownGoMedium56.2%
0315Count of Smaller Numbers After SelfGoHard42.6%
0318Maximum Product of Word LengthsGoMedium59.9%
0322Coin ChangeGoMedium42.1%
0324Wiggle Sort IIGoMedium33.3%
0327Count of Range SumGoHard35.8%
0329Longest Increasing Path in a MatrixGoHard52.4%
0347Top K Frequent ElementsGoMedium64.2%
0349Intersection of Two ArraysGoEasy70.9%
0350Intersection of Two Arrays IIGoEasy56.0%
0354Russian Doll EnvelopesGoHard37.9%
0368Largest Divisible SubsetGoMedium41.6%
0373Find K Pairs with Smallest SumsGoMedium38.3%
0376Wiggle SubsequenceGoMedium48.3%
0377Combination Sum IVGoMedium52.2%
0378Kth Smallest Element in a Sorted MatrixGoMedium61.8%
0384Shuffle an ArrayGoMedium57.8%
0391Perfect RectangleGoHard32.8%
0393UTF-8 ValidationGoMedium45.1%
0396Rotate FunctionGoMedium41.1%
0399Evaluate DivisionGoMedium59.7%
0410Split Array Largest SumGoHard53.5%
0413Arithmetic SlicesGoMedium65.1%
0414Third Maximum NumberGoEasy33.2%
0416Partition Equal Subset SumGoMedium46.3%
0417Pacific Atlantic Water FlowGoMedium54.4%
0419Battleships in a BoardGoMedium74.8%
0421Maximum XOR of Two Numbers in an ArrayGoMedium54.0%
0435Non-overlapping IntervalsGoMedium50.3%
0436Find Right IntervalGoMedium50.8%
0447Number of BoomerangsGoMedium54.9%
0448Find All Numbers Disappeared in an ArrayGoEasy59.9%
0453Minimum Moves to Equal Array ElementsGoMedium56.0%
04544Sum IIGoMedium57.2%
0455Assign CookiesGoEasy49.9%
0456132 PatternGoMedium32.4%
0457Circular Array LoopGoMedium32.6%
0462Minimum Moves to Equal Array Elements IIGoMedium60.0%
0463Island PerimeterGoEasy69.7%
0473Matchsticks to SquareGoMedium40.2%
0474Ones and ZeroesGoMedium46.8%
0477Total Hamming DistanceGoMedium52.2%
0480Sliding Window MedianGoHard41.1%
0485Max Consecutive OnesGoEasy56.6%
0491Non-decreasing SubsequencesGoMedium60.2%
0493Reverse PairsGoHard30.9%
0494Target SumGoMedium45.7%
0495Teemo AttackingGoEasy56.8%
0496Next Greater Element IGoEasy71.4%
0497Random Point in Non-overlapping RectanglesGoMedium39.4%
0498Diagonal TraverseGoMedium58.3%
0500Keyboard RowGoEasy69.6%
0503Next Greater Element IIGoMedium63.2%
0506Relative RanksGoEasy60.6%
0518Coin Change IIGoMedium60.6%
0523Continuous Subarray SumGoMedium28.5%
0524Longest Word in Dictionary through DeletingGoMedium51.0%
0525Contiguous ArrayGoMedium46.8%
0526Beautiful ArrangementGoMedium64.4%
0528Random Pick with WeightGoMedium46.1%
0532K-diff Pairs in an ArrayGoMediumO(n)O(n)41.2%
0540Single Element in a Sorted ArrayGoMedium59.1%
054201 MatrixGoMedium44.8%
0554Brick WallGoMedium53.6%
0560Subarray Sum Equals KGoMedium43.7%
0561Array PartitionGoEasy77.2%
0566Reshape the MatrixGoEasyO(n^2)O(n^2)62.9%
0575Distribute CandiesGoEasy66.5%
0581Shortest Unsorted Continuous SubarrayGoMedium36.4%
0594Longest Harmonious SubsequenceGoEasy53.5%
0598Range Addition IIGoEasy55.3%
0599Minimum Index Sum of Two ListsGoEasy53.4%
0605Can Place FlowersGoEasy32.8%
0609Find Duplicate File in SystemGoMedium67.7%
0611Valid Triangle NumberGoMedium50.6%
0622Design Circular QueueGoMedium51.5%
0628Maximum Product of Three NumbersGoEasyO(n)O(1)45.9%
0630Course Schedule IIIGoHard40.1%
0632Smallest Range Covering Elements from K ListsGoHard61.0%
0636Exclusive Time of FunctionsGoMedium61.2%
0638Shopping OffersGoMedium53.3%
0643Maximum Average Subarray IGoEasy43.7%
0645Set MismatchGoEasy42.7%
0648Replace WordsGoMedium62.7%
0658Find K Closest ElementsGoMedium46.8%
0661Image SmootherGoEasy55.4%
0665Non-decreasing ArrayGoMedium24.3%
0667Beautiful Arrangement IIGoMedium59.8%
0674Longest Continuous Increasing SubsequenceGoEasy49.3%
0682Baseball GameGoEasy74.3%
0695Max Area of IslandGoMedium71.8%
0697Degree of an ArrayGoEasy56.0%
0699Falling SquaresGoHard44.7%
0704Binary SearchGoEasy56.1%
0705Design HashSetGoEasy65.6%
0706Design HashMapGoEasy64.7%
0710Random Pick with BlacklistGoHard33.5%
0713Subarray Product Less Than KGoMediumO(n)O(1)45.8%
0714Best Time to Buy and Sell Stock with Transaction FeeGoMediumO(n)O(1)65.2%
07171-bit and 2-bit CharactersGoEasy45.7%
0718Maximum Length of Repeated SubarrayGoMedium51.3%
0719Find K-th Smallest Pair DistanceGoHard36.7%
0720Longest Word in DictionaryGoMedium52.0%
0721Accounts MergeGoMedium56.3%
0724Find Pivot IndexGoEasy54.7%
0733Flood FillGoEasy62.0%
0735Asteroid CollisionGoMedium44.4%
0739Daily TemperaturesGoMedium66.3%
0744Find Smallest Letter Greater Than TargetGoEasy45.8%
0746Min Cost Climbing StairsGoEasyO(n)O(1)63.2%
0747Largest Number At Least Twice of OthersGoEasy47.1%
0748Shortest Completing WordGoEasy59.3%
0752Open the LockGoMedium55.6%
0766Toeplitz MatrixGoEasyO(n)O(1)68.6%
0775Global and Local InversionsGoMedium43.3%
0778Swim in Rising WaterGoHard59.8%
0781Rabbits in ForestGoMedium54.7%
0786K-th Smallest Prime FractionGoMedium51.7%
0794Valid Tic-Tac-Toe StateGoMedium35.1%
0795Number of Subarrays with Bounded MaximumGoMedium52.8%
0803Bricks Falling When HitGoHard34.4%
0807Max Increase to Keep City SkylineGoMedium85.9%
0810Chalkboard XOR GameGoHard55.8%
0811Subdomain Visit CountGoMedium75.5%
0812Largest Triangle AreaGoEasy59.9%
0815Bus RoutesGoHard45.6%
0817Linked List ComponentsGoMedium57.7%
0820Short Encoding of WordsGoMedium60.6%
0821Shortest Distance to a CharacterGoEasy71.3%
0823Binary Trees With FactorsGoMedium49.7%
0825Friends Of Appropriate AgesGoMedium46.3%
0826Most Profit Assigning WorkGoMedium44.9%
0832Flipping an ImageGoEasy80.8%
0839Similar String GroupsGoHard48.0%
0845Longest Mountain in ArrayGoMedium40.2%
0846Hand of StraightsGoMedium56.2%
0850Rectangle Area IIGoHard53.9%
0851Loud and RichGoMedium58.4%
0852Peak Index in a Mountain ArrayGoMedium69.0%
0853Car FleetGoMedium50.3%
0862Shortest Subarray with Sum at Least KGoHard26.0%
0864Shortest Path to Get All KeysGoHard45.6%
0867Transpose MatrixGoEasyO(n)O(1)64.3%
0870Advantage ShuffleGoMedium51.9%
0874Walking Robot SimulationGoMedium39.0%
0875Koko Eating BananasGoMedium52.1%
0877Stone GameGoMedium69.7%
0881Boats to Save PeopleGoMedium55.8%
0885Spiral Matrix IIIGoMedium73.5%
0888Fair Candy SwapGoEasy60.7%
0890Find and Replace PatternGoMedium77.6%
0891Sum of Subsequence WidthsGoHardO(n log n)O(1)36.7%
0892Surface Area of 3D ShapesGoEasy64.0%
0896Monotonic ArrayGoEasy58.4%
0898Bitwise ORs of SubarraysGoMedium37.2%
0904Fruit Into BasketsGoMedium43.7%
0907Sum of Subarray MinimumsGoMediumO(n)O(n)❤️35.8%
0909Snakes and LaddersGoMedium45.1%
0910Smallest Range IIGoMedium35.2%
0911Online ElectionGoMedium52.2%
0914X of a Kind in a Deck of CardsGoEasy31.2%
0916Word SubsetsGoMedium53.7%
0918Maximum Sum Circular SubarrayGoMedium43.0%
0922Sort Array By Parity IIGoEasyO(n)O(1)70.7%
09233Sum With MultiplicityGoMedium45.3%
0924Minimize Malware SpreadGoHard42.1%
0927Three Equal PartsGoHard39.6%
0928Minimize Malware Spread IIGoHard42.8%
0930Binary Subarrays With SumGoMedium52.2%
0942DI String MatchGoEasy77.3%
0946Validate Stack SequencesGoMedium67.7%
0952Largest Component Size by Common FactorGoHard40.0%
0953Verifying an Alien DictionaryGoEasy54.5%
0961N-Repeated Element in Size 2N ArrayGoEasy76.1%
0966Vowel SpellcheckerGoMedium51.4%
0969Pancake SortingGoMediumO(n)O(1)❤️70.1%
0973K Closest Points to OriginGoMedium65.7%
0976Largest Perimeter TriangleGoEasy54.7%
0977Squares of a Sorted ArrayGoEasyO(n)O(1)71.9%
0978Longest Turbulent SubarrayGoMedium47.2%
0980Unique Paths IIIGoHard81.7%
0985Sum of Even Numbers After QueriesGoMedium68.1%
0986Interval List IntersectionsGoMedium71.3%
0989Add to Array-Form of IntegerGoEasy47.1%
0990Satisfiability of Equality EquationsGoMedium50.5%
0992Subarrays with K Different IntegersGoHard54.6%
0995Minimum Number of K Consecutive Bit FlipsGoHard51.2%
0996Number of Squareful ArraysGoHard49.2%
0997Find the Town JudgeGoEasy49.5%
0999Available Captures for RookGoEasy68.2%
1002Find Common CharactersGoEasy68.5%
1004Max Consecutive Ones IIIGoMedium63.2%
1005Maximize Sum Of Array After K NegationsGoEasy50.8%
1010Pairs of Songs With Total Durations Divisible by 60GoMedium52.8%
1011Capacity To Ship Packages Within D DaysGoMedium67.7%
1018Binary Prefix Divisible By 5GoEasy46.9%
1019Next Greater Node In Linked ListGoMedium59.9%
1020Number of EnclavesGoMedium65.6%
1030Matrix Cells in Distance OrderGoEasy69.7%
1034Coloring A BorderGoMedium49.2%
1037Valid BoomerangGoEasy37.0%
1040Moving Stones Until Consecutive IIGoMedium55.9%
1048Longest String ChainGoMedium59.3%
1049Last Stone Weight IIGoMedium53.2%
1051Height CheckerGoEasy75.6%
1052Grumpy Bookstore OwnerGoMedium57.1%
1054Distant BarcodesGoMedium45.9%
1073Adding Two Negabinary NumbersGoMedium36.5%
1074Number of Submatrices That Sum to TargetGoHard69.5%
1089Duplicate ZerosGoEasy51.5%
1091Shortest Path in Binary MatrixGoMedium44.7%
1093Statistics from a Large SampleGoMedium43.5%
1105Filling Bookcase ShelvesGoMedium59.3%
1122Relative Sort ArrayGoEasy68.6%
1128Number of Equivalent Domino PairsGoEasy47.1%
1157Online Majority Element In SubarrayGoHard41.8%
1160Find Words That Can Be Formed by CharactersGoEasy67.5%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium61.5%
1178Number of Valid Words for Each PuzzleGoHard46.3%
1184Distance Between Bus StopsGoEasy54.0%
1200Minimum Absolute DifferenceGoEasy69.6%
1207Unique Number of OccurrencesGoEasy73.5%
1217Minimum Cost to Move Chips to The Same PositionGoEasy71.9%
1232Check If It Is a Straight LineGoEasy40.3%
1235Maximum Profit in Job SchedulingGoHard53.4%
1239Maximum Length of a Concatenated String with Unique CharactersGoMedium52.2%
1252Cells with Odd Values in a MatrixGoEasy78.5%
1254Number of Closed IslandsGoMedium66.9%
1260Shift 2D GridGoEasy67.8%
1266Minimum Time Visiting All PointsGoEasy79.1%
1268Search Suggestions SystemGoMedium66.2%
1275Find Winner on a Tic Tac Toe GameGoEasy54.2%
1283Find the Smallest Divisor Given a ThresholdGoMedium56.2%
1287Element Appearing More Than 25% In Sorted ArrayGoEasy59.4%
1293Shortest Path in a Grid with Obstacles EliminationGoHard45.3%
1295Find Numbers with Even Number of DigitsGoEasy77.0%
1296Divide Array in Sets of K Consecutive NumbersGoMedium56.5%
1299Replace Elements with Greatest Element on Right SideGoEasy73.3%
1300Sum of Mutated Array Closest to TargetGoMedium43.6%
1304Find N Unique Integers Sum up to ZeroGoEasy76.9%
1306Jump Game IIIGoMedium63.5%
1310XOR Queries of a SubarrayGoMedium72.3%
1313Decompress Run-Length Encoded ListGoEasy85.8%
1329Sort the Matrix DiagonallyGoMedium83.3%
1337The K Weakest Rows in a MatrixGoEasy72.1%
1353Maximum Number of Events That Can Be AttendedGoMedium32.5%
1380Lucky Numbers in a MatrixGoEasy70.7%
1383Maximum Performance of a TeamGoHard48.5%
1385Find the Distance Value Between Two ArraysGoEasy66.6%
1389Create Target Array in the Given OrderGoEasy85.8%
1423Maximum Points You Can Obtain from CardsGoMedium52.2%
1437Check If All 1’s Are at Least Length K Places AwayGoEasy58.7%
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitGoMedium48.3%
1439Find the Kth Smallest Sum of a Matrix With Sorted RowsGoHard61.4%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium76.1%
1463Cherry Pickup IIGoHard69.5%
1464Maximum Product of Two Elements in an ArrayGoEasy80.0%
1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsGoMedium40.9%
1470Shuffle the ArrayGoEasy89.0%
1480Running Sum of 1d ArrayGoEasy87.4%
1482Minimum Number of Days to Make m BouquetsGoMedium54.0%
1512Number of Good PairsGoEasy88.2%
1539Kth Missing Positive NumberGoEasy58.6%
1572Matrix Diagonal SumGoEasy80.3%
1608Special Array With X Elements Greater Than or Equal XGoEasy60.5%
1619Mean of Array After Removing Some ElementsGoEasy65.8%
1629Slowest KeyGoEasy59.2%
1631Path With Minimum EffortGoMedium55.7%
1636Sort Array by Increasing FrequencyGoEasy69.5%
1640Check Array Formation Through ConcatenationGoEasy56.2%
1642Furthest Building You Can ReachGoMedium48.3%
1646Get Maximum in Generated ArrayGoEasy50.2%
1648Sell Diminishing-Valued Colored BallsGoMedium30.4%
1649Create Sorted Array through InstructionsGoHard37.5%
1652Defuse the BombGoEasy62.4%
1654Minimum Jumps to Reach HomeGoMedium29.1%
1655Distribute Repeating IntegersGoHard39.3%
1656Design an Ordered StreamGoEasy85.2%
1658Minimum Operations to Reduce X to ZeroGoMedium37.6%
1662Check If Two String Arrays are EquivalentGoEasy83.5%
1664Ways to Make a Fair ArrayGoMedium63.3%
1665Minimum Initial Energy to Finish TasksGoHard56.4%
1670Design Front Middle Back QueueGoMedium57.2%
1672Richest Customer WealthGoEasy87.9%
1673Find the Most Competitive SubsequenceGoMedium49.3%
1674Minimum Moves to Make Array ComplementaryGoMedium38.7%
1675Minimize Deviation in ArrayGoHard54.6%
1679Max Number of K-Sum PairsGoMedium57.3%
1681Minimum IncompatibilityGoHard37.8%
1684Count the Number of Consistent StringsGoEasy82.3%
1685Sum of Absolute Differences in a Sorted ArrayGoMedium63.5%
1690Stone Game VIIGoMedium58.1%
1691Maximum Height by Stacking CuboidsGoHard54.6%
1695Maximum Erasure ValueGoMedium57.6%
1696Jump Game VIGoMedium46.1%
1700Number of Students Unable to Eat LunchGoEasy68.8%
1705Maximum Number of Eaten ApplesGoMedium38.0%
1710Maximum Units on a TruckGoEasy73.8%
1720Decode XORed ArrayGoEasy85.8%
1725Number Of Rectangles That Can Form The Largest SquareGoEasy78.6%
1732Find the Highest AltitudeGoEasy78.9%
1734Decode XORed PermutationGoMedium63.0%
1738Find Kth Largest XOR Coordinate ValueGoMedium61.0%
1744Can You Eat Your Favorite Candy on Your Favorite Day?GoMedium33.1%
1748Sum of Unique ElementsGoEasy76.3%
1752Check if Array Is Sorted and RotatedGoEasy50.1%
1816Truncate SentenceGoEasy83.1%
1818Minimum Absolute Sum DifferenceGoMedium30.4%
1846Maximum Element After Decreasing and RearrangingGoMedium58.9%
1877Minimize Maximum Pair Sum in ArrayGoMedium79.9%
1984Minimum Difference Between Highest and Lowest of K ScoresGoEasy54.5%
2021Brightest Position on StreetGoMedium62.1%
2022Convert 1D Array Into 2D ArrayGoEasy59.1%
2037Minimum Number of Moves to Seat EveryoneGoEasy82.1%
2043Simple Bank SystemGoMedium65.2%
2164Sort Even and Odd Indices IndependentlyGoEasy64.9%
2166Design BitsetGoMedium31.8%
2170Minimum Operations to Make the Array AlternatingGoMedium33.2%
2171Removing Minimum Number of Magic BeansGoMedium42.1%
2183Count Array Pairs Divisible by KGoHard28.3%



Calendar Apr 8, 2023
Edit Edit this page
本站总访问量:  次 您是本站第  位访问者