NPM package for data structures and algorithms [JS]

JavaScript doesn't have as many built-in data structures as other languages, so I’ve been working on a library for frequently used data structures and algorithms. It’s something I’ve been building over time to help make JavaScript a level playing field to Python, Java, and C++.

I hope this library will be useful in projects and be a helpful resource for learning new data structures :)

beavr-js

Data structures and algorithms written in JavaScript with TypeScript types.

This package contains the following data structures and algorithms:

  • Priority Queue
  • Queue
  • Deque
  • Linked List
  • Doubly Linked List
  • AVL Tree
  • Segment Tree
  • Trie
  • Union Find
  • GCD (Greatest Common Denominator)
  • LCM (Least Common Multiple)

https://www.npmjs.com/package/beavr-js

Would love to hear any thoughts or feedback!

Comments

Popular posts from this blog

Maximum Value of an Ordered Triplet II - Two Solutions [JS]

Maximum Sum of Distinct Subarrays With Length K - Sliding Window w/ Two Pointers & Set [JS]

Sum of Prefix Scores of Strings - Trie [JS]

Maximum Count of Positive Integer and Negative Integer - Binary Search [JS]

Count Subarrays With Median K - Count Left & Right Balance [JS]