#
java programs Archive

Last updated on March 14th, 2017 at 10:19 amKadane algorithm is a famous algorithm to solve maximum subarray problem. Maximum subArray problem: From Wikipedia : In computer science, the maximum subarray problem is the task …

Last updated on March 14th, 2017 at 12:20 pm If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how …

Last updated on March 19th, 2017 at 01:24 pmIn this post, we will see how to remove all white spaces from String in java. There are multiple ways to remove spaces from String. Using ReplaceAll …

Last updated on March 14th, 2017 at 01:08 pm Fibonacci series is numerical series in which next number is sum of previous two numbers. For example : 0, 1, 1, 2, 3, 5, 8, 13, …

Last updated on March 15th, 2017 at 12:26 pm Armstrong number is a 3 digit number which is equal to sum of cube of its digits. For example: 371,153 In this post, we will see …

Last updated on June 16th, 2017 at 09:09 pm In this post, we will see how to swap two numbers without using temporary variables. There are three ways to do it. Java program: When …

Last updated on March 22nd, 2017 at 10:04 amIn this post, we will see how to find Greatest common divisor(GCD) and Least Common Multiple(LCM) in java. GCD is calculated using Euclidean algorithm and LCM is …

Last updated on March 14th, 2017 at 11:13 am If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how …

Last updated on March 14th, 2017 at 10:39 amGiven array of integers, find Maximum difference between two elements such that larger element appears after the smaller number For example: Algorithm: Lets say we have array arr of …

Last updated on March 14th, 2017 at 10:43 am If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. Given an array of integers representing stock …