vervollständigen Sie die Methode solve() der Klasse Negafibonacci derart, dass sie für die als Parameter übergebene ganze Zahl n das n-te Glied der Folge zurückgibt.
Das ist meine Methode:
Code (Text):
public static int solve(int n) {
// Don't delete!! Tests will fail otherwise
// Pass object r to other function calls of solve (e.g. for recursion). Do not create other instances of object r
// Function solve(...) must be...
// Don't delete!! Tests will fail otherwise
// Pass object r to other function calls of solve (e.g. for recursion). Do not create other instances of object r
// Function solve(...) must be...
Negafibonacci Folge berechnen
0 commentaires:
Enregistrer un commentaire