Table of Contents
Interview Questions
- Implement a hash map from scratch with basic operations (get, put, delete).
- Find two numbers in an array that add up to a target value using a hash table.
- Find the first non-repeating character in a string using a hash table.
- Check if two strings are anagrams using a hash table.
- Group anagrams from a list of strings.
- Implement an LRU (Least Recently Used) Cache using a hash table and a doubly linked list.
- Find the longest substring without repeating characters.
- Count the frequency of characters in a string.
- Find the common elements between two arrays.
- Check if a given array contains duplicate elements within
k
distance from each other.
Leave a Reply