[PR #1417] [CLOSED] Update 1137.c #2012

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

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1417
Author: @shivamdroidoreo
Created: 10/2/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

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

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/1417 **Author:** [@shivamdroidoreo](https://github.com/shivamdroidoreo) **Created:** 10/2/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`9aee0ad`](https://github.com/TheAlgorithms/C/commit/9aee0adcdeefd78f14125f14d5fc6742ea0ec753) Update 1137.c ### 📊 Changes **1 file changed** (+6 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `leetcode/src/1137.c` (+6 -9) </details> ### 📄 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.> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:27:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#2012