HashMap HashTable

Table of Contents

Interview Questions

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

Leave a Reply

Your email address will not be published. Required fields are marked *