Hash Table DSA Problems

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 (Easy)
  2. Buddy Strings (Easy)
  3. Check if All Characters Have Equal Number of Occurrences (Easy)
  4. Check if All the Integers in a Range Are Covered (Easy)
  5. Check if Array is Good (Easy)
  6. Check if Every Row and Column Contains All Numbers (Easy)
  7. Check If N and Its Double Exist (Easy)
  8. Check if Number Has Equal Digit Count and Digit Value (Easy)
  9. Check if One String Swap Can Make Strings Equal (Easy)
  10. Check if the Sentence Is Pangram (Easy)
  11. Check Whether Two Strings are Almost Equivalent (Easy)
  12. Contains Duplicate (Easy)
  13. Contains Duplicate II (Easy)
  14. Count Common Words With One Occurrence (Easy)
  15. Count Distinct Numbers on Board (Easy)
  16. Count Elements With Maximum Frequency (Easy)
  17. Count Largest Group (Easy)
  18. Count Number of Pairs With Absolute Difference K (Easy)
  19. Count Numbers With Unique Digits II (Easy)
  20. Count Pairs Of Similar Strings (Easy)
  21. Count Pairs That Form a Complete Day I (Easy)
  22. Count Residue Prefixes (Easy)
  23. Count Special Quadruplets (Easy)
  24. Count the Number of Consistent Strings (Easy)
  25. Count the Number of Special Characters I (Easy)
  26. Count Vowel Substrings of a String (Easy)
  27. Counting Elements (Easy)
  28. Coupon Code Validator (Easy)
  29. Decode the Message (Easy)
  30. Degree of an Array (Easy)
  31. Design an Ordered Stream (Easy)
  32. Design HashMap (Easy)
  33. Design HashSet (Easy)
  34. Destination City (Easy)
  35. Distribute Candies (Easy)
  36. Divide Array Into Equal Pairs (Easy)
  37. Existence of a Substring in a String and Its Reverse (Easy)
  38. Fair Candy Swap (Easy)
  39. Filter Characters by Frequency (Easy)
  40. Find All Numbers Disappeared in an Array (Easy)
  41. Find Anagram Mappings (Easy)
  42. Find Common Characters (Easy)
  43. Find Common Elements Between Two Arrays (Easy)
  44. Find Lucky Integer in an Array (Easy)
  45. Find Missing and Repeated Values (Easy)
  46. Find Missing Elements (Easy)
  47. Find Most Frequent Vowel and Consonant (Easy)
  48. Find Resultant Array After Removing Anagrams (Easy)
  49. Find Subarrays With Equal Sum (Easy)
  50. Find Subsequence of Length K With the Largest Sum (Easy)
  51. Find the Difference (Easy)
  52. Find the Difference of Two Arrays (Easy)
  53. Find the Largest Almost Missing Integer (Easy)
  54. Find The Least Frequent Digit (Easy)
  55. Find the Number of Good Pairs I (Easy)
  56. Find the Number of Winning Players (Easy)
  57. Find the Town Judge (Easy)
  58. Find the XOR of Numbers Which Appear Twice (Easy)
  59. Find Valid Pair of Adjacent Digits in String (Easy)
  60. Find Winner on a Tic Tac Toe Game (Easy)
  61. Find Words That Can Be Formed by Characters (Easy)
  62. Find X-Sum of All K-Long Subarrays I (Easy)
  63. Finding 3-Digit Even Numbers (Easy)
  64. First Letter to Appear Twice (Easy)
  65. First Unique Character in a String (Easy)
  66. Form Smallest Number From Two Digit Arrays (Easy)
  67. Greatest English Letter in Upper and Lower Case (Easy)
  68. Happy Number (Easy)
  69. High Five (Easy)
  70. How Many Numbers Are Smaller Than the Current Number (Easy)
  71. Increasing Decreasing String (Easy)
  72. Intersection of Multiple Arrays (Easy)
  73. Intersection of Three Sorted Arrays (Easy)
  74. Intersection of Two Arrays (Easy)
  75. Intersection of Two Arrays II (Easy)
  76. Intersection of Two Linked Lists (Easy)
  77. Isomorphic Strings (Easy)
  78. Jewels and Stones (Easy)
  79. Keep Multiplying Found Values by Two (Easy)
  80. Keyboard Row (Easy)
  81. Kth Distinct String in an Array (Easy)
  82. Largest Positive Integer That Exists With Its Negative (Easy)
  83. Largest Substring Between Two Equal Characters (Easy)
  84. Largest Unique Number (Easy)
  85. Linked List Cycle (Easy)
  86. Logger Rate Limiter (Easy)
  87. Longest Harmonious Subsequence (Easy)
  88. Longest Nice Substring (Easy)
  89. Longest Palindrome (Easy)
  90. Majority Element (Easy)
  91. Make Array Zero by Subtracting Equal Amounts (Easy)
  92. Make Two Arrays Equal by Reversing Subarrays (Easy)
  93. Max Pair Sum in an Array (Easy)
  94. Maximum Difference Between Even and Odd Frequency I (Easy)
  95. Maximum Length Substring With Two Occurrences (Easy)
  96. Maximum Number of Balloons (Easy)
  97. Maximum Number of Balls in a Box (Easy)
  98. Maximum Number of Pairs in Array (Easy)
  99. Maximum Number of Words You Can Type (Easy)
  100. Maximum Strong Pair XOR I (Easy)

Companies that ask hash table problems

Before your interview

Most resumes are filtered by software before a recruiter reads them. Check your resume ATS score free, no signup needed.

Other DSA topics