[PR #1261] [MERGED] Create dynamic_stack.c #1858

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

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1261
Author: @SahilK-027
Created: 5/22/2023
Status: Merged
Merged: 6/8/2023
Merged by: @Panquesito7

Base: masterHead: master


📝 Commits (8)

  • b65599f Create dynamic_stack.c
  • eb7aa5e Update dynamic_stack.c
  • 99a077a Update dynamic_stack.c
  • c364d54 Merge branch 'TheAlgorithms:master' into master
  • 4bfbcd2 Update dynamic_stack.c
  • 3dec81a Update: Used Int type that are OS-independent
  • 627fb14 Merge branch 'master' into master
  • 9d1db71 Merge branch 'master' into master

📊 Changes

1 file changed (+250 additions, -0 deletions)

View changed files

data_structures/stack/dynamic_stack.c (+250 -0)

📄 Description

In this implementation, functions such as PUSH, POP, PEEK, show_capacity, isempty, and stack_size are coded to implement dynamic stack.

Checklist

  • Added description of the change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments are added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: I've checked the directory for stack where I didn't find code for implementing a dynamic stack. so, I implemented it and created a new file dynamic_stack.c


🔄 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/1261 **Author:** [@SahilK-027](https://github.com/SahilK-027) **Created:** 5/22/2023 **Status:** ✅ Merged **Merged:** 6/8/2023 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (8) - [`b65599f`](https://github.com/TheAlgorithms/C/commit/b65599f459f2e70d3a333492d1c5c31119ef322b) Create dynamic_stack.c - [`eb7aa5e`](https://github.com/TheAlgorithms/C/commit/eb7aa5e4dc1bbd69ae0e0d983eb9b553a33c5105) Update dynamic_stack.c - [`99a077a`](https://github.com/TheAlgorithms/C/commit/99a077ac77daec7c0ed888bfabdc740a426cb7df) Update dynamic_stack.c - [`c364d54`](https://github.com/TheAlgorithms/C/commit/c364d54a14dd34046d06c6d5aa11d099cf219a0b) Merge branch 'TheAlgorithms:master' into master - [`4bfbcd2`](https://github.com/TheAlgorithms/C/commit/4bfbcd26341c7d3f7c3e708c41e2334fac0e304c) Update dynamic_stack.c - [`3dec81a`](https://github.com/TheAlgorithms/C/commit/3dec81af755cdb80eedf1ce8416c2da4719a41c7) Update: Used Int type that are OS-independent - [`627fb14`](https://github.com/TheAlgorithms/C/commit/627fb146be966258d006138f2459c7faf4b41d3f) Merge branch 'master' into master - [`9d1db71`](https://github.com/TheAlgorithms/C/commit/9d1db71a21ebe659c655253eca44cee60cf76a03) Merge branch 'master' into master ### 📊 Changes **1 file changed** (+250 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `data_structures/stack/dynamic_stack.c` (+250 -0) </details> ### 📄 Description In this implementation, functions such as PUSH, POP, PEEK, show_capacity, isempty, and stack_size are coded to implement dynamic stack. #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of the change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments are 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: I've checked the directory for stack where I didn't find code for implementing a dynamic stack. so, I implemented it and created a new file dynamic_stack.c --- <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:25:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1858