Write a program to implement a Binary search using recursion in java. In this tutorial, I am going to discuss binary search algorithm and it’s implementation using recursion in Java.
In my previous tutorial, i have explained how to implement binary search in java using iterative approach.
Write a java program to reverse each words of a string. Suppose, If an input string is Java Programming then the output string should be avaJ gnimmargorP.
Write a java program to check Armstrong number. In this program, we are going to write a java code which checks whether a number is Armstrong or not.
Let’s first understand what is Armstrong number?
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.
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.
Write a java program to find second largest number in an array. Given an unsorted array, write a java code to find second highest number in an array.
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.
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.
In this tutorial, We are going to learn bubble sort algorithm and it’s implementation in java. We are going to discuss following points in this tutorial.
i) Bubble Sort Algorithm.
ii) Bubble sort program in java (How we can sort an unsorted array using bubble sort algorithm).
iii) Bubble sort video tutorial.
Write a java program to find first non-repeated character in a string. Given an input string, Write a java code to find first non-repeated character in a string.
For example –
i) Input string – java
Output – j (j is the first non-repeating character in a string)
ii) Input string – web rewrite
Output – b (b is the first non-repeating character in a string)