Apple Hash Table Questions

74 hash table problems asked at Apple interviews

Easy (22)Medium (39)Hard (13)

Questions

TitleDifficulty
LRU CacheMedium
Two SumEasy
Longest Substring Without Repeating CharactersMedium
Valid SudokuMedium
Group AnagramsMedium
Top K Frequent ElementsMedium
Word LadderHard
Word BreakMedium
Max Points on a LineHard
Valid AnagramEasy
Ransom NoteEasy
Subarray Sum Equals KMedium
Design HashMapEasy
Time Based Key-Value StoreMedium
Snapshot ArrayMedium
Letter Combinations of a Phone NumberMedium
Set Matrix ZeroesMedium
Longest Consecutive SequenceMedium
Happy NumberEasy
Implement Trie (Prefix Tree)Medium
Insert Delete GetRandom O(1)Medium
First Unique Character in a StringEasy
Task SchedulerMedium
Number of Squareful ArraysHard
Find Winner on a Tic Tac Toe GameEasy
Number of Pairs of Strings With Concatenation Equal to TargetMedium
Calculate Score After Performing InstructionsMedium
Roman to IntegerEasy
First Missing PositiveHard
Majority ElementEasy
Contains DuplicateEasy
Missing NumberEasy
Intersection of Two ArraysEasy
Find All Anagrams in a StringMedium
LFU CacheHard
Verifying an Alien DictionaryEasy
Maximum Frequency StackHard
Minimum Window SubstringHard
Copy List with Random PointerMedium
Intersection of Two Linked ListsEasy
Isomorphic StringsEasy
Contains Duplicate IIEasy
Word PatternEasy
Design TwitterMedium
Longest Repeating Character ReplacementMedium
Find All Duplicates in an ArrayMedium
Find All Numbers Disappeared in an ArrayEasy
Next Greater Element IEasy
Continuous Subarray SumMedium
K-diff Pairs in an ArrayMedium
Top K Frequent WordsMedium
Accounts MergeMedium
Jewels and StonesEasy
Custom Sort StringMedium
Similar String GroupsHard
Hand of StraightsMedium
Pairs of Songs With Total Durations Divisible by 60Medium
Remove Zero Sum Consecutive Nodes from Linked ListMedium
Determine if Two Strings Are CloseMedium
First Letter to Appear TwiceEasy
Length of Longest Subarray With at Most K FrequencyMedium
Best Poker HandEasy
Sliding Window MedianHard
Clone GraphMedium
Word Ladder IIHard
Walking Robot SimulationMedium
Number of Matching SubsequencesMedium
Short Encoding of WordsMedium
Substring with Concatenation of All WordsHard
Sudoku SolverHard
Insert Delete GetRandom O(1) - Duplicates allowedHard
Find All Lonely Numbers in the ArrayMedium
Design Memory AllocatorMedium
Encode and Decode TinyURLMedium

Showing 74 questions