Home » algorithms

Tag Archives: algorithms

Fibonacci Series in Java Example

In mathematics, the Fibonacci series is a series of numbers, starting from 0 and 1, where every n-th number is the sum of (n-1)-th and (n-2)-th. It is named after Leonardo Fibonacci, an Italian mathematician who is considered as the most talented mathematician of the Middle Ages. He wrote about the series in his book Liber Abaci (Book of Calculation). ...

Read More »

Recursion Java Example

In this post, we will see multiple Recursion Examples in Java using recursive methods. Recursion is a method of solving a problem, where the solution is based on “smaller” solutions of the same problem. In most programming languages (including Java) this is achieved by a function that calls itself in its definition. As a recursive joke says, “In order to ...

Read More »