[PR #1393] [CLOSED] chore: Updated the coding structure for more readability. #1989

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

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1393
Author: @Harish-Kushwah
Created: 5/10/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 281d2f0 chore: Updated the coding structur for more readablity.

📊 Changes

1 file changed (+39 additions, -44 deletions)

View changed files

📝 data_structures/linked_list/ascending_priority_queue.c (+39 -44)

📄 Description

Description of Change

  • Used "typedef" before the "struct" for avoiding the repetition of same code while using "struct node".
  • Used "for" loops for reducing the number fo lines and improved the readability of loops.
  • Improved the variable names.

Checklist

Notes:Improved the readability of code


🔄 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/1393 **Author:** [@Harish-Kushwah](https://github.com/Harish-Kushwah) **Created:** 5/10/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`281d2f0`](https://github.com/TheAlgorithms/C/commit/281d2f05f822e67127f89700cd7c804cfea965b4) chore: Updated the coding structur for more readablity. ### 📊 Changes **1 file changed** (+39 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `data_structures/linked_list/ascending_priority_queue.c` (+39 -44) </details> ### 📄 Description #### Description of Change - Used "typedef" before the "struct" for avoiding the repetition of same code while using "struct node". - Used "for" loops for reducing the number fo lines and improved the readability of loops. - Improved the variable names. <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) Notes:Improved the readability of code <!-- Please add a one-line description for developers or pull request viewers --> --- <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:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1989