Skip to content

K3cs1/stack-and-queue

 
 

Repository files navigation

Stack & Queue Fundamentals

A collection of exercises focusing on Stack (LIFO) and Queue (FIFO) data structures in TypeScript.

Data Structures

Stack (LIFO - Last In, First Out)

Like a stack of plates:

  • You add (push) new plates on top
  • You remove (pop) plates from the top
  • You can only access the top plate

Queue (FIFO - First In, First Out)

Like people standing in line:

  • New people join (enqueue) at the end of the line
  • People leave (dequeue) from the front of the line
  • You can only access the first person in line

Installation

npm install

Available Scripts

Remove solution files to get started with the exercise

npm run exercise

Run all tests

npm test

Run tests in watch mode (useful during development)

npm run test:watch

Run only Stack tests

npm run test:stack

Run only Queue tests

npm run test:queue

Build TypeScript files

npm run build

Remove build files

npm run clean

About

Stack & Queue Fundamentals in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 51.8%
  • Java 47.4%
  • JavaScript 0.8%