mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-05 21:40:01 +00:00
[PR #1417] [CLOSED] Update 1137.c #2012
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?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/1417
Author: @shivamdroidoreo
Created: 10/2/2024
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
9aee0adUpdate 1137.c📊 Changes
1 file changed (+6 additions, -9 deletions)
View changed files
📝
leetcode/src/1137.c(+6 -9)📄 Description
Explanation of Changes:
Loop starting from i = 3:
This matches the idea that Tribonacci starts at n = 3 for the iterative part. It loops until i = n, making it more aligned with the index you are calculating.
Renaming nextT to nextTerm:
This improves code readability by being more descriptive.
Notes: <The overall structure of the program is unchanged, but the slight improvements make the code easier to understand and maintain.>
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.