https://github.com/ayhamratrout/stack
This repository contains my implementation of a generic Stack data structure using a generic LinkedList data structure. The Stack has been tested for functionality and the XUnit tests are included in this repository.
https://github.com/ayhamratrout/stack
backend backend-development collections csharp data-structures generic-collections generic-programming generic-types generics linkedlist oop oop-principles stack xunit xunit-tests
Last synced: 3 months ago
JSON representation
This repository contains my implementation of a generic Stack data structure using a generic LinkedList data structure. The Stack has been tested for functionality and the XUnit tests are included in this repository.
- Host: GitHub
- URL: https://github.com/ayhamratrout/stack
- Owner: AyhamRatrout
- Created: 2021-06-13T22:32:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-17T11:06:55.000Z (over 4 years ago)
- Last Synced: 2025-03-03T16:12:58.662Z (7 months ago)
- Topics: backend, backend-development, collections, csharp, data-structures, generic-collections, generic-programming, generic-types, generics, linkedlist, oop, oop-principles, stack, xunit, xunit-tests
- Language: C#
- Homepage:
- Size: 1.37 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stack
This repository contains my implementation of a generic Stack data structure using a generic LinkedList data structure. The Stack has been tested for functionality and the XUnit tests are included in this repository.As part of internship as a Backend Development Intern at Foothill Technology Solutions, I was asked to complete a task-based training program. This training program involves taking online
courses to better leverage my programming skills as well as perform tasks (do projects) that help deepen an intern's understanding of the material.For my first task, I was asked to implement a generic Stack data structure in C# that performs the following operations using the Console application template:
1. Push: Stores an object on top of the stack.
2. Pop: Removes the object on top of the stack and returns it.
3. Print: Prints out all stack objects.
4. Peak: Prints the object on top of the stack if exists without removing it.
5. Clear: Removes all objects from the stack.I chose to implement the stack by first implementing a generic LinkedList and having the stack interact with that generic class as needed.
My implementation of the stack can be found in the src\Stack_classes folder and the testing can be found in both the src\Stack_Classes folder in the Program.cs class as well as
in the test\Test_Classes folder.Ayham R.