[PR #1220] [MERGED] fix: memory allocation method #1811

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

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1220
Author: @i-m-afk
Created: 2/21/2023
Status: Merged
Merged: 3/17/2023
Merged by: @Panquesito7

Base: masterHead: master


📝 Commits (7)

  • 98750bd Fix : memory allocation method
  • 904a6a0 Merge pull request #1 from i-m-afk/i-m-afk-patch-1
  • 582025b Merge branch 'master' into master
  • b026edb updating DIRECTORY.md
  • 28e5184 Update data_structures/graphs/kruskal.c
  • 2edfb6d Merge branch 'master' into master
  • c933017 updating DIRECTORY.md

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 data_structures/graphs/kruskal.c (+2 -2)
📝 leetcode/DIRECTORY.md (+1 -1)

📄 Description

Description of Change

I have fixed the cpp implementation of kruskal.c and changed it such that it can compile on a C compiler

References

Checklist

  • [ x] Added description of change
  • [ x] Relevant documentation/comments is changed or added
  • [x ] PR title follows semantic commit guidelines
  • [x ] Search previous suggestions before making a new one, as yours may be a duplicate.
  • [x ] I acknowledge that all my contributions will be made under the project's license.

Notes:
In C there is no new keyword and have to use malloc instead.


🔄 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/1220 **Author:** [@i-m-afk](https://github.com/i-m-afk) **Created:** 2/21/2023 **Status:** ✅ Merged **Merged:** 3/17/2023 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`98750bd`](https://github.com/TheAlgorithms/C/commit/98750bd2be496c90b35272b4fbb5010a441bca66) Fix : memory allocation method - [`904a6a0`](https://github.com/TheAlgorithms/C/commit/904a6a0aff72bf166529519ce3782606cde409a0) Merge pull request #1 from i-m-afk/i-m-afk-patch-1 - [`582025b`](https://github.com/TheAlgorithms/C/commit/582025b843cd5e8bf403b2b2df27fb67bbd22e79) Merge branch 'master' into master - [`b026edb`](https://github.com/TheAlgorithms/C/commit/b026edb223fbc261c30532f717a3f106d388474a) updating DIRECTORY.md - [`28e5184`](https://github.com/TheAlgorithms/C/commit/28e51845667cdc666a22175a7cf6c1086a109930) Update data_structures/graphs/kruskal.c - [`2edfb6d`](https://github.com/TheAlgorithms/C/commit/2edfb6d362f4dbce817ee07be6b731265aae223f) Merge branch 'master' into master - [`c933017`](https://github.com/TheAlgorithms/C/commit/c933017c0bf2959570fc89afd456964c2775a0a3) updating DIRECTORY.md ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `data_structures/graphs/kruskal.c` (+2 -2) 📝 `leetcode/DIRECTORY.md` (+1 -1) </details> ### 📄 Description #### Description of Change I have fixed the cpp implementation of kruskal.c and changed it such that it can compile on a C compiler <!-- 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 --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ x] Added description of change - [ 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) - [x ] Search previous suggestions before making a new one, as yours may be a duplicate. - [x ] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> In C there is no `new` keyword and have to use `malloc` instead. --- <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:24:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1811