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

[OTHER] #1416

Open
shivamdroidoreo opened this issue Oct 2, 2024 · 1 comment
Open

[OTHER] #1416

shivamdroidoreo opened this issue Oct 2, 2024 · 1 comment

Comments

@shivamdroidoreo
Copy link

What would you like to share?

Potential Improvements:
Loop Start Index: In the loop, i starts from 0 and runs for n - 2 iterations. This works but can be slightly optimized by starting the loop from i = 3 and running until i <= n. This way, the loop becomes more intuitive as it directly matches the Tribonacci sequence progression.

Variable Naming: nextT could be renamed to something more descriptive, like nextTerm, to indicate that it is the next Tribonacci number.

Additional information

No response

@VyankateshRohokale
Copy link

can you provide more information for me to work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants