Hash Table Problems

Master hash tables by solving these carefully selected problems

Problems

1. Two Sum
Given an array of integers `nums` and an integer `target`, return indices of the two numbers such that they add up to `target`.
Easy
49. Group Anagrams
Given an array of strings `strs`, group the anagrams together. You can return the answer in any order.
Medium
128. Longest Consecutive Sequence
Given an unsorted array of integers `nums`, return the length of the longest consecutive elements sequence.
Medium
146. LRU Cache
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.
Medium
76. Minimum Window Substring
Given two strings `s` and `t` of lengths `m` and `n` respectively, return the minimum window substring of `s` such that every character in `t` (including duplicates) is included in the window. If there is no such substring, return the empty string `""`.
Hard