Posts by divyesh srivastava

Finding Missing number in an array using XOR operation in Java

By divyesh srivastava

In this Java tutorial, we gonna learn how to find a missing number in an array in Java using XOR operation. Problem Statement We are given an array of ‘n-1’ elements an.... Read More

Pair with a given sum in an array using HashSet in Java

By divyesh srivastava

In this Java tutorial, we are going to find the existence of a pair in an array whose sum is equal to a given value using HashSet. What is HashSet in Java? Set is an unordered coll.... Read More

BigInteger class in Java

By divyesh srivastava

In this Java tutorial, we are going to discuss BigInteger class in Java. It is very important for mathematical operations in which output is very large and our primitive data types.... Read More

Different HashSet() methods in Java

By divyesh srivastava

Set is an unordered collection of values in which duplicate values are not allowed. Set can be implemented using HashSet. In this Java tutorial, we are going to discuss different .... Read More

Checking for Duplicacy in an array using Hashing Technique in Java

By divyesh srivastava

In this Java tutorial, we are going to check whether an array contains duplicate elements or not using hashing technique. What is Hashing Technique and why we prefer Hashing here? .... Read More

Separate even and odd numbers in an array in Java

By divyesh srivastava

Separate even numbers and odd numbers in an array in Java Given an array[], write a function that segregates even and odd numbers. The functions we are going to create should put a.... Read More

Binomial Co-Efficient using Dynamic Programming in Java

By divyesh srivastava

In this Java tutorial, we are going to find the Binomial Co-efficient in Java with an easy Java program. What is Binomial Co-efficient ? A binomial co-efficient C(n,k) can be defi.... Read More

String Transformation in Java using Dynamic Programming

By divyesh srivastava

In this Java tutorial, we are going to convert string1 to string2 using the minimum number of operations or string transformation in Java. So, we can either insert a character in .... Read More