mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-14 21:46:11 +00:00
[OTHER] #188
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shivamdroidoreo on GitHub (Oct 2, 2024).
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