2.13 Hash Table

Hash Table #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0001Two SumGoEasyO(n)O(n)49.7%
0003Longest Substring Without Repeating CharactersGoMediumO(n)O(1)❤️33.8%
0012Integer to RomanGoMedium62.0%
0013Roman to IntegerGoEasy58.6%
0017Letter Combinations of a Phone NumberGoMedium56.6%
0030Substring with Concatenation of All WordsGoHardO(n)O(n)❤️31.2%
0036Valid SudokuGoMediumO(n^2)O(n^2)58.1%
0037Sudoku SolverGoHardO(n^2)O(n^2)❤️57.7%
0041First Missing PositiveGoHard36.7%
0049Group AnagramsGoMediumO(n log n)O(n)66.8%
0073Set Matrix ZeroesGoMedium51.3%
0076Minimum Window SubstringGoHardO(n)O(n)❤️40.9%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium61.6%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium60.0%
0126Word Ladder IIGoHard27.5%
0127Word LadderGoHard37.2%
0128Longest Consecutive SequenceGoMedium48.5%
0138Copy List with Random PointerGoMediumO(n)O(1)51.4%
0141Linked List CycleGoEasy47.5%
0142Linked List Cycle IIGoMedium48.8%
0146LRU CacheGoMedium40.7%
0160Intersection of Two Linked ListsGoEasy54.4%
0169Majority ElementGoEasy63.9%
0187Repeated DNA SequencesGoMedium47.0%
0202Happy NumberGoEasyO(log n)O(1)54.8%
0205Isomorphic StringsGoEasyO(log n)O(n)42.9%
0208Implement Trie (Prefix Tree)GoMedium62.8%
0217Contains DuplicateGoEasyO(n)O(n)61.4%
0219Contains Duplicate IIGoEasyO(n)O(n)42.6%
0229Majority Element IIGoMedium45.1%
0242Valid AnagramGoEasyO(n)O(n)63.1%
0264Ugly Number IIGoMedium46.2%
0268Missing NumberGoEasy62.6%
0290Word PatternGoEasyO(n)O(n)41.7%
0299Bulls and CowsGoMedium49.4%
0347Top K Frequent ElementsGoMediumO(n)O(n)64.2%
0349Intersection of Two ArraysGoEasyO(n)O(n)70.9%
0350Intersection of Two Arrays IIGoEasyO(n)O(n)56.0%
0383Ransom NoteGoEasy58.3%
0387First Unique Character in a StringGoEasy59.6%
0389Find the DifferenceGoEasy59.9%
0395Longest Substring with At Least K Repeating CharactersGoMedium44.8%
0409Longest PalindromeGoEasy54.2%
0421Maximum XOR of Two Numbers in an ArrayGoMedium54.0%
0423Reconstruct Original Digits from EnglishGoMedium51.2%
0424Longest Repeating Character ReplacementGoMedium52.0%
0433Minimum Genetic MutationGoMedium52.4%
0438Find All Anagrams in a StringGoMediumO(n)O(1)50.2%
0447Number of BoomerangsGoMediumO(n)O(1)54.9%
0448Find All Numbers Disappeared in an ArrayGoEasy59.9%
0451Sort Characters By FrequencyGoMediumO(n log n)O(1)70.1%
04544Sum IIGoMediumO(n^2)O(n)57.2%
0457Circular Array LoopGoMedium32.6%
0460LFU CacheGoHard43.0%
0480Sliding Window MedianGoHard41.1%
0491Non-decreasing SubsequencesGoMedium60.2%
0496Next Greater Element IGoEasy71.4%
0500Keyboard RowGoEasy69.6%
0508Most Frequent Subtree SumGoMedium64.9%
0519Random Flip MatrixGoMedium40.0%
0523Continuous Subarray SumGoMedium28.5%
0525Contiguous ArrayGoMedium46.8%
0532K-diff Pairs in an ArrayGoMedium41.2%
0535Encode and Decode TinyURLGoMedium86.0%
0554Brick WallGoMedium53.6%
0560Subarray Sum Equals KGoMedium43.7%
0567Permutation in StringGoMedium44.3%
0575Distribute CandiesGoEasy66.5%
0594Longest Harmonious SubsequenceGoEasy53.5%
0599Minimum Index Sum of Two ListsGoEasy53.4%
0609Find Duplicate File in SystemGoMedium67.7%
0632Smallest Range Covering Elements from K ListsGoHard61.0%
0645Set MismatchGoEasy42.7%
0648Replace WordsGoMediumO(n)O(n)62.7%
0653Two Sum IV - Input is a BSTGoEasy61.0%
0676Implement Magic DictionaryGoMediumO(n)O(n)56.9%
0677Map Sum PairsGoMedium56.8%
0690Employee ImportanceGoMedium65.6%
0692Top K Frequent WordsGoMedium57.2%
0697Degree of an ArrayGoEasy56.0%
0705Design HashSetGoEasy65.6%
0706Design HashMapGoEasy64.7%
0710Random Pick with BlacklistGoHardO(n)O(n)33.5%
0720Longest Word in DictionaryGoMediumO(n)O(n)52.0%
0726Number of AtomsGoHardO(n)O(n)❤️52.2%
0745Prefix and Suffix SearchGoHard41.2%
0748Shortest Completing WordGoEasy59.3%
0752Open the LockGoMedium55.6%
0763Partition LabelsGoMedium79.7%
0767Reorganize StringGoMedium52.9%
0771Jewels and StonesGoEasy88.2%
0781Rabbits in ForestGoMedium54.7%
0791Custom Sort StringGoMedium69.1%
0792Number of Matching SubsequencesGoMedium51.6%
0811Subdomain Visit CountGoMedium75.5%
0815Bus RoutesGoHard45.6%
0817Linked List ComponentsGoMedium57.7%
0819Most Common WordGoEasy44.7%
0820Short Encoding of WordsGoMedium60.6%
0823Binary Trees With FactorsGoMedium49.7%
0828Count Unique Characters of All Substrings of a Given StringGoHard51.6%
0846Hand of StraightsGoMedium56.2%
0859Buddy StringsGoEasy29.2%
0884Uncommon Words from Two SentencesGoEasy66.4%
0888Fair Candy SwapGoEasy60.7%
0890Find and Replace PatternGoMedium77.6%
0895Maximum Frequency StackGoHardO(n)O(n)66.6%
0904Fruit Into BasketsGoMedium43.7%
0911Online ElectionGoMedium52.2%
0914X of a Kind in a Deck of CardsGoEasy31.2%
0916Word SubsetsGoMedium53.7%
09233Sum With MultiplicityGoMedium45.3%
0930Binary Subarrays With SumGoMediumO(n)O(n)❤️52.2%
0953Verifying an Alien DictionaryGoEasy54.5%
0961N-Repeated Element in Size 2N ArrayGoEasy76.1%
0966Vowel SpellcheckerGoMedium51.4%
0970Powerful IntegersGoMedium43.6%
0981Time Based Key-Value StoreGoMedium52.2%
0987Vertical Order Traversal of a Binary TreeGoHard45.1%
0992Subarrays with K Different IntegersGoHardO(n)O(n)❤️54.6%
0997Find the Town JudgeGoEasy49.5%
1002Find Common CharactersGoEasy68.5%
1010Pairs of Songs With Total Durations Divisible by 60GoMedium52.8%
1048Longest String ChainGoMedium59.3%
1054Distant BarcodesGoMedium45.9%
1074Number of Submatrices That Sum to TargetGoHard69.5%
1079Letter Tile PossibilitiesGoMedium76.0%
1122Relative Sort ArrayGoEasy68.6%
1123Lowest Common Ancestor of Deepest LeavesGoMedium70.9%
1128Number of Equivalent Domino PairsGoEasy47.1%
1160Find Words That Can Be Formed by CharactersGoEasy67.5%
1170Compare Strings by Frequency of the Smallest CharacterGoMedium61.5%
1171Remove Zero Sum Consecutive Nodes from Linked ListGoMedium43.2%
1178Number of Valid Words for Each PuzzleGoHard46.3%
1189Maximum Number of BalloonsGoEasy61.0%
1202Smallest String With SwapsGoMedium57.7%
1207Unique Number of OccurrencesGoEasy73.5%
1275Find Winner on a Tic Tac Toe GameGoEasy54.2%
1296Divide Array in Sets of K Consecutive NumbersGoMedium56.5%
1396Design Underground SystemGoMedium73.6%
1442Count Triplets That Can Form Two Arrays of Equal XORGoMedium76.1%
1461Check If a String Contains All Binary Codes of Size KGoMedium56.6%
1512Number of Good PairsGoEasy88.2%
1600Throne InheritanceGoMedium63.6%
1624Largest Substring Between Two Equal CharactersGoEasy59.1%
1636Sort Array by Increasing FrequencyGoEasy69.5%
1640Check Array Formation Through ConcatenationGoEasy56.2%
1647Minimum Deletions to Make Character Frequencies UniqueGoMedium59.1%
1656Design an Ordered StreamGoEasy85.2%
1657Determine if Two Strings Are CloseGoMedium56.3%
1658Minimum Operations to Reduce X to ZeroGoMedium37.6%
1674Minimum Moves to Make Array ComplementaryGoMedium38.7%
1679Max Number of K-Sum PairsGoMedium57.3%
1684Count the Number of Consistent StringsGoEasy82.3%
1695Maximum Erasure ValueGoMedium57.6%
1742Maximum Number of Balls in a BoxGoEasy73.6%
1748Sum of Unique ElementsGoEasy76.3%
1763Longest Nice SubstringGoEasy61.5%
2043Simple Bank SystemGoMedium65.2%
2166Design BitsetGoMedium31.8%
2170Minimum Operations to Make the Array AlternatingGoMedium33.2%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

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