2.13 Hash Table

Hash Table #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0001Two SumGoEasyO(n)O(n)48.7%
0003Longest Substring Without Repeating CharactersGoMediumO(n)O(1)❤️33.1%
0012Integer to RomanGoMedium59.6%
0013Roman to IntegerGoEasy57.9%
0017Letter Combinations of a Phone NumberGoMedium54.4%
0030Substring with Concatenation of All WordsGoHardO(n)O(n)❤️28.3%
0036Valid SudokuGoMediumO(n^2)O(n^2)55.4%
0041First Missing PositiveGoHard36.1%
0049Group AnagramsGoMediumO(n log n)O(n)64.5%
0073Set Matrix ZeroesGoMedium48.6%
0076Minimum Window SubstringGoHardO(n)O(n)❤️39.2%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium58.0%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium55.7%
0126Word Ladder IIGoHard27.1%
0127Word LadderGoHard35.6%
0128Longest Consecutive SequenceGoMedium48.8%
0138Copy List with Random PointerGoMediumO(n)O(1)48.5%
0141Linked List CycleGoEasy46.0%
0142Linked List Cycle IIGoMedium44.5%
0146LRU CacheGoMedium40.1%
0160Intersection of Two Linked ListsGoEasy50.3%
0169Majority ElementGoEasy63.1%
0187Repeated DNA SequencesGoMedium45.0%
0202Happy NumberGoEasyO(log n)O(1)53.4%
0205Isomorphic StringsGoEasyO(log n)O(n)42.2%
0208Implement Trie (Prefix Tree)GoMedium58.6%
0217Contains DuplicateGoEasyO(n)O(n)61.0%
0219Contains Duplicate IIGoEasyO(n)O(n)40.7%
0229Majority Element IIGoMedium42.7%
0242Valid AnagramGoEasyO(n)O(n)61.6%
0264Ugly Number IIGoMedium45.4%
0268Missing NumberGoEasy60.5%
0290Word PatternGoEasyO(n)O(n)40.2%
0299Bulls and CowsGoMedium47.4%
0347Top K Frequent ElementsGoMediumO(n)O(n)65.0%
0349Intersection of Two ArraysGoEasyO(n)O(n)69.3%
0350Intersection of Two Arrays IIGoEasyO(n)O(n)55.1%
0383Ransom NoteGoEasy56.0%
0387First Unique Character in a StringGoEasy57.3%
0389Find the DifferenceGoEasy60.5%
0395Longest Substring with At Least K Repeating CharactersGoMedium44.6%
0409Longest PalindromeGoEasy53.7%
0421Maximum XOR of Two Numbers in an ArrayGoMedium54.4%
0423Reconstruct Original Digits from EnglishGoMedium51.3%
0424Longest Repeating Character ReplacementGoMedium50.9%
0433Minimum Genetic MutationGoMedium47.0%
0438Find All Anagrams in a StringGoMediumO(n)O(1)48.4%
0447Number of BoomerangsGoMediumO(n)O(1)54.3%
0448Find All Numbers Disappeared in an ArrayGoEasy59.2%
0451Sort Characters By FrequencyGoMediumO(n log n)O(1)67.9%
04544Sum IIGoMediumO(n^2)O(n)57.1%
0457Circular Array LoopGoMedium31.8%
0460LFU CacheGoHard39.6%
0480Sliding Window MedianGoHard41.1%
0491Increasing SubsequencesGoMedium51.1%
0496Next Greater Element IGoEasy70.3%
0500Keyboard RowGoEasy68.2%
0508Most Frequent Subtree SumGoMedium63.1%
0519Random Flip MatrixGoMedium39.3%
0523Continuous Subarray SumGoMedium27.3%
0525Contiguous ArrayGoMedium46.4%
0532K-diff Pairs in an ArrayGoMedium40.3%
0535Encode and Decode TinyURLGoMedium85.5%
0554Brick WallGoMedium52.7%
0560Subarray Sum Equals KGoMedium44.2%
0567Permutation in StringGoMedium44.5%
0575Distribute CandiesGoEasy65.7%
0594Longest Harmonious SubsequenceGoEasy52.8%
0599Minimum Index Sum of Two ListsGoEasy52.7%
0609Find Duplicate File in SystemGoMedium63.8%
0632Smallest Range Covering Elements from K ListsGoHard58.8%
0645Set MismatchGoEasy41.3%
0648Replace WordsGoMediumO(n)O(n)62.1%
0653Two Sum IV - Input is a BSTGoEasy58.9%
0676Implement Magic DictionaryGoMediumO(n)O(n)56.6%
0677Map Sum PairsGoMedium57.0%
0690Employee ImportanceGoMedium64.3%
0692Top K Frequent WordsGoMedium54.5%
0697Degree of an ArrayGoEasy55.7%
0705Design HashSetGoEasy66.3%
0706Design HashMapGoEasy65.2%
0710Random Pick with BlacklistGoHardO(n)O(n)33.3%
0720Longest Word in DictionaryGoMediumO(n)O(n)51.1%
0726Number of AtomsGoHardO(n)O(n)❤️51.8%
0748Shortest Completing WordGoEasy59.0%
0752Open the LockGoMedium55.3%
0763Partition LabelsGoMedium79.6%
0767Reorganize StringGoMedium52.2%
0771Jewels and StonesGoEasy87.8%
0781Rabbits in ForestGoMedium55.7%
0791Custom Sort StringGoMedium69.2%
0792Number of Matching SubsequencesGoMedium50.6%
0811Subdomain Visit CountGoMedium74.4%
0815Bus RoutesGoHard45.3%
0817Linked List ComponentsGoMedium58.1%
0819Most Common WordGoEasy45.2%
0820Short Encoding of WordsGoMedium55.3%
0823Binary Trees With FactorsGoMedium43.7%
0828Count Unique Characters of All Substrings of a Given StringGoHard50.1%
0846Hand of StraightsGoMedium56.3%
0859Buddy StringsGoEasy28.8%
0884Uncommon Words from Two SentencesGoEasy65.7%
0888Fair Candy SwapGoEasy60.4%
0890Find and Replace PatternGoMedium75.6%
0895Maximum Frequency StackGoHardO(n)O(n)66.5%
0904Fruit Into BasketsGoMedium42.7%
0911Online ElectionGoMedium51.7%
0914X of a Kind in a Deck of CardsGoEasy32.8%
0916Word SubsetsGoMedium52.5%
09233Sum With MultiplicityGoMedium45.4%
0930Binary Subarrays With SumGoMediumO(n)O(n)❤️49.1%
0953Verifying an Alien DictionaryGoEasy52.5%
0961N-Repeated Element in Size 2N ArrayGoEasy75.5%
0966Vowel SpellcheckerGoMedium51.6%
0970Powerful IntegersGoMedium43.6%
0981Time Based Key-Value StoreGoMedium52.7%
0987Vertical Order Traversal of a Binary TreeGoHard41.7%
0992Subarrays with K Different IntegersGoHardO(n)O(n)❤️53.5%
0997Find the Town JudgeGoEasy49.7%
1002Find Common CharactersGoEasy68.4%
1010Pairs of Songs With Total Durations Divisible by 60GoMedium53.5%
1048Longest String ChainGoMedium57.9%
1054Distant BarcodesGoMedium45.2%
1074Number of Submatrices That Sum to TargetGoHard66.4%
1122Relative Sort ArrayGoEasy68.2%
1123Lowest Common Ancestor of Deepest LeavesGoMedium70.2%
1128Number of Equivalent Domino PairsGoEasy46.4%
1160Find Words That Can Be Formed by CharactersGoEasy67.7%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium61.1%
1171Remove Zero Sum Consecutive Nodes from Linked ListGoMedium42.7%
1178Number of Valid Words for Each PuzzleGoHard46.8%
1189Maximum Number of BalloonsGoEasy62.4%
1202Smallest String With SwapsGoMedium57.1%
1207Unique Number of OccurrencesGoEasy71.9%
1275Find Winner on a Tic Tac Toe GameGoEasy54.6%
1296Divide Array in Sets of K Consecutive NumbersGoMedium56.5%
1396Design Underground SystemGoMedium73.5%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium74.8%
1461Check If a String Contains All Binary Codes of Size KGoMedium56.8%
1512Number of Good PairsGoEasy88.0%
1600Throne InheritanceGoMedium63.2%
1624Largest Substring Between Two Equal CharactersGoEasy59.4%
1636Sort Array by Increasing FrequencyGoEasy68.4%
1640Check Array Formation Through ConcatenationGoEasy55.9%
1656Design an Ordered StreamGoEasy84.1%
1657Determine if Two Strings Are CloseGoMedium54.5%
1658Minimum Operations to Reduce X to ZeroGoMedium33.6%
1674Minimum Moves to Make Array ComplementaryGoMedium38.2%
1679Max Number of K-Sum PairsGoMedium57.6%
1684Count the Number of Consistent StringsGoEasy81.9%
1695Maximum Erasure ValueGoMedium52.5%
1742Maximum Number of Balls in a BoxGoEasy73.8%
1748Sum of Unique ElementsGoEasy75.6%
1763Longest Nice SubstringGoEasy61.9%
2043Simple Bank SystemGoMedium65.5%
2166Design BitsetGoMedium30.2%
2170Minimum Operations to Make the Array AlternatingGoMedium32.8%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

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