Skip to content

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.

Notifications You must be signed in to change notification settings

AyhamRatrout/Stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages