Java Program to Find Missing Number in Array

Write a java program to find missing number in array. Given an array of n-1 integers and these integers are in the range of 1 to n. One of the integer is missing from an array. We have to write an efficient java code to find missing number from an array. An array does not contains any duplicates.

Binary Search in Java

Write a program to implement Binary Search in Java. In this tutorial, we are going to implement a binary search algorithm in Java. Before implementing this algorithm, let’s first understand what is binary search and how it works.

Subscribe Our Tutorials

Get Latest Updates on Facebook

Find GCD of Two Numbers using Recursion – Java Code

Write a Java program to find GCD of two numbers using Recursion. Given two input integers, we have to write a code to find GCD of two numbers using recursion. For this program, I assume you are familiar with the concept of recursion. If you don’t know about recursion then check my previous post on recursion vs iteration.

Java Program to Print Numbers from 1 to 100 without using Loop

Write a java program to print numbers from 1 to 100 without using loop.  This is a very interesting and tricky problem for beginners. You have to think how to solve this problem without using loop.

This problem can be easily solved using loop, (for and while loop).  So, how do you solve this problem without using loop? The answer is using recursion.

So, In this tutorial, we are going to solve this problem using recursion.