node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

csj

A port for nodeJS of a collection of classic computer science paradigms, algorithms, and approaches written in JavaScript. All of the code is available under an MIT License.

var csj = require('csj')

Available Algorithims:

  • Luhn algorithm (luhn)
  • Binary search (binarySearch)
  • Bubble sort (bubbleSort, bubbleSort2)
  • Merge sort iterative (mergeSortI)
  • Merge sort recursive (mergeSortR)
  • Selection Sort (selectionSort)
  • Binary search tree (binSearchTree)
  • Linked list (linkedList, linkedListC, linkedListD)
  • Base64 (base64Encode, base64Decode)