2.13 Hash Table

Hash Table #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0001Two SumGoEasyO(n)O(n)48.0%
0003Longest Substring Without Repeating CharactersGoMediumO(n)O(1)❤️32.6%
0012Integer to RomanGoMedium58.6%
0013Roman to IntegerGoEasy57.7%
0017Letter Combinations of a Phone NumberGoMedium52.4%
0030Substring with Concatenation of All WordsGoHardO(n)O(n)❤️27.5%
0036Valid SudokuGoMediumO(n^2)O(n^2)53.8%
0041First Missing PositiveGoHard35.4%
0049Group AnagramsGoMediumO(n log n)O(n)62.8%
0073Set Matrix ZeroesGoMedium47.1%
0076Minimum Window SubstringGoHardO(n)O(n)❤️38.1%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium56.0%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium54.0%
0126Word Ladder IIGoHard26.2%
0127Word LadderGoHard34.1%
0128Longest Consecutive SequenceGoMedium48.2%
0138Copy List with Random PointerGoMediumO(n)O(1)45.3%
0141Linked List CycleGoEasy44.6%
0142Linked List Cycle IIGoMedium42.2%
0146LRU CacheGoMedium38.8%
0160Intersection of Two Linked ListsGoEasy48.1%
0169Majority ElementGoEasy61.7%
0187Repeated DNA SequencesGoMedium43.4%
0202Happy NumberGoEasyO(log n)O(1)52.4%
0205Isomorphic StringsGoEasyO(log n)O(n)41.7%
0208Implement Trie (Prefix Tree)GoMedium56.3%
0217Contains DuplicateGoEasyO(n)O(n)59.5%
0219Contains Duplicate IIGoEasyO(n)O(n)40.2%
0229Majority Element IIGoMedium41.1%
0242Valid AnagramGoEasyO(n)O(n)60.5%
0264Ugly Number IIGoMedium44.5%
0268Missing NumberGoEasy58.1%
0290Word PatternGoEasyO(n)O(n)39.2%
0299Bulls and CowsGoMedium46.4%
0347Top K Frequent ElementsGoMediumO(n)O(n)64.0%
0349Intersection of Two ArraysGoEasyO(n)O(n)67.8%
0350Intersection of Two Arrays IIGoEasyO(n)O(n)54.1%
0383Ransom NoteGoEasy55.0%
0387First Unique Character in a StringGoEasy56.0%
0389Find the DifferenceGoEasy59.0%
0395Longest Substring with At Least K Repeating CharactersGoMedium44.3%
0409Longest PalindromeGoEasy53.0%
0421Maximum XOR of Two Numbers in an ArrayGoMedium55.1%
0423Reconstruct Original Digits from EnglishGoMedium51.4%
0424Longest Repeating Character ReplacementGoMedium50.0%
0433Minimum Genetic MutationGoMedium45.2%
0438Find All Anagrams in a StringGoMediumO(n)O(1)46.9%
0447Number of BoomerangsGoMediumO(n)O(1)53.3%
0448Find All Numbers Disappeared in an ArrayGoEasy58.4%
0451Sort Characters By FrequencyGoMediumO(n log n)O(1)67.0%
04544Sum IIGoMediumO(n^2)O(n)55.7%
0457Circular Array LoopGoMedium31.2%
0460LFU CacheGoHard38.6%
0480Sliding Window MedianGoHard40.4%
0491Increasing SubsequencesGoMedium49.9%
0496Next Greater Element IGoEasy68.9%
0500Keyboard RowGoEasy67.3%
0508Most Frequent Subtree SumGoMedium61.7%
0519Random Flip MatrixGoMedium38.8%
0523Continuous Subarray SumGoMedium26.5%
0525Contiguous ArrayGoMedium44.7%
0532K-diff Pairs in an ArrayGoMedium37.2%
0535Encode and Decode TinyURLGoMedium83.2%
0554Brick WallGoMedium52.3%
0567Permutation in StringGoMedium44.2%
0575Distribute CandiesGoEasy65.2%
0594Longest Harmonious SubsequenceGoEasy52.3%
0599Minimum Index Sum of Two ListsGoEasy52.9%
0609Find Duplicate File in SystemGoMedium63.5%
0632Smallest Range Covering Elements from K ListsGoHard57.2%
0645Set MismatchGoEasy41.1%
0648Replace WordsGoMediumO(n)O(n)61.3%
0653Two Sum IV - Input is a BSTGoEasy58.2%
0676Implement Magic DictionaryGoMediumO(n)O(n)56.3%
0677Map Sum PairsGoMedium56.9%
0690Employee ImportanceGoMedium62.4%
0692Top K Frequent WordsGoMedium54.0%
0697Degree of an ArrayGoEasy55.3%
0705Design HashSetGoEasy63.8%
0706Design HashMapGoEasy63.7%
0710Random Pick with BlacklistGoHardO(n)O(n)33.1%
0720Longest Word in DictionaryGoMediumO(n)O(n)50.4%
0726Number of AtomsGoHardO(n)O(n)❤️51.6%
0748Shortest Completing WordGoEasy58.6%
0752Open the LockGoMedium55.1%
0763Partition LabelsGoMedium78.5%
0767Reorganize StringGoMedium51.4%
0771Jewels and StonesGoEasy87.5%
0781Rabbits in ForestGoMedium55.8%
0791Custom Sort StringGoMedium68.0%
0792Number of Matching SubsequencesGoMedium50.2%
0811Subdomain Visit CountGoMedium73.4%
0815Bus RoutesGoHard44.9%
0817Linked List ComponentsGoMedium57.9%
0819Most Common WordGoEasy45.3%
0820Short Encoding of WordsGoMedium55.1%
0823Binary Trees With FactorsGoMedium43.6%
0859Buddy StringsGoEasy28.7%
0884Uncommon Words from Two SentencesGoEasy65.1%
0888Fair Candy SwapGoEasy60.1%
0890Find and Replace PatternGoMedium75.5%
0895Maximum Frequency StackGoHardO(n)O(n)64.4%
0904Fruit Into BasketsGoMedium43.1%
0911Online ElectionGoMedium51.7%
0914X of a Kind in a Deck of CardsGoEasy33.6%
0916Word SubsetsGoMedium52.9%
09233Sum With MultiplicityGoMedium41.3%
0930Binary Subarrays With SumGoMediumO(n)O(n)❤️47.7%
0953Verifying an Alien DictionaryGoEasy52.2%
0961N-Repeated Element in Size 2N ArrayGoEasy75.2%
0966Vowel SpellcheckerGoMedium51.7%
0970Powerful IntegersGoMedium43.4%
0981Time Based Key-Value StoreGoMedium53.0%
0987Vertical Order Traversal of a Binary TreeGoHard40.3%
0992Subarrays with K Different IntegersGoHardO(n)O(n)❤️52.9%
0997Find the Town JudgeGoEasy49.9%
1002Find Common CharactersGoEasy68.4%
1048Longest String ChainGoMedium57.3%
1054Distant BarcodesGoMedium45.0%
1074Number of Submatrices That Sum to TargetGoHard66.0%
1122Relative Sort ArrayGoEasy68.0%
1123Lowest Common Ancestor of Deepest LeavesGoMedium69.3%
1128Number of Equivalent Domino PairsGoEasy45.9%
1160Find Words That Can Be Formed by CharactersGoEasy67.7%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium60.8%
1171Remove Zero Sum Consecutive Nodes from Linked ListGoMedium42.1%
1178Number of Valid Words for Each PuzzleGoHard47.0%
1189Maximum Number of BalloonsGoEasy62.5%
1202Smallest String With SwapsGoMedium51.5%
1207Unique Number of OccurrencesGoEasy72.2%
1275Find Winner on a Tic Tac Toe GameGoEasy55.7%
1396Design Underground SystemGoMedium71.6%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium74.0%
1461Check If a String Contains All Binary Codes of Size KGoMedium54.5%
1512Number of Good PairsGoEasy87.7%
1600Throne InheritanceGoMedium62.5%
1624Largest Substring Between Two Equal CharactersGoEasy59.1%
1636Sort Array by Increasing FrequencyGoEasy67.9%
1640Check Array Formation Through ConcatenationGoEasy55.5%
1656Design an Ordered StreamGoEasy82.8%
1657Determine if Two Strings Are CloseGoMedium54.7%
1658Minimum Operations to Reduce X to ZeroGoMedium33.4%
1674Minimum Moves to Make Array ComplementaryGoMedium37.0%
1679Max Number of K-Sum PairsGoMedium53.5%
1684Count the Number of Consistent StringsGoEasy81.7%
1695Maximum Erasure ValueGoMedium52.2%
1742Maximum Number of Balls in a BoxGoEasy73.3%
1748Sum of Unique ElementsGoEasy75.2%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

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