2.13 Hash Table

Hash Table #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0001Two SumGoEasyO(n)O(n)47.6%
0003Longest Substring Without Repeating CharactersGoMediumO(n)O(1)❤️32.2%
0012Integer to RomanGoMedium58.1%
0013Roman to IntegerGoEasy57.6%
0017Letter Combinations of a Phone NumberGoMedium51.5%
0030Substring with Concatenation of All WordsGoHardO(n)O(n)❤️27.1%
0036Valid SudokuGoMediumO(n^2)O(n^2)52.8%
0041First Missing PositiveGoHard35.0%
0049Group AnagramsGoMediumO(n log n)O(n)61.8%
0073Set Matrix ZeroesGoMedium46.4%
0076Minimum Window SubstringGoHardO(n)O(n)❤️37.6%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium54.9%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium52.1%
0126Word Ladder IIGoHard25.5%
0127Word LadderGoHard33.4%
0128Longest Consecutive SequenceGoMedium47.8%
0138Copy List with Random PointerGoMediumO(n)O(1)43.8%
0141Linked List CycleGoEasy44.0%
0142Linked List Cycle IIGoMedium41.4%
0146LRU CacheGoMedium37.9%
0160Intersection of Two Linked ListsGoEasy46.9%
0169Majority ElementGoEasy61.2%
0187Repeated DNA SequencesGoMedium42.6%
0202Happy NumberGoEasyO(log n)O(1)52.0%
0205Isomorphic StringsGoEasyO(log n)O(n)41.5%
0208Implement Trie (Prefix Tree)GoMedium54.6%
0217Contains DuplicateGoEasyO(n)O(n)58.5%
0219Contains Duplicate IIGoEasyO(n)O(n)39.9%
0229Majority Element IIGoMedium40.3%
0242Valid AnagramGoEasyO(n)O(n)59.9%
0264Ugly Number IIGoMedium43.8%
0268Missing NumberGoEasy57.2%
0290Word PatternGoEasyO(n)O(n)38.9%
0347Top K Frequent ElementsGoMediumO(n)O(n)63.4%
0349Intersection of Two ArraysGoEasyO(n)O(n)67.0%
0350Intersection of Two Arrays IIGoEasyO(n)O(n)52.9%
0387First Unique Character in a StringGoEasy55.1%
0389Find the DifferenceGoEasy58.6%
0395Longest Substring with At Least K Repeating CharactersGoMedium44.1%
0409Longest PalindromeGoEasy52.6%
0421Maximum XOR of Two Numbers in an ArrayGoMedium55.0%
0423Reconstruct Original Digits from EnglishGoMedium51.4%
0424Longest Repeating Character ReplacementGoMedium49.5%
0433Minimum Genetic MutationGoMedium44.6%
0438Find All Anagrams in a StringGoMediumO(n)O(1)46.2%
0447Number of BoomerangsGoMediumO(n)O(1)53.0%
0448Find All Numbers Disappeared in an ArrayGoEasy57.1%
0451Sort Characters By FrequencyGoMediumO(n log n)O(1)65.7%
04544Sum IIGoMediumO(n^2)O(n)55.4%
0457Circular Array LoopGoMedium30.9%
0460LFU CacheGoHard38.0%
0480Sliding Window MedianGoHard40.0%
0491Increasing SubsequencesGoMedium49.3%
0496Next Greater Element IGoEasy67.3%
0500Keyboard RowGoEasy66.8%
0508Most Frequent Subtree SumGoMedium60.8%
0523Continuous Subarray SumGoMedium25.8%
0525Contiguous ArrayGoMedium44.3%
0532K-diff Pairs in an ArrayGoMedium36.6%
0535Encode and Decode TinyURLGoMedium82.9%
0554Brick WallGoMedium52.0%
0567Permutation in StringGoMedium44.7%
0575Distribute CandiesGoEasy65.0%
0594Longest Harmonious SubsequenceGoEasy51.9%
0599Minimum Index Sum of Two ListsGoEasy52.7%
0609Find Duplicate File in SystemGoMedium63.3%
0632Smallest Range Covering Elements from K ListsGoHard56.1%
0645Set MismatchGoEasy41.0%
0648Replace WordsGoMediumO(n)O(n)60.5%
0653Two Sum IV - Input is a BSTGoEasy57.6%
0676Implement Magic DictionaryGoMediumO(n)O(n)56.0%
0677Map Sum PairsGoMedium56.9%
0690Employee ImportanceGoEasy61.1%
0692Top K Frequent WordsGoMedium53.7%
0697Degree of an ArrayGoEasy55.0%
0705Design HashSetGoEasy63.9%
0706Design HashMapGoEasy63.9%
0710Random Pick with BlacklistGoHardO(n)O(n)33.3%
0720Longest Word in DictionaryGoMediumO(n)O(n)50.1%
0726Number of AtomsGoHardO(n)O(n)❤️51.3%
0748Shortest Completing WordGoEasy58.2%
0752Open the LockGoMedium54.9%
0763Partition LabelsGoMedium78.3%
0767Reorganize StringGoMedium51.0%
0771Jewels and StonesGoEasy87.3%
0781Rabbits in ForestGoMedium56.0%
0791Custom Sort StringGoMedium67.2%
0792Number of Matching SubsequencesGoMedium49.3%
0811Subdomain Visit CountGoMedium72.7%
0815Bus RoutesGoHard44.3%
0817Linked List ComponentsGoMedium57.9%
0819Most Common WordGoEasy45.4%
0820Short Encoding of WordsGoMedium55.0%
0823Binary Trees With FactorsGoMedium43.7%
0884Uncommon Words from Two SentencesGoEasy64.8%
0888Fair Candy SwapGoEasy59.8%
0890Find and Replace PatternGoMedium75.5%
0895Maximum Frequency StackGoHardO(n)O(n)64.0%
0904Fruit Into BasketsGoMedium43.2%
0911Online ElectionGoMedium51.8%
0914X of a Kind in a Deck of CardsGoEasy33.7%
0916Word SubsetsGoMedium52.8%
09233Sum With MultiplicityGoMedium41.1%
0930Binary Subarrays With SumGoMediumO(n)O(n)❤️46.8%
0953Verifying an Alien DictionaryGoEasy52.1%
0961N-Repeated Element in Size 2N ArrayGoEasy75.1%
0966Vowel SpellcheckerGoMedium51.7%
0970Powerful IntegersGoMedium43.4%
0981Time Based Key-Value StoreGoMedium53.7%
0987Vertical Order Traversal of a Binary TreeGoHard39.5%
0992Subarrays with K Different IntegersGoHardO(n)O(n)❤️52.2%
1002Find Common CharactersGoEasy68.7%
1048Longest String ChainGoMedium56.5%
1054Distant BarcodesGoMedium44.9%
1074Number of Submatrices That Sum to TargetGoHard65.7%
1122Relative Sort ArrayGoEasy67.9%
1123Lowest Common Ancestor of Deepest LeavesGoMedium68.9%
1128Number of Equivalent Domino PairsGoEasy45.8%
1160Find Words That Can Be Formed by CharactersGoEasy67.8%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium60.8%
1171Remove Zero Sum Consecutive Nodes from Linked ListGoMedium42.0%
1178Number of Valid Words for Each PuzzleGoHard40.8%
1189Maximum Number of BalloonsGoEasy62.6%
1202Smallest String With SwapsGoMedium50.4%
1207Unique Number of OccurrencesGoEasy72.4%
1275Find Winner on a Tic Tac Toe GameGoEasy53.4%
1396Design Underground SystemGoMedium71.8%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium73.5%
1461Check If a String Contains All Binary Codes of Size KGoMedium54.4%
1512Number of Good PairsGoEasy87.7%
1600Throne InheritanceGoMedium62.0%
1624Largest Substring Between Two Equal CharactersGoEasy58.8%
1636Sort Array by Increasing FrequencyGoEasy67.7%
1640Check Array Formation Through ConcatenationGoEasy55.4%
1656Design an Ordered StreamGoEasy82.2%
1657Determine if Two Strings Are CloseGoMedium54.7%
1658Minimum Operations to Reduce X to ZeroGoMedium33.3%
1674Minimum Moves to Make Array ComplementaryGoMedium36.7%
1679Max Number of K-Sum PairsGoMedium53.4%
1684Count the Number of Consistent StringsGoEasy81.8%
1695Maximum Erasure ValueGoMedium52.3%
1742Maximum Number of Balls in a BoxGoEasy73.2%
1748Sum of Unique ElementsGoEasy74.9%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

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