method
Hash Table — animated LeetCode walkthroughs
LeetCode problems solved with Hash Table. Browse the complete tag, then watch the algorithm move — step-by-step animation, Python and Go.
898 problems · 761 animated · 137 locked
Start with a walkthrough
Full Hashing index
- 1Two SumWatch
- 3Longest Substring Without Repeating CharactersWatch
- 12Integer to RomanWatch
- 13Roman to IntegerWatch
- 17Letter Combinations of a Phone NumberWatch
- 30Substring with Concatenation of All WordsWatch
- 36Valid SudokuWatch
- 37Sudoku SolverWatch
- 41First Missing PositiveWatch
- 49Group AnagramsWatch
- 73Set Matrix ZeroesWatch
- 76Minimum Window SubstringWatch
- 105Construct Binary Tree from Preorder and Inorder TraversalWatch
- 106Construct Binary Tree from Inorder and Postorder TraversalWatch
- 126Word Ladder IIWatch
- 127Word LadderWatch
- 128Longest Consecutive SequenceWatch
- 133Clone GraphWatch
- 138Copy List with Random PointerWatch
- 139Word BreakWatch
- 140Word Break IIWatch
- 141Linked List CycleWatch
- 142Linked List Cycle IIWatch
- 146LRU CacheWatch
- 149Max Points on a LineWatch
- 159Longest Substring with At Most Two Distinct CharactersLocked
- 160Intersection of Two Linked ListsWatch
- 166Fraction to Recurring DecimalWatch
- 169Majority ElementWatch
- 170Two Sum III - Data structure designLocked
- 187Repeated DNA SequencesWatch
- 202Happy NumberWatch
- 205Isomorphic StringsWatch
- 208Implement Trie (Prefix Tree)Watch
- 214Shortest PalindromeWatch
- 217Contains DuplicateWatch
- 219Contains Duplicate IIWatch
- 229Majority Element IIWatch
- 242Valid AnagramWatch
- 244Shortest Word Distance IILocked
- 246Strobogrammatic NumberLocked
- 249Group Shifted StringsLocked
- 264Ugly Number IIWatch
- 266Palindrome PermutationLocked
- 267Palindrome Permutation IILocked
- 268Missing NumberWatch
- 288Unique Word AbbreviationLocked
- 290Word PatternWatch
- 291Word Pattern IILocked
- 299Bulls and CowsWatch
- 305Number of Islands IILocked
- 311Sparse Matrix MultiplicationLocked
- 314Binary Tree Vertical Order TraversalLocked
- 325Maximum Size Subarray Sum Equals kLocked
- 336Palindrome PairsWatch
- 340Longest Substring with At Most K Distinct CharactersLocked
- 347Top K Frequent ElementsWatch
- 348Design Tic-Tac-ToeLocked
- 349Intersection of Two ArraysWatch
- 350Intersection of Two Arrays IIWatch
- 352Data Stream as Disjoint IntervalsWatch
- 353Design Snake GameLocked
- 355Design TwitterWatch
- 356Line ReflectionLocked
- 358Rearrange String k Distance ApartLocked
- 359Logger Rate LimiterLocked
- 379Design Phone DirectoryLocked
- 380Insert Delete GetRandom O(1)Watch
- 381Insert Delete GetRandom O(1) - Duplicates allowedWatch
- 383Ransom NoteWatch
- 387First Unique Character in a StringWatch
- 389Find the DifferenceWatch
- 391Perfect RectangleWatch
- 395Longest Substring with At Least K Repeating CharactersWatch
- 398Random Pick IndexWatch
- 409Longest PalindromeWatch
- 421Maximum XOR of Two Numbers in an ArrayWatch
- 423Reconstruct Original Digits from EnglishWatch
- 424Longest Repeating Character ReplacementWatch
- 432All O`one Data StructureWatch
- 433Minimum Genetic MutationWatch
- 438Find All Anagrams in a StringWatch
- 442Find All Duplicates in an ArrayWatch
- 447Number of BoomerangsWatch
- 448Find All Numbers Disappeared in an ArrayWatch
- 451Sort Characters By FrequencyWatch
- 4544Sum IIWatch
- 457Circular Array LoopWatch
- 460LFU CacheWatch
- 480Sliding Window MedianWatch
- 491Non-decreasing SubsequencesWatch
- 496Next Greater Element IWatch
- 500Keyboard RowWatch
- 508Most Frequent Subtree SumWatch
- 519Random Flip MatrixWatch
- 522Longest Uncommon Subsequence IIWatch
- 523Continuous Subarray SumWatch
- 525Contiguous ArrayWatch
- 531Lonely Pixel ILocked
- 532K-diff Pairs in an ArrayWatch
- 533Lonely Pixel IILocked
- 535Encode and Decode TinyURLWatch
- 548Split Array with Equal SumLocked
- 554Brick WallWatch
- 560Subarray Sum Equals KWatch
- 567Permutation in StringWatch
- 572Subtree of Another TreeWatch
- 575Distribute CandiesWatch
- 582Kill ProcessLocked
- 588Design In-Memory File SystemLocked
- 594Longest Harmonious SubsequenceWatch
- 599Minimum Index Sum of Two ListsWatch
- 609Find Duplicate File in SystemWatch
- 616Add Bold Tag in StringLocked
- 621Task SchedulerWatch
- 631Design Excel Sum FormulaLocked
- 632Smallest Range Covering Elements from K ListsWatch
- 635Design Log Storage SystemLocked
- 645Set MismatchWatch
- 648Replace WordsWatch
- 652Find Duplicate SubtreesWatch
- 653Two Sum IV - Input is a BSTWatch
- 659Split Array into Consecutive SubsequencesWatch
- 666Path Sum IVLocked
- 676Implement Magic DictionaryWatch
- 677Map Sum PairsWatch
- 681Next Closest TimeLocked
- 690Employee ImportanceWatch
- 691Stickers to Spell WordWatch
- 692Top K Frequent WordsWatch
- 694Number of Distinct IslandsLocked
- 697Degree of an ArrayWatch
- 705Design HashSetWatch
- 706Design HashMapWatch
- 710Random Pick with BlacklistWatch
- 711Number of Distinct Islands IILocked
- 718Maximum Length of Repeated SubarrayWatch
- 720Longest Word in DictionaryWatch
- 721Accounts MergeWatch
- 726Number of AtomsWatch
- 734Sentence SimilarityLocked
- 736Parse Lisp ExpressionWatch
- 737Sentence Similarity IILocked
- 740Delete and EarnWatch
- 745Prefix and Suffix SearchWatch
- 748Shortest Completing WordWatch
- 752Open the LockWatch
- 756Pyramid Transition MatrixWatch
- 758Bold Words in StringLocked
- 760Find Anagram MappingsLocked
- 763Partition LabelsWatch
- 767Reorganize StringWatch
- 770Basic Calculator IVWatch
- 771Jewels and StonesWatch
- 781Rabbits in ForestWatch
- 791Custom Sort StringWatch
- 792Number of Matching SubsequencesWatch
- 804Unique Morse Code WordsWatch
- 805Split Array With Same AverageWatch
- 811Subdomain Visit CountWatch
- 815Bus RoutesWatch
- 817Linked List ComponentsWatch
- 819Most Common WordWatch
- 820Short Encoding of WordsWatch
- 822Card Flipping GameWatch
- 823Binary Trees With FactorsWatch
- 828Count Unique Characters of All Substrings of a Given StringWatch
- 833Find And Replace in StringWatch
- 839Similar String GroupsWatch
- 840Magic Squares In GridWatch
- 846Hand of StraightsWatch
- 854K-Similar StringsWatch
- 859Buddy StringsWatch
- 863All Nodes Distance K in Binary TreeWatch
- 865Smallest Subtree with all the Deepest NodesWatch
- 869Reordered Power of 2Watch
- 873Length of Longest Fibonacci SubsequenceWatch
- 874Walking Robot SimulationWatch
- 884Uncommon Words from Two SentencesWatch
- 888Fair Candy SwapWatch
- 889Construct Binary Tree from Preorder and Postorder TraversalWatch
- 890Find and Replace PatternWatch
- 893Groups of Special-Equivalent StringsWatch
- 895Maximum Frequency StackWatch
- 900RLE IteratorWatch
- 904Fruit Into BasketsWatch
- 911Online ElectionWatch
- 914X of a Kind in a Deck of CardsWatch
- 916Word SubsetsWatch
- 9233Sum With MultiplicityWatch
- 924Minimize Malware SpreadWatch
- 928Minimize Malware Spread IIWatch
- 929Unique Email AddressesWatch
- 930Binary Subarrays With SumWatch
- 939Minimum Area RectangleWatch
- 945Minimum Increment to Make Array UniqueWatch
- 947Most Stones Removed with Same Row or ColumnWatch
- 952Largest Component Size by Common FactorWatch
- 953Verifying an Alien DictionaryWatch
- 954Array of Doubled PairsWatch
- 957Prison Cells After N DaysWatch
- 959Regions Cut By SlashesWatch
- 961N-Repeated Element in Size 2N ArrayWatch
- 963Minimum Area Rectangle IIWatch
- 966Vowel SpellcheckerWatch
- 970Powerful IntegersWatch
- 974Subarray Sums Divisible by KWatch
- 981Time Based Key-Value StoreWatch
- 982Triples with Bitwise AND Equal To ZeroWatch
- 987Vertical Order Traversal of a Binary TreeWatch
- 992Subarrays with K Different IntegersWatch
- 996Number of Squareful ArraysWatch
- 997Find the Town JudgeWatch
- 1001Grid IlluminationWatch
- 1002Find Common CharactersWatch
- 1010Pairs of Songs With Total Durations Divisible by 60Watch
- 1015Smallest Integer Divisible by KWatch
- 1016Binary String With Substrings Representing 1 To NWatch
- 1027Longest Arithmetic SubsequenceWatch
- 1036Escape a Large MazeWatch
- 1044Longest Duplicate SubstringWatch
- 1048Longest String ChainWatch
- 1054Distant BarcodesWatch
- 1062Longest Repeating SubstringLocked
- 1072Flip Columns For Maximum Number of Equal RowsWatch
- 1074Number of Submatrices That Sum to TargetWatch
- 1079Letter Tile PossibilitiesWatch
- 1086High FiveLocked
- 1090Largest Values From LabelsWatch
- 1096Brace Expansion IIWatch
- 1100Find K-Length Substrings With No Repeated CharactersLocked
- 1110Delete Nodes And Return ForestWatch
- 1121Divide Array Into Increasing SequencesLocked
- 1122Relative Sort ArrayWatch
- 1123Lowest Common Ancestor of Deepest LeavesWatch
- 1124Longest Well-Performing IntervalWatch
- 1128Number of Equivalent Domino PairsWatch
- 1133Largest Unique NumberLocked
- 1138Alphabet Board PathWatch
- 1146Snapshot ArrayWatch
- 1147Longest Chunked Palindrome DecompositionWatch
- 1152Analyze User Website Visit PatternLocked
- 1153String Transforms Into Another StringLocked
- 1156Swap For Longest Repeated Character SubstringWatch
- 1160Find Words That Can Be Formed by CharactersWatch
- 1165Single-Row KeyboardLocked
- 1166Design File SystemLocked
- 1169Invalid TransactionsWatch
- 1170Compare Strings by Frequency of the Smallest CharacterWatch
- 1171Remove Zero Sum Consecutive Nodes from Linked ListWatch
- 1172Dinner Plate StacksWatch
- 1177Can Make Palindrome from SubstringWatch
- 1178Number of Valid Words for Each PuzzleWatch
- 1181Before and After PuzzleLocked
- 1189Maximum Number of BalloonsWatch
- 1198Find Smallest Common Element in All RowsLocked
- 1202Smallest String With SwapsWatch
- 1207Unique Number of OccurrencesWatch
- 1213Intersection of Three Sorted ArraysLocked
- 1218Longest Arithmetic Subsequence of Given DifferenceWatch
- 1221Split a String in Balanced StringsWatch
- 1224Maximum Equal FrequencyWatch
- 1244Design A LeaderboardLocked
- 1248Count Number of Nice SubarraysWatch
- 1255Maximum Score Words Formed by LettersWatch
- 1257Smallest Common RegionLocked
- 1258Synonymous SentencesLocked
- 1261Find Elements in a Contaminated Binary TreeWatch
- 1267Count Servers that CommunicateWatch
- 1275Find Winner on a Tic Tac Toe GameWatch
- 1282Group the People Given the Group Size They Belong ToWatch
- 1284Minimum Number of Flips to Convert Binary Matrix to Zero MatrixWatch
- 1296Divide Array in Sets of K Consecutive NumbersWatch
- 1297Maximum Number of Occurrences of a SubstringWatch
- 1311Get Watched Videos by Your FriendsWatch
- 1316Distinct Echo SubstringsWatch
- 1331Rank Transform of an ArrayWatch
- 1338Reduce Array Size to The HalfWatch
- 1345Jump Game IVWatch
- 1346Check If N and Its Double ExistWatch
- 1347Minimum Number of Steps to Make Two Strings AnagramWatch
- 1348Tweet Counts Per FrequencyWatch
- 1356Sort Integers by The Number of 1 BitsWatch
- 1357Apply Discount Every n OrdersWatch
- 1358Number of Substrings Containing All Three CharactersWatch
- 1365How Many Numbers Are Smaller Than the Current NumberWatch
- 1366Rank Teams by VotesWatch
- 1370Increasing Decreasing StringWatch
- 1371Find the Longest Substring Containing Vowels in Even CountsWatch
- 1386Cinema Seat AllocationWatch
- 1392Longest Happy PrefixWatch
- 1394Find Lucky Integer in an ArrayWatch
- 1396Design Underground SystemWatch
- 1399Count Largest GroupWatch
- 1400Construct K Palindrome StringsWatch
- 1410HTML Entity ParserWatch
- 1418Display Table of Food Orders in a RestaurantWatch
- 1419Minimum Number of Frogs CroakingWatch
- 1426Counting ElementsLocked
- 1429First Unique NumberLocked
- 1436Destination CityWatch
- 1442Count Triplets That Can Form Two Arrays of Equal XORWatch
- 1443Minimum Time to Collect All Apples in a TreeWatch
- 1452People Whose List of Favorite Companies Is Not a Subset of Another ListWatch
- 1460Make Two Arrays Equal by Reversing SubarraysWatch
- 1461Check If a String Contains All Binary Codes of Size KWatch
- 1477Find Two Non-overlapping Sub-arrays Each With Target SumWatch
- 1481Least Number of Unique Integers after K RemovalsWatch
- 1485Clone Binary Tree With Random PointerLocked
- 1487Making File Names UniqueWatch
- 1488Avoid Flood in The CityWatch
- 1490Clone N-ary TreeLocked
- 1496Path CrossingWatch
- 1497Check If Array Pairs Are Divisible by kWatch
- 1500Design a File Sharing SystemLocked
- 1506Find Root of N-Ary TreeLocked
- 1512Number of Good PairsWatch
- 1519Number of Nodes in the Sub-Tree With the Same LabelWatch
- 1520Maximum Number of Non-Overlapping SubstringsWatch
- 1525Number of Good Ways to Split a StringWatch
- 1540Can Convert String in K MovesWatch
- 1542Find Longest Awesome SubstringWatch
- 1546Maximum Number of Non-Overlapping Subarrays With Sum Equals TargetWatch
- 1554Strings Differ by One CharacterLocked
- 1562Find Latest Group of Size MWatch
- 1570Dot Product of Two Sparse VectorsLocked
- 1577Number of Ways Where Square of Number Is Equal to Product of Two NumbersWatch
- 1590Make Sum Divisible by PWatch
- 1593Split a String Into the Max Number of Unique SubstringsWatch
- 1600Throne InheritanceWatch
- 1603Design Parking SystemWatch
- 1604Alert Using Same Key-Card Three or More Times in a One Hour PeriodWatch
- 1612Check If Two Expression Trees are EquivalentLocked
- 1624Largest Substring Between Two Equal CharactersWatch
- 1630Arithmetic SubarraysWatch
- 1636Sort Array by Increasing FrequencyWatch
- 1638Count Substrings That Differ by One CharacterWatch
- 1640Check Array Formation Through ConcatenationWatch
- 1647Minimum Deletions to Make Character Frequencies UniqueWatch
- 1650Lowest Common Ancestor of a Binary Tree IIILocked
- 1654Minimum Jumps to Reach HomeWatch
- 1655Distribute Repeating IntegersWatch
- 1656Design an Ordered StreamWatch
- 1657Determine if Two Strings Are CloseWatch
- 1658Minimum Operations to Reduce X to ZeroWatch
- 1660Correct a Binary TreeLocked
- 1674Minimum Moves to Make Array ComplementaryWatch
- 1676Lowest Common Ancestor of a Binary Tree IVLocked
- 1679Max Number of K-Sum PairsWatch
- 1681Minimum IncompatibilityWatch
- 1684Count the Number of Consistent StringsWatch
- 1695Maximum Erasure ValueWatch
- 1698Number of Distinct Substrings in a StringLocked
- 1704Determine if String Halves Are AlikeWatch
- 1711Count Good MealsWatch
- 1713Minimum Operations to Make a SubsequenceWatch
- 1719Number Of Ways To Reconstruct A TreeWatch
- 1726Tuple with Same ProductWatch
- 1733Minimum Number of People to TeachWatch
- 1737Change Minimum Characters to Satisfy One of Three ConditionsWatch
- 1740Find Distance in a Binary TreeLocked
- 1742Maximum Number of Balls in a BoxWatch
- 1743Restore the Array From Adjacent PairsWatch
- 1748Sum of Unique ElementsWatch
- 1763Longest Nice SubstringWatch
- 1772Sort Features by PopularityLocked
- 1775Equal Sum Arrays With Minimum Number of OperationsWatch
- 1781Sum of Beauty of All SubstringsWatch
- 1782Count Pairs Of NodesWatch
- 1787Make the XOR of All Segments Equal to ZeroWatch
- 1788Maximize the Beauty of the GardenLocked
- 1790Check if One String Swap Can Make Strings EqualWatch
- 1794Count Pairs of Equal Substrings With Minimum DifferenceLocked
- 1796Second Largest Digit in a StringWatch
- 1797Design Authentication ManagerWatch
- 1804Implement Trie II (Prefix Tree)Locked
- 1805Number of Different Integers in a StringWatch
- 1807Evaluate the Bracket Pairs of a StringWatch
- 1814Count Nice Pairs in an ArrayWatch
- 1817Finding the Users Active MinutesWatch
- 1819Number of Different Subsequences GCDsWatch
- 1830Minimum Number of Operations to Make String SortedWatch
- 1832Check if the Sentence Is PangramWatch
- 1836Remove Duplicates From an Unsorted Linked ListLocked
- 1852Distinct Numbers in Each SubarrayLocked
- 1854Maximum Population YearWatch
- 1857Largest Color Value in a Directed GraphWatch
- 1862Sum of Floored PairsWatch
- 1865Finding Pairs With a Certain SumWatch
- 1876Substrings of Size Three with Distinct CharactersWatch
- 1893Check if All the Integers in a Range Are CoveredWatch
- 1897Redistribute Characters to Make All Strings EqualWatch
- 1912Design Movie Rental SystemWatch
- 1915Number of Wonderful SubstringsWatch
- 1923Longest Common SubpathWatch
- 1930Unique Length-3 Palindromic SubsequencesWatch
- 1932Merge BSTs to Create Single BSTWatch
- 1935Maximum Number of Words You Can TypeWatch
- 1938Maximum Genetic Difference QueryWatch
- 1940Longest Common Subsequence Between Sorted ArraysLocked
- 1941Check if All Characters Have Equal Number of OccurrencesWatch
- 1942The Number of the Smallest Unoccupied ChairWatch
- 1943Describe the PaintingWatch
- 1948Delete Duplicate Folders in SystemWatch
- 1960Maximum Product of the Length of Two Palindromic SubstringsWatch
- 1980Find Unique Binary StringWatch
- 1982Find Array Given Subset SumsWatch
- 1983Widest Pair of Indices With Equal Range SumLocked
- 1993Operations on TreeWatch
- 1994The Number of Good SubsetsWatch
- 1995Count Special QuadrupletsWatch
- 2001Number of Pairs of Interchangeable RectanglesWatch
- 2006Count Number of Pairs With Absolute Difference KWatch
- 2007Find Original Array From Doubled ArrayWatch
- 2008Maximum Earnings From TaxiWatch
- 2009Minimum Number of Operations to Make Array ContinuousWatch
- 2013Detect SquaresWatch
- 2014Longest Subsequence Repeated k TimesWatch
- 2019The Score of Students Solving Math ExpressionWatch
- 2023Number of Pairs of Strings With Concatenation Equal to TargetWatch
- 2025Maximum Number of Ways to Partition an ArrayWatch
- 2029Stone Game IXWatch
- 2031Count Subarrays With More Ones Than ZerosLocked
- 2032Two Out of ThreeWatch
- 2034Stock Price Fluctuation Watch
- 2043Simple Bank SystemWatch
- 2048Next Greater Numerically Balanced NumberWatch
- 2053Kth Distinct String in an ArrayWatch
- 2062Count Vowel Substrings of a StringWatch
- 2067Number of Equal Count SubstringsLocked
- 2068Check Whether Two Strings are Almost EquivalentWatch
- 2080Range Frequency QueriesWatch
- 2083Substrings That Begin and End With the Same LetterLocked
- 2085Count Common Words With One OccurrenceWatch
- 2094Finding 3-Digit Even NumbersWatch
- 2099Find Subsequence of Length K With the Largest SumWatch
- 2103Rings and RodsWatch
- 2107Number of Unique Flavors After Sharing K CandiesLocked
- 2115Find All Possible Recipes from Given SuppliesWatch
- 2121Intervals Between Identical ElementsWatch
- 2122Recover the Original ArrayWatch
- 2131Longest Palindrome by Concatenating Two Letter WordsWatch
- 2133Check if Every Row and Column Contains All NumbersWatch
- 2135Count Words Obtained After Adding a LetterWatch
- 2148Count Elements With Strictly Smaller and Greater Elements Watch
- 2150Find All Lonely Numbers in the ArrayWatch
- 2152Minimum Number of Lines to Cover PointsLocked
- 2154Keep Multiplying Found Values by TwoWatch
- 2156Find Substring With Given Hash ValueWatch
- 2157Groups of StringsWatch
- 2166Design BitsetWatch
- 2168Unique Substrings With Equal Digit FrequencyLocked
- 2170Minimum Operations to Make the Array AlternatingWatch
- 2182Construct String With Repeat LimitWatch
- 2183Count Array Pairs Divisible by KWatch
- 2186Minimum Number of Steps to Make Two Strings Anagram IIWatch
- 2190Most Frequent Number Following Key In an ArrayWatch
- 2196Create Binary Tree From DescriptionsWatch
- 2198Number of Single Divisor TripletsLocked
- 2201Count Artifacts That Can Be ExtractedWatch
- 2206Divide Array Into Equal PairsWatch
- 2215Find the Difference of Two ArraysWatch
- 2223Sum of Scores of Built StringsWatch
- 2225Find Players With Zero or One LossesWatch
- 2227Encrypt and Decrypt StringsWatch
- 2229Check if an Array Is ConsecutiveLocked
- 2244Minimum Rounds to Complete All TasksWatch
- 2248Intersection of Multiple ArraysWatch
- 2249Count Lattice Points Inside a CircleWatch
- 2250Count Number of Rectangles Containing Each PointWatch
- 2251Number of Flowers in Full BloomWatch
- 2254Design Video Sharing PlatformLocked
- 2260Minimum Consecutive Cards to Pick UpWatch
- 2261K Divisible Elements SubarraysWatch
- 2262Total Appeal of A StringWatch
- 2266Count Number of TextsWatch
- 2268Minimum Number of KeypressesLocked
- 2272Substring With Largest VarianceWatch
- 2273Find Resultant Array After Removing AnagramsWatch
- 2275Largest Combination With Bitwise AND Greater Than ZeroWatch
- 2283Check if Number Has Equal Digit Count and Digit ValueWatch
- 2284Sender With Largest Word CountWatch
- 2287Rearrange Characters to Make Target StringWatch
- 2295Replace Elements in an ArrayWatch
- 2301Match Substring After ReplacementWatch
- 2306Naming a CompanyWatch
- 2309Greatest English Letter in Upper and Lower CaseWatch
- 2325Decode the MessageWatch
- 2336Smallest Number in Infinite SetWatch
- 2341Maximum Number of Pairs in ArrayWatch
- 2342Max Sum of a Pair With Equal Sum of DigitsWatch
- 2347Best Poker HandWatch
- 2349Design a Number Container SystemWatch
- 2350Shortest Impossible Sequence of RollsWatch
- 2351First Letter to Appear TwiceWatch
- 2352Equal Row and Column PairsWatch
- 2353Design a Food Rating SystemWatch
- 2354Number of Excellent PairsWatch
- 2357Make Array Zero by Subtracting Equal AmountsWatch
- 2363Merge Similar ItemsWatch
- 2364Count Number of Bad PairsWatch
- 2365Task Scheduler IIWatch
- 2367Number of Arithmetic TripletsWatch
- 2368Reachable Nodes With RestrictionsWatch
- 2370Longest Ideal SubsequenceWatch
- 2374Node With Highest Edge ScoreWatch
- 2384Largest Palindromic NumberWatch
- 2385Amount of Time for Binary Tree to Be InfectedWatch
- 2395Find Subarrays With Equal SumWatch
- 2399Check Distances Between Same LettersWatch
- 2402Meeting Rooms IIIWatch
- 2404Most Frequent Even ElementWatch
- 2405Optimal Partition of StringWatch
- 2408Design SQLWatch
- 2416Sum of Prefix Scores of StringsWatch
- 2418Sort the PeopleWatch
- 2421Number of Good PathsWatch
- 2423Remove Letter To Equalize FrequencyWatch
- 2424Longest Uploaded PrefixWatch
- 2430Maximum Deletions on a StringWatch
- 2434Using a Robot to Print the Lexicographically Smallest StringWatch
- 2441Largest Positive Integer That Exists With Its NegativeWatch
- 2442Count Number of Distinct Integers After Reverse OperationsWatch
- 2451Odd String DifferenceWatch
- 2453Destroy Sequential TargetsWatch
- 2456Most Popular Video CreatorWatch
- 2459Sort Array by Moving Items to Empty SpaceLocked
- 2461Maximum Sum of Distinct Subarrays With Length KWatch
- 2465Number of Distinct AveragesWatch
- 2475Number of Unequal Triplets in ArrayWatch
- 2488Count Subarrays With Median KWatch
- 2489Number of Substrings With Fixed RatioLocked
- 2491Divide Players Into Teams of Equal SkillWatch
- 2499Minimum Total Cost to Make Arrays UnequalWatch
- 2501Longest Square Streak in an ArrayWatch
- 2502Design Memory AllocatorWatch
- 2506Count Pairs Of Similar StringsWatch
- 2508Add Edges to Make Degrees of All Nodes EvenWatch
- 2512Reward Top K StudentsWatch
- 2514Count AnagramsWatch
- 2516Take K of Each Character From Left and RightWatch
- 2521Distinct Prime Factors of Product of ArrayWatch
- 2524Maximum Frequency Score of a SubarrayLocked
- 2526Find Consecutive Integers from a Data StreamWatch
- 2529Maximum Count of Positive Integer and Negative IntegerWatch
- 2531Make Number of Distinct Characters EqualWatch
- 2537Count the Number of Good SubarraysWatch
- 2539Count the Number of Good SubsequencesLocked
- 2540Minimum Common ValueWatch
- 2547Minimum Cost to Split an ArrayWatch
- 2549Count Distinct Numbers on BoardWatch
- 2554Maximum Number of Integers to Choose From a Range IWatch
- 2561Rearranging FruitsWatch
- 2564Substring XOR QueriesWatch
- 2570Merge Two 2D Arrays by Summing ValuesWatch
- 2581Count Number of Possible Root NodesWatch
- 2584Split the Array to Make Coprime ProductsWatch
- 2586Count the Number of Vowel Strings in RangeWatch
- 2588Count the Number of Beautiful SubarraysWatch
- 2590Design a Todo ListLocked
- 2593Find Score of an Array After Marking All ElementsWatch
- 2597The Number of Beautiful SubsetsWatch
- 2598Smallest Missing Non-negative Integer After OperationsWatch
- 2605Form Smallest Number From Two Digit ArraysWatch
- 2606Find the Substring With Maximum CostWatch
- 2610Convert an Array Into a 2D Array With ConditionsWatch
- 2612Minimum Reverse OperationsWatch
- 2615Sum of DistancesWatch
- 2641Cousins in Binary Tree IIWatch
- 2653Sliding Subarray BeautyWatch
- 2657Find the Prefix Common Array of Two ArraysWatch
- 2661First Completely Painted Row or ColumnWatch
- 2670Find the Distinct Difference ArrayWatch
- 2671Frequency TrackerWatch
- 2682Find the Losers of the Circular GameWatch
- 2707Extra Characters in a StringWatch
- 2711Difference of Number of Distinct Values on DiagonalsWatch
- 2713Maximum Strictly Increasing Cells in a MatrixWatch
- 2716Minimize String LengthWatch
- 2718Sum of Matrix After QueriesWatch
- 2729Check if The Number is FascinatingWatch
- 2732Find a Good Subset of the MatrixWatch
- 2743Count Substrings Without Repeating CharacterLocked
- 2744Find Maximum Number of String PairsWatch
- 2747Count Zero Request ServersWatch
- 2748Number of Beautiful PairsWatch
- 2763Sum of Imbalance Numbers of All SubarraysWatch
- 2766Relocate MarblesWatch
- 2767Partition String Into Minimum Beautiful SubstringsWatch
- 2768Number of Black BlocksWatch
- 2780Minimum Index of a Valid SplitWatch
- 2781Length of the Longest Valid SubstringWatch
- 2782Number of Unique CategoriesLocked
- 2784Check if Array is GoodWatch
- 2791Count Paths That Can Form a Palindrome in a TreeWatch
- 2799Count Complete Subarrays in an ArrayWatch
- 2808Minimum Seconds to Equalize a Circular ArrayWatch
- 2813Maximum Elegance of a K-Length SubsequenceWatch
- 2815Max Pair Sum in an ArrayWatch
- 2830Maximize the Profit as the SalesmanWatch
- 2831Find the Longest Equal SubarrayWatch
- 2833Furthest Point From OriginWatch
- 2840Check if Strings Can be Made Equal With Operations IIWatch
- 2841Maximum Sum of Almost Unique SubarrayWatch
- 2842Count K-Subsequences of a String With Maximum BeautyWatch
- 2845Count of Interesting SubarraysWatch
- 2848Points That Intersect With CarsWatch
- 2852Sum of Remoteness of All CellsLocked
- 2856Minimum Array Length After Pair RemovalsWatch
- 2857Count Pairs of Points With Distance kWatch
- 2869Minimum Operations to Collect ElementsWatch
- 2870Minimum Number of Operations to Make Array EmptyWatch
- 2875Minimum Size Subarray in Infinite ArrayWatch
- 2897Apply Operations on Array to Maximize Sum of SquaresWatch
- 2898Maximum Linear Stock ScoreLocked
- 2902Count of Sub-Multisets With Bounded SumWatch
- 2910Minimum Number of Groups to Create a Valid AssignmentWatch
- 2913Subarrays Distinct Element Sum of Squares IWatch
- 2916Subarrays Distinct Element Sum of Squares IIWatch
- 2932Maximum Strong Pair XOR IWatch
- 2933High-Access EmployeesWatch
- 2935Maximum Strong Pair XOR IIWatch
- 2947Count Beautiful Substrings IWatch
- 2949Count Beautiful Substrings IIWatch
- 2950Number of Divisible SubstringsLocked
- 2953Count Complete SubstringsWatch
- 2955Number of Same-End SubstringsLocked
- 2956Find Common Elements Between Two ArraysWatch
- 2958Length of Longest Subarray With at Most K FrequencyWatch
- 2960Count Tested Devices After Test OperationsWatch
- 2963Count the Number of Good PartitionsWatch
- 2964Number of Divisible Triplet SumsLocked
- 2965Find Missing and Repeated ValuesWatch
- 2975Maximum Square Area by Removing Fences From a FieldWatch
- 2981Find Longest Special Substring That Occurs Thrice IWatch
- 2982Find Longest Special Substring That Occurs Thrice IIWatch
- 2983Palindrome Rearrangement QueriesWatch
- 2996Smallest Missing Integer Greater Than Sequential Prefix SumWatch
- 3002Maximum Size of a Set After RemovalsWatch
- 3005Count Elements With Maximum FrequencyWatch
- 3006Find Beautiful Indices in the Given Array IWatch
- 3008Find Beautiful Indices in the Given Array IIWatch
- 3009Maximum Number of Intersections on the ChartLocked
- 3013Divide an Array Into Subarrays With Minimum Cost IIWatch
- 3016Minimum Number of Pushes to Type Word IIWatch
- 3020Find the Maximum Number of Elements in SubsetWatch
- 3023Find Pattern in Infinite Stream ILocked
- 3026Maximum Good Subarray SumWatch
- 3029Minimum Time to Revert Word to Initial State IWatch
- 3031Minimum Time to Revert Word to Initial State IIWatch
- 3032Count Numbers With Unique Digits IILocked
- 3034Number of Subarrays That Match a Pattern IWatch
- 3035Maximum Palindromes After OperationsWatch
- 3036Number of Subarrays That Match a Pattern IIWatch
- 3037Find Pattern in Infinite Stream IILocked
- 3039Apply Operations to Make String EmptyWatch
- 3042Count Prefix and Suffix Pairs IWatch
- 3043Find the Length of the Longest Common PrefixWatch
- 3044Most Frequent PrimeWatch
- 3045Count Prefix and Suffix Pairs IIWatch
- 3046Split the ArrayWatch
- 3063Linked List FrequencyLocked
- 3071Minimum Operations to Write the Letter Y on a GridWatch
- 3076Shortest Uncommon Substring in an ArrayWatch
- 3078Match Alphanumerical Pattern in Matrix ILocked
- 3080Mark Elements on Array by Performing QueriesWatch
- 3081Replace Question Marks in String to Minimize Its ValueWatch
- 3083Existence of a Substring in a String and Its ReverseWatch
- 3084Count Substrings Starting and Ending with Given CharacterWatch
- 3085Minimum Deletions to Make String K-SpecialWatch
- 3090Maximum Length Substring With Two OccurrencesWatch
- 3092Most Frequent IDsWatch
- 3104Find Longest Self-Contained SubstringLocked
- 3120Count the Number of Special Characters IWatch
- 3121Count the Number of Special Characters IIWatch
- 3128Right TrianglesWatch
- 3134Find the Median of the Uniqueness ArrayWatch
- 3135Equalize Strings by Adding or Removing Characters at EndsLocked
- 3137Minimum Number of Operations to Make Word K-PeriodicWatch
- 3138Minimum Length of Anagram ConcatenationWatch
- 3143Maximum Points Inside the SquareWatch
- 3144Minimum Substring Partition of Equal Character FrequencyWatch
- 3146Permutation Difference between Two StringsWatch
- 3153Sum of Digit Differences of All PairsWatch
- 3158Find the XOR of Numbers Which Appear TwiceWatch
- 3159Find Occurrences of an Element in an ArrayWatch
- 3160Find the Number of Distinct Colors Among the BallsWatch
- 3162Find the Number of Good Pairs IWatch
- 3164Find the Number of Good Pairs IIWatch
- 3167Better Compression of StringLocked
- 3170Lexicographically Minimum String After Removing StarsWatch
- 3176Find the Maximum Length of a Good Subsequence IWatch
- 3177Find the Maximum Length of a Good Subsequence IIWatch
- 3184Count Pairs That Form a Complete Day IWatch
- 3185Count Pairs That Form a Complete Day IIWatch
- 3186Maximum Total Damage With Spell CastingWatch
- 3217Delete Nodes From Linked List Present in ArrayWatch
- 3223Minimum Length of String After OperationsWatch
- 3224Minimum Array Changes to Make Differences EqualWatch
- 3228Maximum Number of Operations to Move Ones to the EndWatch
- 3237Alt and Tab SimulationLocked
- 3238Find the Number of Winning PlayersWatch
- 3242Design Neighbor Sum ServiceWatch
- 3265Count Almost Equal Pairs IWatch
- 3267Count Almost Equal Pairs IIWatch
- 3272Find the Count of Good IntegersWatch
- 3279Maximum Total Area Occupied by PistonsLocked
- 3289The Two Sneaky Numbers of DigitvilleWatch
- 3291Minimum Number of Valid Strings to Form Target IWatch
- 3292Minimum Number of Valid Strings to Form Target IIWatch
- 3295Report Spam MessageWatch
- 3297Count Substrings That Can Be Rearranged to Contain a String IWatch
- 3298Count Substrings That Can Be Rearranged to Contain a String IIWatch
- 3299Sum of Consecutive SubsequencesLocked
- 3305Count of Substrings Containing Every Vowel and K Consonants IWatch
- 3306Count of Substrings Containing Every Vowel and K Consonants IIWatch
- 3311Construct 2D Grid Matching Graph LayoutWatch
- 3312Sorted GCD Pair QueriesWatch
- 3316Find Maximum Removals From Source StringWatch
- 3318Find X-Sum of All K-Long Subarrays IWatch
- 3321Find X-Sum of All K-Long Subarrays IIWatch
- 3325Count Substrings With K-Frequency Characters IWatch
- 3327Check if DFS Strings Are PalindromesWatch
- 3329Count Substrings With K-Frequency Characters IILocked
- 3331Find Subtree Sizes After ChangesWatch
- 3335Total Characters in String After Transformations IWatch
- 3337Total Characters in String After Transformations IIWatch
- 3351Sum of Good SubsequencesWatch
- 3365Rearrange K Substrings to Form Target StringWatch
- 3369Design an Array Statistics Tracker Locked
- 3371Identify the Largest Outlier in an ArrayWatch
- 3375Minimum Operations to Make Array Values Equal to KWatch
- 3378Count Connected Components in LCM GraphWatch
- 3381Maximum Subarray Sum With Length Divisible by KWatch
- 3389Minimum Operations to Make Character Frequencies EqualWatch
- 3391Design a 3D Binary Matrix with Efficient Layer TrackingLocked
- 3395Subsequences with a Unique Middle Mode IWatch
- 3396Minimum Number of Operations to Make Elements in Array DistinctWatch
- 3404Count Special SubsequencesWatch
- 3408Design Task ManagerWatch
- 3410Maximize Subarray Sum After Removing All Occurrences of One ElementWatch
- 3412Find Mirror Score of a StringWatch
- 3416Subsequences with a Unique Middle Mode IILocked
- 3422Minimum Operations to Make Subarray Elements EqualLocked
- 3425Longest Special PathWatch
- 3431Minimum Unlocked Indices to Sort NumsLocked
- 3434Maximum Frequency After Subarray OperationWatch
- 3438Find Valid Pair of Adjacent Digits in StringWatch
- 3442Maximum Difference Between Even and Odd Frequency IWatch
- 3443Maximum Manhattan Distance After K ChangesWatch
- 3447Assign Elements to Groups with ConstraintsWatch
- 3450Maximum Students on a Single BenchLocked
- 3458Select K Disjoint Special SubstringsWatch
- 3467Transform Array by ParityWatch
- 3471Find the Largest Almost Missing IntegerWatch
- 3481Apply SubstitutionsLocked
- 3483Unique 3-Digit Even NumbersWatch
- 3484Design SpreadsheetWatch
- 3486Longest Special Path IIWatch
- 3487Maximum Unique Subarray Sum After DeletionWatch
- 3488Closest Equal Element QueriesWatch
- 3493Properties GraphWatch
- 3505Minimum Operations to Make Elements Within K Subarrays EqualWatch
- 3507Minimum Pair Removal to Sort Array IWatch
- 3508Implement RouterWatch
- 3509Maximum Product of Subsequences With an Alternating Sum Equal to KWatch
- 3510Minimum Pair Removal to Sort Array IIWatch
- 3518Smallest Palindromic Rearrangement IIWatch
- 3522Calculate Score After Performing InstructionsWatch
- 3527Find the Most Common ResponseWatch
- 3529Count Cells in Overlapping Horizontal and Vertical SubstringsWatch
- 3531Count Covered BuildingsWatch
- 3532Path Existence Queries in a Graph IWatch
- 3541Find Most Frequent Vowel and ConsonantWatch
- 3542Minimum Operations to Convert All Elements to ZeroWatch
- 3543Maximum Weighted K-Edge PathWatch
- 3545Minimum Deletions for At Most K Distinct CharactersWatch
- 3548Equal Sum Grid Partition IIWatch
- 3551Minimum Swaps to Sort by Digit SumWatch
- 3552Grid Teleportation TraversalWatch
- 3556Sum of Largest Prime SubstringsWatch
- 3557Find Maximum Number of Non Intersecting SubstringsWatch
- 3568Minimum Moves to Clean the ClassroomWatch
- 3569Maximize Count of Distinct Primes After SplitWatch
- 3572Maximize Y‑Sum by Picking a Triplet of Distinct X‑ValuesWatch
- 3581Count Odd Letters from NumberLocked
- 3583Count Special TripletsWatch
- 3588Find Maximum Area of a TriangleWatch
- 3591Check if Any Element Has Prime FrequencyWatch
- 3597Partition String Watch
- 3606Coupon Code ValidatorWatch
- 3607Power Grid MaintenanceWatch
- 3623Count Number of Trapezoids IWatch
- 3625Count Number of Trapezoids IIWatch
- 3629Minimum Jumps to Reach End via Prime TeleportationWatch
- 3636Threshold Majority QueriesWatch
- 3641Longest Semi-Repeating SubarrayLocked
- 3654Minimum Sum After Divisible Sum DeletionsWatch
- 3659Partition Array Into K-Distinct GroupsWatch
- 3662Filter Characters by FrequencyLocked
- 3663Find The Least Frequent DigitWatch
- 3664Two-Letter Card GameWatch
- 3668Restore Finishing OrderWatch
- 3672Sum of Weighted Modes in SubarraysLocked
- 3678Smallest Absent Positive Greater Than AverageWatch
- 3679 Minimum Discards to Balance InventoryWatch
- 3682Minimum Index Sum of Common ElementsLocked
- 3684Maximize Sum of At Most K Distinct ElementsWatch
- 3690Split and Merge Array TransformationWatch
- 3692Majority Frequency CharactersWatch
- 3694Distinct Points Reachable After Substring RemovalWatch
- 3712Sum of Elements With Frequency Divisible by KWatch
- 3713Longest Balanced Substring IWatch
- 3714Longest Balanced Substring IIWatch
- 3715Sum of Perfect Square AncestorsWatch
- 3718Smallest Missing Multiple of KWatch
- 3719Longest Balanced Subarray IWatch
- 3720Lexicographically Smallest Permutation Greater Than TargetWatch
- 3721Longest Balanced Subarray IIWatch
- 3728Stable Subarrays With Equal Boundary and Interior SumWatch
- 3729Count Distinct Subarrays Divisible by K in Sorted ArrayWatch
- 3731Find Missing ElementsWatch
- 3735Lexicographically Smallest String After Reverse IILocked
- 3737Count Subarrays With Majority Element IWatch
- 3739Count Subarrays With Majority Element IIWatch
- 3740Minimum Distance Between Three Equal Elements IWatch
- 3741Minimum Distance Between Three Equal Elements IIWatch
- 3746Minimum String Length After Balanced RemovalsWatch
- 3749Evaluate Valid ExpressionsLocked
- 3755Find Maximum Balanced XOR Subarray LengthWatch
- 3760Maximum Substrings With Distinct StartWatch
- 3761Minimum Absolute Distance Between Mirror PairsWatch
- 3773Maximum Number of Equal Length RunsLocked
- 3779Minimum Number of Operations to Have Distinct ElementsWatch
- 3784Minimum Deletion Cost to Make All Characters EqualWatch
- 3785Minimum Swaps to Avoid Forbidden ValuesWatch
- 3790Smallest All-Ones MultipleWatch
- 3795Minimum Subarray Length With Distinct Sum At Least KWatch
- 3803Count Residue PrefixesWatch
- 3804Number of Centered SubarraysWatch
- 3805Count Caesar Cipher PairsWatch
- 3810Minimum Operations to Reach Target ArrayWatch
- 3811Number of Alternating XOR PartitionsWatch
- 3815Design Auction SystemWatch
- 3816Lexicographically Smallest String After Deleting Duplicate CharactersWatch
- 3822Design Order Management SystemLocked
- 3829Design Ride Sharing SystemWatch
- 3837Delayed Count of Equal ElementsLocked
- 3839Number of Prefix Connected GroupsWatch
- 3842Toggle Light BulbsWatch
- 3843First Element with Unique FrequencyWatch
- 3846Total Distance to Type a String Using One FingerLocked
- 3848Check Digitorial PermutationWatch
- 3851Maximum Requests Without Violating the LimitLocked
- 3852Smallest Pair With Different FrequenciesWatch
- 3853Merge Close CharactersWatch
- 3859Count Subarrays With K Distinct IntegersWatch
- 3860Unique Email GroupsLocked
- 3866First Unique Even ElementWatch
- 3868Minimum Cost to Equalize Arrays Using SwapsWatch
- 3873Maximum Points Activated with One AdditionWatch
- 3879Maximum Distinct Path Sum in a Binary TreeLocked
- 3885Design Event ManagerWatch
- 3889Mirror Frequency DistanceWatch
- 3890Integers With Multiple Sum of Two CubesWatch
- 3900Longest Balanced Substring After One SwapWatch
- 3913Sort Vowels by FrequencyWatch
- 3923Minimum Generations to Target PointWatch
- 3926Count Valid Word OccurrencesWatch
- 3927Minimize Array Sum Using Divisible ReplacementsWatch
- 3930Power Update After K-th Largest Insertion IILocked
- 3934Smallest Unique SubarrayWatch
- 3935Power Update After K-th Largest Insertion ILocked
- 3941Password StrengthWatch
- 3943Number of Pairs After IncrementWatch
- 3945Digit Frequency ScoreWatch
- 3948Lexicographically Maximum MEX ArrayWatch
- 3953Maximum Score with Co-Prime ElementWatch
- 3960Frequency Balance SubarrayWatch
- 3962Maximum Subarray Sum After at Most K SwapsWatch
- 3968Maximum Manhattan Distance After All MovesWatch
- 3969Valid Subarrays With Matching Sum Digits IWatch
- 3972Valid Subarrays With Matching Sum Digits IILocked
- 3978Unique Middle ElementWatch
- 3985Palindromic Subarray SumWatch
- 3991Sort Array Using Prefix ReversalsLocked
- 3999Minimum Number of String Groups Through TransformationsWatch
- 4005Minimum Operations to Make Array Equal IIILocked
- 4006Count Valid PrefixesWatch
- 4007Widest Possible FenceWatch
- 4019Merge Close Characters IILocked
- 4032Longest Subarray With at Most K Distinct Prime FactorsWatch
- 4033Valid K-Unique Subarrays IWatch
- 4038Count Integers Appearing in a Single BlockWatch
- 4042Valid K-Unique Subarrays IILocked
- 4047Minimum Operations to Make XOR of All Elements ZeroLocked
- 4048Count Values With Equally Spaced Occurrences IWatch
- 4049Count Values With Equally Spaced Occurrences IIWatch