Socket
Socket
Sign inDemoInstall

data-structure-typed

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-structure-typed

Explore our comprehensive Javascript Data Structure / TypeScript Data Structure Library, meticulously crafted to empower developers with a versatile set of essential data structures. Our library includes a wide range of data structures, such as Binary Tre


Version published
Weekly downloads
8.9K
increased by34.79%
Maintainers
1
Weekly downloads
 
Created
Source

data-structure-typed

Javascript Data Structure, TypeScript Data Structure Library

install

yarn

yarn add data-structure-typed

npm

npm install data-structure-typed

Online examples

Online Examples

Examples Repository

Example Repository

api docs

data-structure-typed

data structures

Meticulously crafted to empower developers with a versatile set of essential data structures. Our library includes a wide range of data structures: Binary Tree, Binary Search Tree (BST), AVL Tree, Tree Multiset, Segment Tree, Binary Indexed Tree, Graph, Directed Graph, Undirected Graph, Linked List, Singly Linked List, Doubly Linked List, Queue, Object Deque, Array Deque, Stack, Hash, Coordinate Set, Coordinate Map, Heap, Priority Queue, Max Priority Queue, Min Priority Queue, Trie

Data StructureDerivedBasic FeaturesAdditional Features
Binary TreeAVL Tree, Binary Search Tree, Tree Multisetput, has, get, remove, size, insertTo, insertMany, fill, getDepth, getHeight, getMinHeight, getPathToRoot, isBalanced getLeftMost, isBST, getSubTreeSizeAndCount, subTreeSum, subTreeAdd, BFS, DFS, DFSIterative, levelIterative, listLevels, getPredecessor, morris,
AVL TreeAll the features inherited from Binary Tree, balanceFactor, updateHeight, balancePath, balanceLL, balanceLR, balanceRR, balanceRL
Binary Search Tree (BST)All the features inherited from Binary Tree, lastKeyAll the features inherited from Binary Tree, lesserSum, allGreaterNodesAdd, balance, isAVLBalanced
Tree MultisetAll the features inherited from Binary TreeAll the features inherited from Binary Tree
Segment Treebuild, updateNode, querySumByRange
Binary Indexed Treeupdate, getPrefixSum, getRangeSum, BinaryIndexedTree.lowBit
GraphDirected Graph, Undirected GraphgetVertex, getVertexId, containsVertex, vertexSet, addVertex, removeVertex, removeAllVertices, containsEdge, setEdgeWeight, getAllPathsBetween, getPathSumWeight, getMinCostBetween, getMinPathBetween, dijkstra, dijkstraWithoutHeap, bellmanFord, floyd, tarjan
Directed GraphAll the features inherited from Graph, getEdge, addEdge, removeEdgeBetween, removeEdge, removeAllEdges, incomingEdgesOf, outgoingEdgesOf, degreeOf, inDegreeOf, outDegreeOf, edgesOf, getEdgeSrc, getEdgeDest, getDestinations, edgeSet, getNeighbors, getEndsOfEdgeAll the features inherited from Graph, topologicalSort
Undirected GraphAll the features inherited from Graph, getEdge, addEdge, removeEdgeBetween, removeEdge, degreeOf, edgesOf, edgeSet, getEdgesOf, getNeighbors, getEndsOfEdgeAll the features inherited from Graph
Singly Linked Listlength, head, tail, size, get, getNode, findNodeIndex, findNode, find, findIndex, append, push, prepend, insertAt, removeNode, removeAt, insertBefore, sort, insertAfter, shift, pop, merge, clear, slice, reverse, forEach, map, filter, reduce, toArray, toString
HashCoordinateSet, CoordinateMap
CoordinateSethas, set, get, delete
CoordinateMaphas, add, delete
Heap
Doubly Linked Listsize, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, get, isEmpty, insert, remove,
Priority QueueMax Priority Queue, Min Priority Queueoffer, peek, poll, leaf, isEmpty, clear, toArray, cloneisValid, sort, DFS
Max Priority QueueAll the features inherited from Priority QueueAll the features inherited from Priority Queue
Min Priority QueueAll the features inherited from Priority QueueAll the features inherited from Priority Queue
QueueQueue, Dequeueoffer, poll, peek, peekLast, size, isEmpty, toArray, clear, clone, Queue.fromArray
ObjectDequesize, offerFirst, offerLast, pollFirst, peekFirst, pollLast, peekLast, get, isEmpty
ArrayDequeofferLast, pollLast, pollFirst, offerFirst, peekFirst, peekLast, get, set, insert, remove, isEmpty
StackisEmpty, size, peek, push, pop, toArray, clear, clone, Stack.fromArray
Trieput, has, remove, isAbsPrefix, isPrefix, getAll

complexities

complexities of data structures

Keywords

FAQs

Package last updated on 15 Aug 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc