Package net.n1da.dev.euler
Class PE0025
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0025
-
- All Implemented Interfaces:
Solvable
public class PE0025 extends Problem
Solution for problem 25 "1000-digit Fibonacci number" completed on Sun, 19 Jul 2015, 06:25.- Since:
- 19.07.2015 06:09:22
- Author:
- Nico Danneberg
- See Also:
- Problem @ Project Euler, Solution @ Ni-Da-Net
-
-
Method Summary
Modifier and Type Method Description java.lang.String
solve()
Uses 3 objects of thelarge number
class to calculate the elements of a Fibonacci sequence.
-
-
-
Method Detail
-
solve
public java.lang.String solve()
Uses 3 objects of thelarge number
class to calculate the elements of a Fibonacci sequence. It runs the iteration while the current element has less than 1000 digits.- Returns:
- the number of steps needed to find the 1st 1000-digit element
- See Also:
LargeNumber.getLength()
, Fibonacci number @ Wikipedia
-
-