DEV Community

AD
AD

Posted on

Open-source JavaScript Data Structures & Algorithms

cover

Repo having 99% coverage, 350+ unit tests

If you are too excited, here you have it Problem Solving using JavaScript! Do star/share the repo if you like it.

Back in time

I always wanted to implement the most commonly used Data Structures

Although I am very active on GitHub, with JavaScript as my primary language, I was having no intentions to implement the Data Structures using JavaScript. C++ was my first preference.

But due to my busy work schedule, I was not able to do it for a long time. (I am working as a Fullstack JavaScript Engineer since 2017, for more, you can peep into my LinkedIn profile)

Today, Problem Solving using JavaScript

I started solving interview questions in JavaScript and initiated a repo back in December 2018, fast forward August 2019, the thought of having a Data Structure repo pop up in my mind again. This time without thinking any further, I started implementing the common Data Structures using JavaScript.

List of Data Structures

This repo has the implementation of the following:

  • Linked Lists (SLL, DLL)
  • Stack & Queue
  • Bloom Filter & Set
  • Binary Tree, Binary Search Tree & Suffix Tree
  • Heaps

You can find a long list here: Table of Contents

What are the perks

Alt Text

Travis CI running the tests

The repo hash the following:

  • Most commonly used/asked Data Structures
  • Commonly asked interview questions with solutions
  • Unit Tests for every Data Structures and Problem Solutions
  • CI integration with Travis CI
  • Actively Maintained
  • Open for anyone willing to contribute
  • Human-friendly PR resolution

Future

I would like people who are interested should come forward and contribute to this repo.

This repo is very helpful for beginners to learn a lot of stuff like:

  • Learning about Data Structures
  • Learning about open source contributions
  • Learn about the importance of Testing
  • Learn best practices and tools like ESLint, Prettier

Thank You

Top comments (2)

Collapse
 
flexjames profile image
James Ma

Great post, thanks!

Collapse
 
ashokdey_ profile image
AD

Thanks, James! Do share it with peers because I am looking for both contributors and maintainers!