Hash Function Coding Problems

Design and use hash functions

39
Total Problems
4
Easy
14
Medium
19
Hard
Start Practicing
keyh(x)

Master DSA Topics - January, 2026

Practice problems across 75+ categories

Hash Function Coding Problems

Practice problems frequently asked at Hash Function 39 problems | 4 Easy | 14 Medium | 19 Hard

# Problem Difficulty Topics
1 Check If a String Contains All Binary Codes of Size K Medium
Hash TableStringBit Manipulation
2 Check if DFS Strings Are Palindromes Hard
ArrayHash TableString
3 Count Cells in Overlapping Horizontal and Vertical Substrings Medium
ArrayStringRolling Hash
4 Count Prefix and Suffix Pairs I Easy
ArrayStringTrie
5 Count Prefix and Suffix Pairs II Hard
ArrayStringTrie
6 Delete Duplicate Folders in System Hard
ArrayHash TableString
7 Design HashMap Easy
ArrayHash TableLinked List
8 Design HashSet Easy
ArrayHash TableLinked List
9 Distinct Echo Substrings Hard
StringTrieRolling Hash
10 Encode and Decode TinyURL Medium
Hash TableStringDesign
11 Equalize Strings by Adding or Removing Characters at Ends Medium
StringBinary SearchDynamic Programming
12 Find Beautiful Indices in the Given Array I Medium
Two PointersStringBinary Search
13 Find Beautiful Indices in the Given Array II Hard
Two PointersStringBinary Search
14 Find Pattern in Infinite Stream I Medium
ArraySliding WindowRolling Hash
15 Find Pattern in Infinite Stream II Hard
ArraySliding WindowRolling Hash
Showing 1-15 of 39
1 2 3

Tutorials Library

Master any technology with our largest free online Library. Browse through 500+ tutorials across 10+ categories.

Python

Python Tutorial

Java

Java Tutorial

JavaScript

JavaScript

C++

C++ Tutorial

C#

C# Tutorial

Go

Go Tutorial

Rust

Rust Tutorial

TypeScript

TypeScript

Swift

Swift Tutorial

Kotlin

Kotlin Tutorial

Ruby

Ruby Tutorial

PHP

PHP Tutorial

C

C Tutorial

Scala

Scala Tutorial

Perl

Perl Tutorial

R

R Tutorial

Dart

Dart Tutorial

Lua

Lua Tutorial

MATLAB

MATLAB

Haskell

Haskell

Developer Toolbox

Powerful online tools to boost your productivity

public class MyFirstJavaProgram { Edit & Run

   /* This is my first java program.
    * This will print 'Hello, World!' as the output
    */

   public static void main(String []args) {
      System.out.println("Hello, World!"); // prints
   }
}

Start Coding in Seconds

Coding Ground For Developers

Code, Edit, Run and Share

Ignite your coding potential on Coding Ground - an immersive online platform for hands-on learning, collaboration, and skill development.