mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #1338] [CLOSED] Implemented a queue using stacks #1937
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/1338
Author: @sachithdh
Created: 10/4/2023
Status: ❌ Closed
Base:
master← Head:master📝 Commits (4)
b1b9546Create queueStack.c2b2e6aeCreate queue_using_stack.cae2cb2aCreate queue_using_stack.cb5a7b23Merge 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
Notes:
queue using stacks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.