🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

stackedmate

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

stackedmate

Stacked Mate is a lightweight and easy-to-use data structures library that provides several commonly used data structures for use in your projects.

unpublished
latest
npmnpm
Version
0.1.23
Version published
Maintainers
1
Created
Source

StackedMate

StackedMate is a library that provides various data structures including Queue, Stack, SinglyLinkedList, DoublyLinkedList, and BinaryHeap. It's designed to be efficient and easy to use in your JavaScript or TypeScript projects.

Installation

To install StackedMate, run the following command:

npm install stackedmate

Usage

Here's how to use the StackedMate library:

import StackedMate from 'stackedmate'

Data Structures

Queue

A Queue is a collection that maintains elements in a linear order, allowing elements to be added at the end and removed from the front. It follows the First-In-First-Out (FIFO) principle.

Stack

A Stack is a collection that maintains elements in a linear order, allowing elements to be added and removed from the same end. It follows the Last-In-First-Out (LIFO) principle.

SinglyLinkedList

A SinglyLinkedList is a collection of nodes where each node points to the next node in the list. It allows for efficient insertion and removal of elements from the beginning and end of the list.

DoublyLinkedList

A DoublyLinkedList is a collection of nodes where each node points to both the next and previous nodes in the list. It allows for efficient insertion and removal of elements from the beginning and end of the list.

BinaryHeap

A BinaryHeap is a binary tree-based data structure that maintains elements in a partially ordered manner, ensuring that the highest (or lowest) element can be efficiently accessed and removed.

Contributing

If you want to contribute to StackedMate, please feel free to submit a pull request or report any issues you find.

License

StackedMate is licensed under the MIT License.

Keywords

stack

FAQs

Package last updated on 09 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts