Skip to content
/ csjs Public

Small collection of basic CS Algorithms/Data Structures in JavaScript.

License

Notifications You must be signed in to change notification settings

nem035/csjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Science in JavaScript

Small collection of basic CS Algorithms/Data Structures in JavaScript.

Live Demos

This project started out by me wanting to play around with CSS variables but then I just went bananas and wrote some algorithms.

If you're interested in these topics, definitely checkout the much better version of this project.

Equally recommended is the awesome Algorithm Visualizer.

Algorithm Implementation/Optimization Hints

  • BubbleSort (do/while, no need to go past the last swapped element)
  • InsertionSort (we can stop searching as soon as we find insertion point)
  • MergeSort (we can merge left and right subarrays in-place)
  • QuickSort (we can set the pivot as the median of the first, middle and last element)

Generic Optimization Hints

  • Make sure not to (unnecessarily) revisit already visited data.

Libraries used

About

Small collection of basic CS Algorithms/Data Structures in JavaScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published