# Hash Table DSA Problems

> 708 Hash Table coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/hash-table
Last updated: 2026-11-28

708 hash table problems for coding interviews and campus placements, with hints and company tags. Below are the first 100 of 708: 100 easy, 0 medium and 0 hard. Practise them free on InternHack and track what you have solved.

## Hash Table problems, easiest first

1. [Best Poker Hand](https://www.internhack.in/learn/dsa/problem/best-poker-hand) (Easy)
2. [Buddy Strings](https://www.internhack.in/learn/dsa/problem/buddy-strings) (Easy)
3. [Check if All Characters Have Equal Number of Occurrences](https://www.internhack.in/learn/dsa/problem/check-if-all-characters-have-equal-number-of-occurrences) (Easy)
4. [Check if All the Integers in a Range Are Covered](https://www.internhack.in/learn/dsa/problem/check-if-all-the-integers-in-a-range-are-covered) (Easy)
5. [Check if Array is Good](https://www.internhack.in/learn/dsa/problem/check-if-array-is-good) (Easy)
6. [Check if Every Row and Column Contains All Numbers](https://www.internhack.in/learn/dsa/problem/check-if-every-row-and-column-contains-all-numbers) (Easy)
7. [Check If N and Its Double Exist](https://www.internhack.in/learn/dsa/problem/check-if-n-and-its-double-exist) (Easy)
8. [Check if Number Has Equal Digit Count and Digit Value](https://www.internhack.in/learn/dsa/problem/check-if-number-has-equal-digit-count-and-digit-value) (Easy)
9. [Check if One String Swap Can Make Strings Equal](https://www.internhack.in/learn/dsa/problem/check-if-one-string-swap-can-make-strings-equal) (Easy)
10. [Check if the Sentence Is Pangram](https://www.internhack.in/learn/dsa/problem/check-if-the-sentence-is-pangram) (Easy)
11. [Check Whether Two Strings are Almost Equivalent](https://www.internhack.in/learn/dsa/problem/check-whether-two-strings-are-almost-equivalent) (Easy)
12. [Contains Duplicate](https://www.internhack.in/learn/dsa/problem/contains-duplicate) (Easy)
13. [Contains Duplicate II](https://www.internhack.in/learn/dsa/problem/contains-duplicate-ii) (Easy)
14. [Count Common Words With One Occurrence](https://www.internhack.in/learn/dsa/problem/count-common-words-with-one-occurrence) (Easy)
15. [Count Distinct Numbers on Board](https://www.internhack.in/learn/dsa/problem/count-distinct-numbers-on-board) (Easy)
16. [Count Elements With Maximum Frequency](https://www.internhack.in/learn/dsa/problem/count-elements-with-maximum-frequency) (Easy)
17. [Count Largest Group](https://www.internhack.in/learn/dsa/problem/count-largest-group) (Easy)
18. [Count Number of Pairs With Absolute Difference K](https://www.internhack.in/learn/dsa/problem/count-number-of-pairs-with-absolute-difference-k) (Easy)
19. [Count Numbers With Unique Digits II](https://www.internhack.in/learn/dsa/problem/count-numbers-with-unique-digits-ii) (Easy)
20. [Count Pairs Of Similar Strings](https://www.internhack.in/learn/dsa/problem/count-pairs-of-similar-strings) (Easy)
21. [Count Pairs That Form a Complete Day I](https://www.internhack.in/learn/dsa/problem/count-pairs-that-form-a-complete-day-i) (Easy)
22. [Count Residue Prefixes](https://www.internhack.in/learn/dsa/problem/count-residue-prefixes) (Easy)
23. [Count Special Quadruplets](https://www.internhack.in/learn/dsa/problem/count-special-quadruplets) (Easy)
24. [Count the Number of Consistent Strings](https://www.internhack.in/learn/dsa/problem/count-the-number-of-consistent-strings) (Easy)
25. [Count the Number of Special Characters I](https://www.internhack.in/learn/dsa/problem/count-the-number-of-special-characters-i) (Easy)
26. [Count Vowel Substrings of a String](https://www.internhack.in/learn/dsa/problem/count-vowel-substrings-of-a-string) (Easy)
27. [Counting Elements](https://www.internhack.in/learn/dsa/problem/counting-elements) (Easy)
28. [Coupon Code Validator](https://www.internhack.in/learn/dsa/problem/coupon-code-validator) (Easy)
29. [Decode the Message](https://www.internhack.in/learn/dsa/problem/decode-the-message) (Easy)
30. [Degree of an Array](https://www.internhack.in/learn/dsa/problem/degree-of-an-array) (Easy)
31. [Design an Ordered Stream](https://www.internhack.in/learn/dsa/problem/design-an-ordered-stream) (Easy)
32. [Design HashMap](https://www.internhack.in/learn/dsa/problem/design-hashmap) (Easy)
33. [Design HashSet](https://www.internhack.in/learn/dsa/problem/design-hashset) (Easy)
34. [Destination City](https://www.internhack.in/learn/dsa/problem/destination-city) (Easy)
35. [Distribute Candies](https://www.internhack.in/learn/dsa/problem/distribute-candies) (Easy)
36. [Divide Array Into Equal Pairs](https://www.internhack.in/learn/dsa/problem/divide-array-into-equal-pairs) (Easy)
37. [Existence of a Substring in a String and Its Reverse](https://www.internhack.in/learn/dsa/problem/existence-of-a-substring-in-a-string-and-its-reverse) (Easy)
38. [Fair Candy Swap](https://www.internhack.in/learn/dsa/problem/fair-candy-swap) (Easy)
39. [Filter Characters by Frequency](https://www.internhack.in/learn/dsa/problem/filter-characters-by-frequency) (Easy)
40. [Find All Numbers Disappeared in an Array](https://www.internhack.in/learn/dsa/problem/find-all-numbers-disappeared-in-an-array) (Easy)
41. [Find Anagram Mappings](https://www.internhack.in/learn/dsa/problem/find-anagram-mappings) (Easy)
42. [Find Common Characters](https://www.internhack.in/learn/dsa/problem/find-common-characters) (Easy)
43. [Find Common Elements Between Two Arrays](https://www.internhack.in/learn/dsa/problem/find-common-elements-between-two-arrays) (Easy)
44. [Find Lucky Integer in an Array](https://www.internhack.in/learn/dsa/problem/find-lucky-integer-in-an-array) (Easy)
45. [Find Missing and Repeated Values](https://www.internhack.in/learn/dsa/problem/find-missing-and-repeated-values) (Easy)
46. [Find Missing Elements](https://www.internhack.in/learn/dsa/problem/find-missing-elements) (Easy)
47. [Find Most Frequent Vowel and Consonant](https://www.internhack.in/learn/dsa/problem/find-most-frequent-vowel-and-consonant) (Easy)
48. [Find Resultant Array After Removing Anagrams](https://www.internhack.in/learn/dsa/problem/find-resultant-array-after-removing-anagrams) (Easy)
49. [Find Subarrays With Equal Sum](https://www.internhack.in/learn/dsa/problem/find-subarrays-with-equal-sum) (Easy)
50. [Find Subsequence of Length K With the Largest Sum](https://www.internhack.in/learn/dsa/problem/find-subsequence-of-length-k-with-the-largest-sum) (Easy)
51. [Find the Difference](https://www.internhack.in/learn/dsa/problem/find-the-difference) (Easy)
52. [Find the Difference of Two Arrays](https://www.internhack.in/learn/dsa/problem/find-the-difference-of-two-arrays) (Easy)
53. [Find the Largest Almost Missing Integer](https://www.internhack.in/learn/dsa/problem/find-the-largest-almost-missing-integer) (Easy)
54. [Find The Least Frequent Digit](https://www.internhack.in/learn/dsa/problem/find-the-least-frequent-digit) (Easy)
55. [Find the Number of Good Pairs I](https://www.internhack.in/learn/dsa/problem/find-the-number-of-good-pairs-i) (Easy)
56. [Find the Number of Winning Players](https://www.internhack.in/learn/dsa/problem/find-the-number-of-winning-players) (Easy)
57. [Find the Town Judge](https://www.internhack.in/learn/dsa/problem/find-the-town-judge) (Easy)
58. [Find the XOR of Numbers Which Appear Twice](https://www.internhack.in/learn/dsa/problem/find-the-xor-of-numbers-which-appear-twice) (Easy)
59. [Find Valid Pair of Adjacent Digits in String](https://www.internhack.in/learn/dsa/problem/find-valid-pair-of-adjacent-digits-in-string) (Easy)
60. [Find Winner on a Tic Tac Toe Game](https://www.internhack.in/learn/dsa/problem/find-winner-on-a-tic-tac-toe-game) (Easy)
61. [Find Words That Can Be Formed by Characters](https://www.internhack.in/learn/dsa/problem/find-words-that-can-be-formed-by-characters) (Easy)
62. [Find X-Sum of All K-Long Subarrays I](https://www.internhack.in/learn/dsa/problem/find-x-sum-of-all-k-long-subarrays-i) (Easy)
63. [Finding 3-Digit Even Numbers](https://www.internhack.in/learn/dsa/problem/finding-3-digit-even-numbers) (Easy)
64. [First Letter to Appear Twice](https://www.internhack.in/learn/dsa/problem/first-letter-to-appear-twice) (Easy)
65. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
66. [Form Smallest Number From Two Digit Arrays](https://www.internhack.in/learn/dsa/problem/form-smallest-number-from-two-digit-arrays) (Easy)
67. [Greatest English Letter in Upper and Lower Case](https://www.internhack.in/learn/dsa/problem/greatest-english-letter-in-upper-and-lower-case) (Easy)
68. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
69. [High Five](https://www.internhack.in/learn/dsa/problem/high-five) (Easy)
70. [How Many Numbers Are Smaller Than the Current Number](https://www.internhack.in/learn/dsa/problem/how-many-numbers-are-smaller-than-the-current-number) (Easy)
71. [Increasing Decreasing String](https://www.internhack.in/learn/dsa/problem/increasing-decreasing-string) (Easy)
72. [Intersection of Multiple Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-multiple-arrays) (Easy)
73. [Intersection of Three Sorted Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-three-sorted-arrays) (Easy)
74. [Intersection of Two Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays) (Easy)
75. [Intersection of Two Arrays II](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays-ii) (Easy)
76. [Intersection of Two Linked Lists](https://www.internhack.in/learn/dsa/problem/intersection-of-two-linked-lists) (Easy)
77. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
78. [Jewels and Stones](https://www.internhack.in/learn/dsa/problem/jewels-and-stones) (Easy)
79. [Keep Multiplying Found Values by Two](https://www.internhack.in/learn/dsa/problem/keep-multiplying-found-values-by-two) (Easy)
80. [Keyboard Row](https://www.internhack.in/learn/dsa/problem/keyboard-row) (Easy)
81. [Kth Distinct String in an Array](https://www.internhack.in/learn/dsa/problem/kth-distinct-string-in-an-array) (Easy)
82. [Largest Positive Integer That Exists With Its Negative](https://www.internhack.in/learn/dsa/problem/largest-positive-integer-that-exists-with-its-negative) (Easy)
83. [Largest Substring Between Two Equal Characters](https://www.internhack.in/learn/dsa/problem/largest-substring-between-two-equal-characters) (Easy)
84. [Largest Unique Number](https://www.internhack.in/learn/dsa/problem/largest-unique-number) (Easy)
85. [Linked List Cycle](https://www.internhack.in/learn/dsa/problem/linked-list-cycle) (Easy)
86. [Logger Rate Limiter](https://www.internhack.in/learn/dsa/problem/logger-rate-limiter) (Easy)
87. [Longest Harmonious Subsequence](https://www.internhack.in/learn/dsa/problem/longest-harmonious-subsequence) (Easy)
88. [Longest Nice Substring](https://www.internhack.in/learn/dsa/problem/longest-nice-substring) (Easy)
89. [Longest Palindrome](https://www.internhack.in/learn/dsa/problem/longest-palindrome) (Easy)
90. [Majority Element](https://www.internhack.in/learn/dsa/problem/majority-element) (Easy)
91. [Make Array Zero by Subtracting Equal Amounts](https://www.internhack.in/learn/dsa/problem/make-array-zero-by-subtracting-equal-amounts) (Easy)
92. [Make Two Arrays Equal by Reversing Subarrays](https://www.internhack.in/learn/dsa/problem/make-two-arrays-equal-by-reversing-subarrays) (Easy)
93. [Max Pair Sum in an Array](https://www.internhack.in/learn/dsa/problem/max-pair-sum-in-an-array) (Easy)
94. [Maximum Difference Between Even and Odd Frequency I](https://www.internhack.in/learn/dsa/problem/maximum-difference-between-even-and-odd-frequency-i) (Easy)
95. [Maximum Length Substring With Two Occurrences](https://www.internhack.in/learn/dsa/problem/maximum-length-substring-with-two-occurrences) (Easy)
96. [Maximum Number of Balloons](https://www.internhack.in/learn/dsa/problem/maximum-number-of-balloons) (Easy)
97. [Maximum Number of Balls in a Box](https://www.internhack.in/learn/dsa/problem/maximum-number-of-balls-in-a-box) (Easy)
98. [Maximum Number of Pairs in Array](https://www.internhack.in/learn/dsa/problem/maximum-number-of-pairs-in-array) (Easy)
99. [Maximum Number of Words You Can Type](https://www.internhack.in/learn/dsa/problem/maximum-number-of-words-you-can-type) (Easy)
100. [Maximum Strong Pair XOR I](https://www.internhack.in/learn/dsa/problem/maximum-strong-pair-xor-i) (Easy)

## Companies that ask hash table problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 72 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 65 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 51 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 50 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 49 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 16 of these problems
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle): 16 of these problems
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture): 14 of these problems
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho): 13 of these problems
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex): 12 of these problems
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs): 11 of these problems
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs): 10 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)
- [Stack](https://www.internhack.in/learn/dsa/stack) (167)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
