Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Fibonacci.java
  • Loading branch information
Aayush2111 authored Oct 29, 2022
commit 62de57663b3d8ef92b8449a6bb57a4cebc96e26d
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ public static int fibBinet(int n) {
double phi = (1 + squareRootOf5)/2;
int nthTerm = (int) ((Math.pow(phi, n) - Math.pow(-phi, -n))/squareRootOf5);
return nthTerm;
}
}