https://github.com/wwi2196/stack-implementation
This project implements a Stack class using a linked list, supporting operations such as pushing, popping, printing, reversing, counting, and deleting elements.
https://github.com/wwi2196/stack-implementation
Last synced: 2 months ago
JSON representation
This project implements a Stack class using a linked list, supporting operations such as pushing, popping, printing, reversing, counting, and deleting elements.
- Host: GitHub
- URL: https://github.com/wwi2196/stack-implementation
- Owner: WWI2196
- License: apache-2.0
- Created: 2024-07-21T12:31:59.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-22T18:05:54.000Z (11 months ago)
- Last Synced: 2025-01-29T22:45:03.204Z (4 months ago)
- Language: C++
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Stack Implementation using Linked List
This project implements the class `Stack` using a linked list. The stack supports various operations such as pushing, popping, printing, reversing, counting, and deleting elements.## Overview
The `Stack` class is implemented using a linked list. This implementation includes the following operations:1. **Push**: Insert an element into the stack.
2. **Pop**: Delete and return the top element from the stack.
3. **Print**: Print the value of all elements in the stack from top to bottom.
4. **Reverse**: Reverse all the values in the stack.
5. **Count**: Return the number of elements in the current stack.
6. **Delete**: Destroy the entire stack.