## Maximum sub-matrix area having count of 1’s one more than count of 0’s

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 »

- Count pairs in array whose sum is divisible by K
- Find minimum difference between any two elements | Set 2
- Count sub-arrays whose product is divisible by k
- Queries to check if string B exists as substring in string A
- Minimum cost to modify a string
- Count of pairs of strings which differ in exactly one position
- Count all elements in the array which appears at least K times after their first occurrence
- Count number of distinct substrings of a given length
- Maximize the number of sum pairs which are divisible by K
- 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
- Number of pairs from the first N natural numbers whose sum is divisible by K
- Maximum count of pairs which generate the same sum
- Number of ways in which the substring in range [L, R] can be formed using characters out of the range
- Total distinct pairs of ugly numbers from two arrays
- Print all the sum pairs which occur maximum number of times
- Number of times the given string occurs in the array in the range [l, r]
- Count pairs with average present in the same array
- Total character pairs from two strings, with equal number of set bits in their ascii value
- Check if a given number divides the sum of the factorials of its digits
- Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number
- Total distinct pairs from two arrays such that second number can be obtained by inverting bits of first

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 »