Write Java program to print Fibonacci
series ?
This is not a data structures question, but a programming one, which many
times appear during data structure interview. Fibonacci series is a
mathematical series, where each number is sum of previous two numbers e.g. 1,1,
2, 3, 5, 8, 13, 21. Interviewer is often interested in two things, a function
which returns nth number in Fibonacci series and solving this problem using
recursion in Java. Though, its easy question, recursion part often confuses
beginners. See this link to find nth Fibonacci number in Java.
http://www.spcjaipur.com/java-training-institute-in-jaipur.aspx
http://www.spcjaipur.com/java-training-institute-in-jaipur.aspx
0 comments:
Post a Comment