Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dstructures.js
Advanced tools
Readme
Welcome to DStructures.js! This package provides implementations of various data structures and algorithms in JavaScript. Navigate through specific directories to get a deeper understanding of each component.
(Note: For specific details on each data structure, click on the respective link.)
(Note: For specific details on each algorithm, click on the respective link.)
To utilize these data structures and algorithms in your projects:
npm install --save dstructures.js
Here's a simple example to get started with the Linked List data structure:
const { LinkedList } = require('DStructures.js');
const list = new LinkedList();
list.addLast(1);
list.addLast(2);
list.addLast(3);
console.log(list.toArray()); // Outputs: [1, 2, 3]
For more detailed usage and API descriptions, please refer to the individual READMEs of each data structure or algorithm.
const {
BinarySearchTree, BinarySearchTreeNode,
DoublyLinkedList, DoublyLinkedListNode,
Graph, GraphVertex,
HashMap,
HashSet,
Heap, MinHeap, MaxHeap,
LinkedList, LinkedListNode,
PriorityQueue, PriorityQueueNode,
Queue,
Stack,
binarySearch,
bubbleSort,
dijkstra,
insertionSort,
mergeSort,
quickSort,
selectionSort,
} = require('dstructures.js');
import {
BinarySearchTree, BinarySearchTreeNode,
DoublyLinkedList, DoublyLinkedListNode,
Graph, GraphVertex,
HashMap,
HashSet,
Heap, MinHeap, MaxHeap,
LinkedList, LinkedListNode,
PriorityQueue, PriorityQueueNode,
Queue,
Stack,
binarySearch,
bubbleSort,
dijkstra,
insertionSort,
mergeSort,
quickSort,
selectionSort,
} from 'dstructures.js';
Data structures are implemented as ES6 classes and can be extended for additional functionality.
const { Graph } = require('dstructures.js');
class CustomGraph extends Graph {
shortestPath(start, end) {
// code here
}
}
FAQs
Data structures and algorithms written in JavaScript
The npm package dstructures.js receives a total of 5 weekly downloads. As such, dstructures.js popularity was classified as not popular.
We found that dstructures.js demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.