Generate a random, unique, alpha-numeric string using PHP. Examples:...
I received the mail from the recruiter via Jobs Portal. Then in Telephonic Round, few general questions were asked. I am 1.8 months experienced and below are the ROUNDS....
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 not.Syntax:...
Given an array arr[], the task is to determine the number of elements of the array which are not divisible by any other element in the given array. Examples:...
Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’....
In this article, we are given an array that may contain duplicate values. We will print all elements and their frequencies if the duplicates exist. We can do this by using two methods:...
Given an array of distinct elements. The task is to find triplets in the array whose sum is zero....
Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’....
Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum....
The hash_algos() function is an inbuilt function in PHP which is used to return a list of registered hashing algorithms....
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range is given as positions (not 0 based indexes) in array. There can be multiple queries of given type. Examples:...
The java.util.IdentityHashMap.putAll() is an inbuilt method of IdentityHashMap class that is used for the copy operation. The method copies all of the elements i.e., the mappings, from one map into another....