[PR #1338] [CLOSED] Implemented a queue using stacks #1937

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

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1338
Author: @sachithdh
Created: 10/4/2023
Status: Closed

Base: masterHead: master


📝 Commits (4)

  • b1b9546 Create queueStack.c
  • 2b2e6ae Create queue_using_stack.c
  • ae2cb2a Create queue_using_stack.c
  • b5a7b23 Merge pull request #1 from sacheex/queue-using-stacks

📊 Changes

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

View changed files

data_structures/queue/queue_using_stack/queue_using_stack.c (+107 -0)

📄 Description

Description of Change

Implemented a queue data structure using two stacks. Enqueue and dequeue operations are supported efficiently, ensuring constant time complexity. Verified and tested the code for correctness.

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or 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:
queue using stacks


🔄 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/1338 **Author:** [@sachithdh](https://github.com/sachithdh) **Created:** 10/4/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`b1b9546`](https://github.com/TheAlgorithms/C/commit/b1b9546571f8adab7b4db8cc73e6704975efd07d) Create queueStack.c - [`2b2e6ae`](https://github.com/TheAlgorithms/C/commit/2b2e6aef0d8d781791a6c1d33c75a0b368e431d5) Create queue_using_stack.c - [`ae2cb2a`](https://github.com/TheAlgorithms/C/commit/ae2cb2ab1c0d62b292953dc5fa9f3f495d4f3cb7) Create queue_using_stack.c - [`b5a7b23`](https://github.com/TheAlgorithms/C/commit/b5a7b239c86b3556b944b4ef7a6119572b986675) Merge pull request #1 from sacheex/queue-using-stacks ### 📊 Changes **1 file changed** (+107 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `data_structures/queue/queue_using_stack/queue_using_stack.c` (+107 -0) </details> ### 📄 Description #### Description of Change Implemented a queue data structure using two stacks. Enqueue and dequeue operations are supported efficiently, ensuring constant time complexity. Verified and tested the code for correctness. <!-- 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] 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 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 --> queue using stacks --- <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:26: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#1937