## Introduction to Merkle Tree

Merkle tree also known as hash tree is a data structure used for data verification and synchronization. It is a tree data structure where each… Read More »

## Minimum deletions from string to reduce it to string with at most 2 unique characters

Given a string containing lowercase English alphabets. The task is to find the minimum number of characters needed to be removed so that the remaining… Read More »

## Find all good indices in the given Array

Given an array A[] of integers. The task is to print all indices of this array such that after removing the ith element from the… Read More »

## Count occurrences of the average of array elements with a given number

Given an array of integers and an integer . For every integer of the array a[i], the task is to calculate the count of numbers… Read More »

## Minimum array elements to be changed to make it a Lucas Sequence

Given an array with N distinct elements. The task is to find the minimum number of elements to be changed in the array such that,… Read More »

## Longest Subsequence with at least one common digit in every element

Given an array. The task is to find the length of the longest subsequence in which all elements must have at least one digit in… Read More »

## PHP | hash_hmac_algos() Function

The hash_hmac_algos() function is an inbuilt function in PHP which is used to get the a list of registered hashing algorithms suitable for hash_hmac() function.… Read More »

## PHP | hash_equals() Function

The hash_equals function() is an inbuilt function in PHP which is used to compares two strings using the same time whether they are equal or… Read More »

## PHP | hash_copy() Function

The hash_copy() function is an inbuilt function in PHP which is used to get the copy of hashing context. Syntax: hash_copy( \$context ) Parameters: This… Read More »

## PHP | hash_algos() Function

The hash_algos() function is an inbuilt function in PHP which is used to return a list of registered hashing algorithms. Syntax: array hash_algos( void )… Read More »

## Find four factors of N with maximum product and sum equal to N | Set-2

Given an integer . The task is to find all factors of N and print the product of four factors of N such that: Sum… Read More »

## For each element in 1st array count elements less than or equal to it in 2nd array | Set 2

Given two unsorted arrays arr1[] and arr2[]. They may contain duplicates. For each element in arr1[] count elements less than or equal to it in… Read More »

## Count elements that are divisible by at-least one element in another array

Given two arrays arr1[] and arr2[]. The task is to find the count of such elements in the first array whose at-least one factor is… Read More »

## Check if a String can be converted to Pangram in K changes

Given a String str containing only lowercase English alphabets and an integer K. The task is to check that whether the string can be converted… Read More »

## SHA-512 Hash In Java

The SHA-2 family of cryptographic hash functions consists of six hash functions. These are: SHA-224, with 224 bit hash values SHA-256, with 256 bit hash… Read More »