Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

ittybittybaby/ZCW-Interview-Problem2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Problem 2

Write a java program to return the Fibonacci series up to the value of n, which will be inputted into your method.
* Create one method that completes the task using iteration.
* Create one method that completes the task using recursion.

UNIT TESTING IS MANDATORY !!!

Example:

public String fibonacciIteration(Int n)

Given that n = 150 your output should be “0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144”

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%