D3
Hashing
48 stations · 19hHash maps and sets for counting, lookup and dedup. 48 interview problems explained by codestorywithMIK (19h of video), grouped into 6 patterns such as Frequency Counting, Two Sum Style Lookup, Prefix Sum + HashMap.
Start this line →- Frequency Counting30
- Two Sum Style Lookup11
- Prefix Sum + HashMap4
- Grouping & Canonical Keys2
- Set Membership & Dedup5
- Hash Design1
Frequency Counting
0 of 30 passed- Find Players With Zero or One LossesLC 2225 · 15:55MediumGoogle · IndeedLeetCode ↗ (opens in a new tab)
- Unique Number of OccurrencesLC 1207 · 12:19EasyGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Count Nice Pairs in an ArrayLC 1814 · 17:55MediumGoogle · Meta · +3 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Number of Pushes to Type Word I and IILC 3014 · 31:28EasyGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Hand of StraightsLC 846 · 18:32MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Count Number of Bad PairsLC 2364 · 28:45MediumGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Index of a Valid SplitLC 2780 · 33:57MediumGoogle · Amazon · +1 more companiesLeetCode ↗ (opens in a new tab)
- Rabbits in ForestLC 781 · 28:31MediumGoogle · Amazon · +6 more companiesLeetCode ↗ (opens in a new tab)
- Total Characters in String After Transformations ILC 3335 · 23:30MediumGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Longest Palindrome by Concatenating Two Letter WordsLC 2131 · 17:35MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Bitwise ORs of SubarraysLC 898 · 25:59MediumGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Vowel SpellcheckerLC 966 · 28:22MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Next Greater Numerically Balanced NumberLC 2048 · 35:43MediumGoogle · Meta · +3 more companiesLeetCode ↗ (opens in a new tab)
- Count Special TripletsLC 3583 · 33:43MediumGoogle · Meta · +1 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Square Area by Removing Fences From a FieldLC 2975 · 32:50MediumGoogle · BloombergLeetCode ↗ (opens in a new tab)
- Check if Strings Can be Made Equal With Operations I and IILC 2839 · 30:44EasyGoogle · Microsoft · +1 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Distance Between Three Equal Elements I and IILC 3741 · 27:17EasyGoogle · AmazonLeetCode ↗ (opens in a new tab)
- Closest Equal Element QueriesLC 3488 · 23:18MediumGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Count the Number of Special Characters IILC 3121 · 14:27MediumGoogle · Amazon · +1 more companiesLeetCode ↗ (opens in a new tab)
- Find the Maximum Number of Elements in SubsetLC 3020 · 35:13MediumGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Redistribute Characters to Make All Strings EqualLC 1897 · 18:37EasyMoengageLeetCode ↗ (opens in a new tab)
- Count the Number of Consistent StringsLC 1684 · 14:34EasyGoogle · Bloomberg · +1 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Operations to Make Array Values Equal to KLC 3375 · 20:02EasyGoogle · Microsoft · +2 more companiesLeetCode ↗ (opens in a new tab)
- Find Lucky Integer in an ArrayLC 1394 · 39:00EasyGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- N-Repeated Element in Size 2N ArrayLC 961 · 24:19EasyGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
Two Sum Style Lookup
0 of 11 passed- Equal Row and Column PairsLC 2352 · 19:59MediumGoogle · Meta · +3 more companiesLeetCode ↗ (opens in a new tab)
- Number of Good PairsLC 1512 · 15:34EasyGoogle · Amazon · +6 more companiesLeetCode ↗ (opens in a new tab)
- Restore the Array From Adjacent PairsLC 1743 · 20:31MediumGoogle · Amazon · +7 more companiesLeetCode ↗ (opens in a new tab)
- Count Nice Pairs in an ArrayLC 1814 · 17:55MediumGoogle · Meta · +3 more companiesLeetCode ↗ (opens in a new tab)
- Check If Array Pairs Are Divisible by kLC 1497 · 24:00MediumGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Count Number of Bad PairsLC 2364 · 28:45MediumGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Pair Removal to Sort Array IILC 3510 · 1:02:31HardGoogle · Amazon · +1 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Absolute Distance Between Mirror PairsLC 3761 · 11:05MediumGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Evaluate the Bracket Pairs of a StringLC 1807 · 22:18MediumGoogle · RemitlyLeetCode ↗ (opens in a new tab)
- Number of Equivalent Domino PairsLC 1128 · 25:35EasyGoogle · Amazon · +1 more companiesLeetCode ↗ (opens in a new tab)
Prefix Sum + HashMap
0 of 4 passed- Check If Array Pairs Are Divisible by kLC 1497 · 24:00MediumGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Longest Balanced Substring IILC 3714 · 42:48MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Unique Subarray Sum After DeletionLC 3487 · 9:41EasyGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Smallest Missing Integer Greater Than Sequential Prefix SumLC 2996 · 10:27EasyGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
Grouping & Canonical Keys
0 of 2 passed- Isomorphic StringsLC 205 · 19:02EasyGoogle · Amazon · +13 more companiesLeetCode ↗ (opens in a new tab)
Set Membership & Dedup
0 of 5 passed- Unique Number of OccurrencesLC 1207 · 12:19EasyGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Replace WordsLC 648 · 14:34MediumGoogle · Microsoft · +2 more companiesLeetCode ↗ (opens in a new tab)
- Find the Number of Distinct Colors Among the BallsLC 3160 · 24:27MediumGoogle · Amazon · +1 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Unique Subarray Sum After DeletionLC 3487 · 9:41EasyGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
Hash Design
0 of 1 passed- Smallest Number in Infinite SetLC 2336 · 31:08MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
All 48 stations in order
- 1.Find Players With Zero or One Losses (LeetCode 2225)
- 2.Unique Number of Occurrences (LeetCode 1207)
- 3.Word Pattern -(Amazon, MakeMyTrip, Microsoft) : Explanation ➕ Live Coding (LeetCode 290)
- 4.Smallest Number in Infinite Set (LeetCode 2336)
- 5.Equal Row and Column Pairs (LeetCode 2352)
- 6.Number of Good Pairs (LeetCode 1512)
- 7.Binary Trees With Factors (LeetCode 823)
- 8.Restore the Array From Adjacent Pairs (LeetCode 1743)
- 9.Count Nice Pairs in an Array (LeetCode 1814)
- 10.Array Pair Sum Divisibility Problem
- 11.Minimum Number of Pushes to Type Word I and II (LeetCode 3014)
- 12.Hand of Straights (LeetCode 846)
- 13.Replace Words (LeetCode 648)
- 14.Check If Array Pairs Are Divisible by k (LeetCode 1497)
- 15.Find the Number of Distinct Colors Among the Balls (LeetCode 3160)
- 16.Count Number of Bad Pairs (LeetCode 2364)
- 17.Minimum Index of a Valid Split (LeetCode 2780)
- 18.Rabbits in Forest (LeetCode 781)
- 19.Total Characters in String After Transformations I (LeetCode 3335)
- 20.Longest Palindrome by Concatenating Two Letter Words (LeetCode 2131)
- 21.Bitwise ORs of Subarrays (LeetCode 898)
- 22.Vowel Spellchecker (LeetCode 966)
- 23.Next Greater Numerically Balanced Number (LeetCode 2048)
- 24.Count Special Triplets (LeetCode 3583)
- 25.Count Covered Buildings (LeetCode 3531)
- 26.Maximum Square Area by Removing Fences From a Field (LeetCode 2975)
- 27.Minimum Pair Removal to Sort Array II (LeetCode 3510)
- 28.Longest Balanced Substring II (LeetCode 3714)
- 29.Check if Strings Can be Made Equal With Operations I and II (LeetCode 2839)
- 30.Minimum Distance Between Three Equal Elements I and II (LeetCode 3741)
- 31.Closest Equal Element Queries (LeetCode 3488)
- 32.Minimum Absolute Distance Between Mirror Pairs (LeetCode 3761)
- 33.Count the Number of Special Characters II (LeetCode 3121)
- 34.Find the Maximum Number of Elements in Subset (LeetCode 3020)
- 35.Evaluate the Bracket Pairs of a String (LeetCode 1807)
- 36.Destination City (LeetCode 1436)
- 37.Path Crossing (LeetCode 1496)
- 38.Redistribute Characters to Make All Strings Equal (LeetCode 1897)
- 39.Isomorphic Strings (LeetCode 205)
- 40.Count the Number of Consistent Strings (LeetCode 1684)
- 41.Minimum Number of Operations to Make Elements in Array Distinct (LeetCode 3396)
- 42.Minimum Operations to Make Array Values Equal to K (LeetCode 3375)
- 43.Number of Equivalent Domino Pairs (LeetCode 1128)
- 44.Find Lucky Integer in an Array (LeetCode 1394)
- 45.Maximum Unique Subarray Sum After Deletion (LeetCode 3487)
- 46.Coupon Code Validator (LeetCode 3606)
- 47.N-Repeated Element in Size 2N Array (LeetCode 961)
- 48.Smallest Missing Integer Greater Than Sequential Prefix Sum (LeetCode 2996)