/Tutoring-data_structures

Skeleton and example Java Classes for common data structures like Stacks, Lists, and Maps with test cases so that you can implement your own in a TDD way

Primary LanguageJava

Abstract Data Types

This repo contains ADT skeleton classes, tests, and examples. Below is an overview of how to download, run, and test the code. Before reaching out with issues, please check if your questions are answered below.

Contents

Dependencies

Make sure that you have the following software installed before running:

  • Java version 11 or later
  • Gradle version 7 or later

Cloning the Repo

There are three ways to download the code from this repo:

1. Git Terminal

Download Git. Then run the following command:

git clone https://github.com/S010MON/Tutoring-data_structures

2. Git IDE

Open a project using Git within your IDE and copy and paste the URL:

https://github.com/S010MON/Tutoring-data_structures

Some useful guides for common IDEs:

  1. Eclipse
  2. IntelliJ

3. Zip File

Using the green code button, download a zip file of the repo and unzip. Then open within an IDE or text editor zip_screenshot.png

Building and Running

In an IDE you should be able to run the tests by navigating to Tutoring-data_structures/app/src/test/java/dataStructures and running the tests for each type of ADT.

If you are not using an IDE you can run gradle in the terminal by navigating to the Tutoring-data_structures/ directory (you should see a file named gradlew). Then run:

gradle build

This will run all of the tests, you may see FAILED notifications, this is fine, the tests are failing as you have to add your code!