npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

complete_data_structures

v1.1.8

Published

Commonly used data structures implemented in one place.

Downloads

2

Readme

Complete Data Structures

Feedback: If you'd like to report issues/bugs or have new feature/implementation change suggestions please send me an email at [email protected]. (No spam please!)

Note from developer: Apologies for pushing some untested data structures early on. Originally, I only made this package for myself so I could sharpen my skills. After seeing how many downloads it got in it's first week, I will only be pushing new updates after everything is fully tested. Everything listed under Current Features below is fully tested. Updates and patches will be frequent as I develop this. Thank you for your patience while I complete this!

All common data structures implemented in one package. All data structures are FULLY TESTED. Just grab the data structure you need and start using it right away!
You can also import the different components used in each data structure, such as linked list node or hash table buckets. Here is an example:

ES6

import { SLLNode, DLLNode, CLLNode, BucketNode, Bucket } from 'complete_data_structures';

CommonJS

const { SLLNode, DLLNode, CLLNode, BucketNode, Bucket } = require('complete_data_structures');

Installation:

You can install this package into your project by using this command.

npm install complete_data_structures

Current Features

Future Updates

These are the next items to be worked on for future updates.

  • The next data structure to be implemented will be a fully tested directed graph.
  • Dijkstra's Algorithm will be baked into the directed graph as a helper function.
  • HashTable and Bucket classes will improved upon to include features such as:
    • instantiating and with multiple items.
    • inserting multiple items with one command.
    • The ability to set a maximum size of the table.
    • isEmpty and isFull functions
    • Method to find the number of items in the table with a certain value and supply an array with their keys.
    • Method to remove all items containing a certain value.
    • Rehashing when the size of the table needs to increase to accomodate more values.

Version History

v1.1.8

  • Updated README to include hash table and added new hash table markdown file.

v1.1.7

  • Added type checking error tests to all data structures.
  • Added tests for HashTable, Bucket, and BucketNode.

v1.1.6

  • Added a simple hash table data structure, implemented with linked list buckets.
  • Fixed a problem with not being able to import doubly linked list or doubly linked list node.

v1.1.5 Added markdown files for singly linked list, doubly linked list, and circular linked list.

v1.1.4 Fixed README so that links to detailed data structure descriptions would work.

v1.1.3: This update includes the following changes:

  • Some tests for the doubly linked list were changed to include extra edge cases.
  • Added a true circular linked list that has been fully tested. It does exactly the same thing as the original circular linked list except it works by having a reference to the head node on the tail node.
  • Made a proper README with different markdown files for stack, queue, and deque data structures.

v1.1.2: All linear data structure are complete in this version. This includes:

  • Stack
  • Queue
  • Deque (Double Ended Queue)
  • Singly Linked List
  • Circular Linked List
  • Doubly Linked List