lgrthms

Algorithms and data structures for your JavaScript and TypeScript projects 🧑‍💻


Keywords
algorithms, data structures, computer science, cs, singly linked list, doubly linked list, linked list, stack, queue, graph, binary tree, binary search tree, bst, heap, min heap, max heap, trie, priority queue, binary search, find n largest, find n smallest, shifted binary search, search in sorted matrix, search for range, quick select, bubble sort, insertion sort, selection sort, quick sort, heap sort, radix sort, bytes sort, merge sort, depth-first search, breadth-first search, topological sort, dijkstra's algorithm, a algorithm, bsf shortest path, knuth morris pratt algorithm, levenshtein distance
License
MIT
Install
npm install lgrthms@1.0.0

Documentation

lgrthms

Algorithms and data structures for your JavaScript and TypeScript projects 🧑‍💻

Installation

npm

npm install lgrthms

yarn

yarn add lgrthms

Content

Data Structures

  • Singly Linked List
  • Doubly Linked List
  • Binary Search Tree (BST)
  • Binary Tree
  • Stack
  • Queue
  • Priority Queue
  • Min Heap
  • Max Heap
  • Graph
  • Trie

Search Algorithms

  • Binary Search
  • Shifted Binary Search
  • Search For Range
  • Find K Smallest
  • Find K Largest
  • Find K Largest
  • Quickselect
  • Search In Matrix
  • Search In Sorted Matrix

Sort Algorithms

  • Bubble Sort
  • Insertion Sort
  • Selection Sort
  • Quick Sort
  • Heap Sort
  • Merge Sort
  • Radix Sort
  • Bytes Sort

String Algorithms

  • Knuth-Morris-Pratt Algorithm
  • Levenshtein Distance

Graph Algorithms

  • Depth-first Search (DFS)
  • Breadth-first Search (BFS)
  • Topological Sort
  • Dijkstra's Algorithm
  • BFS Shortest Path
  • A* Algorithm