[PR #1417] Update 1137.c #2017

Closed
opened 2026-01-29 15:27:32 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/TheAlgorithms/C/pull/1417

State: closed
Merged: No


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.>

**Original Pull Request:** https://github.com/TheAlgorithms/C/pull/1417 **State:** closed **Merged:** No --- 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.>
claunia added the pull-request label 2026-01-29 15:27:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#2017