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

Minimum Number of Operations to Sort a Binary Tree by Level - BFS & Cycle Counting Explained [JS]

Beautiful Towers II - Monotonic Increasing Stack [JS]

Reschedule Meetings for Maximum Free Time I - Sliding Window - Constant Space [JS]

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

Sum of Prefix Scores of Strings - Trie [JS]