## Hashing in Distributed Systems

Prerequisite – Hashing A distributed system is a network that consists of autonomous computers that are connected using a distribution middleware. They help in sharing… Read More »

- Find minimum difference between any two elements | Set 2
- Minimum cost to modify a string
- Queries to check if string B exists as substring in string A
- Count number of distinct substrings of a given length
- Count of pairs of strings which differ in exactly one position
- Find the number of p-sided squares in a grid with K blacks painted
- Count number of pairs in array having sum divisible by K | SET 2
- Sum of all odd frequency nodes of the Linked List
- Number of subarrays having sum of the form k^m, m >= 0
- Rearrange given string to maximize the occurrence of string t
- Total distinct pairs of ugly numbers from two arrays
- Number of ways in which the substring in range [L, R] can be formed using characters out of the range
- Number of times the given string occurs in the array in the range [l, r]
- Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number
- Count pairs with average present in the same array
- Total distinct pairs from two arrays such that second number can be obtained by inverting bits of first
- Check if a given number divides the sum of the factorials of its digits
- Kotlin Hashmap

Prerequisite – Hashing A distributed system is a network that consists of autonomous computers that are connected using a distribution middleware. They help in sharing… Read More »

Given a binary search tree of n nodes with distinct values. Also given are Q queries. Each query consists of a node value that has… Read More »

Given a string containing lowercase characters. The task is to print the maximum occurring character in the input string. If 2 or more characters appear… Read More »

Given a N x N binary matrix. The problem is finding the maximum area sub-matrix having a count of 1’s one more than count of… Read More »

Given a string of lowercase English alphabets, find the number of counterclockwise shifts of characters required to make the string palindrome. It is given that… Read More »

Given N rows with M elements each and an array arr[] of L numbers, the task is to print the count of elements of that… Read More »

Mid-Square hashing is a hashing technique in which unique keys are generated. In this technique, a seed value is taken and it is squared. Then,… Read More »

Given a string str, the task is to print the maximum count of characters which are greater than both its left and right character in… Read More »

Given the following input (4322, 1334, 1471, 9679, 1989, 6171, 6173, 4199) and the hash function x mod 10, which of the following statements are… Read More »

Consider a hash table of size seven, with starting index zero, and a hash function (3x + 4)mod7. Assuming the hash table is initially empty,… Read More »

The keys 12, 18, 13, 2, 3, 23, 5 and 15 are inserted into an initially empty hash table of length 10 using open addressing… Read More »

How many different insertion sequences of the key values using the hash function h(k) = k mod 10 and linear probing will result in the… Read More »

A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After inserting 6 values into an empty… Read More »