We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1051eef commit 7810d7eCopy full SHA for 7810d7e
src/com/jwetherell/algorithms/sequence/FibonacciSequence.java
@@ -2,13 +2,8 @@
2
3
public class FibonacciSequence {
4
5
- private static final double INVERSE_SQUARE_ROOT_OF_5 = 1 / Math.sqrt(5); // Inverse
6
- // of
7
- // the
8
- // square
9
- // root
10
11
- // 5
+ private static final double INVERSE_SQUARE_ROOT_OF_5 = 1 / Math.sqrt(5); // Inverse of the square
+ // root of 5
12
private static final double PHI = (1 + Math.sqrt(5)) / 2; // Golden ratio
13
14
public static final long fibonacciSequenceUsingLoop(int n) {
0 commit comments