How to generate Fibonacci series

How to generate Fibonacci series. In fibonacci series, next number is the sum of previous two numbers for example 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 etc. The first two numbers of fibonacci series are 0 and 1. There are two ways to write the Fibonacci series program in java that we illustrate:

Binary Search Algorithm

Binary Search Algorithm Binary Search is an efficient algorithm for finding an element in a sorted array by continuously chopping the search area in half. Why Binary Search? In Technical Interview you might be given a question like In Given Sorted Array, write a function that returns the index for a given element. Now, an … Read more