Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fibonnaci test #3

Merged
merged 66 commits into from
Sep 22, 2023
Merged

Fibonnaci test #3

merged 66 commits into from
Sep 22, 2023

Conversation

AjaniBilby
Copy link
Member

fn fibonacci(n: i32): i32 {
	return fibonacci_tail(n, 0, 1);
}

fn fibonacci_tail(n: i32, a: i32, b: i32): i32 {
	// if (n == 0) return a;
	return fibonacci_tail(n - 1, b, a + b);
}

@AjaniBilby AjaniBilby self-assigned this Aug 6, 2023
@AjaniBilby AjaniBilby added the enhancement New feature or request label Aug 6, 2023
@AjaniBilby AjaniBilby marked this pull request as ready for review September 21, 2023 10:38
@AjaniBilby AjaniBilby merged commit 552a0b1 into main Sep 22, 2023
1 check passed
@AjaniBilby AjaniBilby deleted the fibonnaci-test branch September 22, 2023 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant