https://github.com/amitkumersarkar/ds-projects
creating a program for managing print jobs in an office
https://github.com/amitkumersarkar/ds-projects
datastructures dsa project
Last synced: 12 months ago
JSON representation
creating a program for managing print jobs in an office
- Host: GitHub
- URL: https://github.com/amitkumersarkar/ds-projects
- Owner: Amitkumersarkar
- Created: 2025-05-24T18:44:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-24T19:13:49.000Z (about 1 year ago)
- Last Synced: 2025-05-24T19:39:42.403Z (about 1 year ago)
- Topics: datastructures, dsa, project
- Language: C++
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🧠Explanation (Simple):
Queue stores all jobs in the order they come (FIFO).
Stack stores latest job for easy cancelation (LIFO).
When cancel is called:
Remove the top job from the stack.
Find and remove it from the queue.
When processing:
Print all jobs still in the queue.
🧠Key Concepts:
Queue (FIFO): First In First Out – used to manage the print jobs.
Stack (LIFO): Last In First Out – used to cancel the most recent job.