Skip to content

misterrodger/Lean-DSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lean-DSA

A collection of standard data structures and algorithms in concise Javascript. (Work in progress)

This is not production-grade code. The idea is to aid understanding by exposing the underlying logic in a simple and clear way.

  • add
  • findMin/findMax
  • find
  • isPresent
  • remove
  • getMinHeight
  • getMaxHeight
  • isBalanced
  • Depth-first search
    • inOrderTraversal
    • preOrderTraversal
    • postOrderTraversal
  • Breadth-first search
    • levelOrderTraversal
  • add
  • has
  • values
  • remove
  • clear
  • size
  • union
  • intersection
  • difference
  • subset
  • same as queue plus enqueue considering priority
  • print
  • enqueue
  • dequeue
  • front
  • size
  • isEmpty
  • push
  • pop
  • peek
  • length
  • push
  • pop
  • peek
  • length
  • v1 - imperative approach
  • v2 - reduce everything
  • v3 - map arrays, reduce objects

About

Lean JS data structures and algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published