public class Fibonacci
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static long |
compute1(int n)
This function computes Fibonacci number (1st variant)
|
static long |
compute2(int n)
This function computes Fibonacci number (2nd variant)
|
static long |
compute3(int n)
This function computes Fibonacci number (3rd variant)
|
static long |
compute4(int n)
This function computes Fibonacci number (4th variant)
|
static long |
compute5(int n)
This function computes Fibonacci number (5th variant)
|
public static long compute1(int n)
n
- an integerpublic static long compute2(int n)
n
- an integerpublic static long compute3(int n)
n
- an integerpublic static long compute4(int n)
n
- an integerpublic static long compute5(int n)
n
- an integer