## 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 »

- Count pairs in array whose sum is divisible by K
- Count pairs in an array that hold i+j= arr[i]+arr[j]
- Count sub-arrays whose product is divisible by k
- Introduction to Merkle Tree
- Sum of elements whose square root is present in the array
- Count pairs of parentheses sequences such that parantheses are balanced
- 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
- Maximize the number of sum pairs which are divisible by K
- Number of subarrays having sum of the form k^m, m >= 0
- Number of pairs from the first N natural numbers whose sum is divisible by K
- Minimum deletions from string to reduce it to string with at most 2 unique characters
- Number of ways in which the substring in range [L, R] can be formed using characters out of the range
- Find all good indices in the given Array
- Maximum count of pairs which generate the same sum
- Total distinct pairs of ugly numbers from two arrays
- Minimum cost to modify a string
- Total character pairs from two strings, with equal number of set bits in their ascii value
- Count pairs with average present in the same array
- Check if a given number divides the sum of the factorials of its digits
- Number of times the given string occurs in the array in the range [l, r]
- Print all the sum pairs which occur maximum number of times
- Sum of all odd frequency nodes of the Linked List
- Total distinct pairs from two arrays such that second number can be obtained by inverting bits of first
- Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number

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 »

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 »

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 »

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 »

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 »

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 »

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 »

SHA-1 or Secure Hash Algorithm 1 is a cryptographic hash function which takes an input and produces a 160-bit (20-byte) hash value. This hash value… Read More »

The MD2 is a Message-Digest Algorithm. It is a cryptographic hash function developed by Ronald Rivest in 1989. It is optimized for 8-bit computers. The… Read More »

Prerequisites: Hashing Introduction and Collision handling by separate chaining How hashing works: For insertion of a key(K) – value(V) pair into a hash map, 2… Read More »

Definition: In Cryptography, SHA is cryptographic hash function which takes input as 20 Bytes and rendered the hash value in hexadecimal number, 40 digits long… Read More »

Given an array of positive integers (may contain duplicates), the task is to find the number of triplets whose product is equal to a given… Read More »

Given a number N, the task is to check whether it is fascinating or not. Fascinating Number: When a number( 3 digits or more )… Read More »