
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
awesome-dsa
Advanced tools
A 0 dependency library which provides classic data structures and algorithms (written in typescript) targeting browser environments.
This is currently under development and lacks full features (more details below)
Awesome DSA provides classic Data Structures & Algorithms to use in any of your projects.
It currently provides,
Structure | Description |
---|---|
SinglyLinkedList | A linked list that has nodes which only has a reference to the next node. |
DoublyLinkedList | Functionality is the same for the most part (there are two more methods in this class) as SinglyLinkedList for the end users but implemented with nodes that has references to both next and previous node. |
Stack | A more practical and useful implementation of a stack which grows as needed. |
LimitedStack | A classic implementation of Stack that is limited to the size it's given at the initialization. |
Awesome DSA is released under the MIT license.You are free to use the source code in anyway you want.Also contributions are much appreciated as I'm just doing this in my free time for fun 😉.
Visit the documentation here → | Also you editor will give great suggestions because of extensive tsdoc comments.
Using npm:
npm i awesome-dsa
Using yarn:
yarn add awesome-dsa
Note: add --save
if you are using npm < 5.0.0
In nodejs environment:
const dsa = require("awesome-dsa");
const list = new dsa.DoublyLinkedList();
//or
const { SinglyLinkedList } = require("awesome-dsa");
const list = new SinglyLinkedList();
list.insertAtEnd(10);
In ES modules (Typescript or Javascript):
import dsa from "awesome-dsa";
const q = new dsa.LinearQueue();
//or
import { SinglyLinkedList } from "awesome-dsa";
const list = new SinglyLinkedList();
Recommended to use importing single classes ({} syntax) to leverage tree shaking capabilities of bundling tools.It will reduce your bundle sizes greatly.
If you come across any bugs or have any feature requests, please open an issue or create a pull request. Visit here to open an issue.
Nethsara Sandeepa Elvitigala
Email: nethsarasandeepaelvitigala@gmail.com
Twitter | linkedin | Github | Facebook
FAQs
A 0 dependency library which provides classic data structures and algorithms (written in typescript) targeting browser environments.
The npm package awesome-dsa receives a total of 0 weekly downloads. As such, awesome-dsa popularity was classified as not popular.
We found that awesome-dsa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.