Computer Science in JavaScript

22 Jan 2010 | By Alex Young | Tags algorithms programming

Computer Science in JavaScript is a set of classic computer science algorithms implemented in JavaScript. To download, use git:

git clone git://github.com/nzakas/computer-science-in-javascript.git

This will download a set of scripts that implement base64, linked lists, binary tree search, sorting, searching and checksums. These actually cover the first year of the computing degree that I studied — the basics of data structures, algorithms and encoding.

Of particular interest to coming of age JavaScript hackers will be the linked list implementations. The developer, Nicholas C. Zakas has even included unit tests (Written with YUI). The scripts include comments with explanations of the methods used, so it’s best to check out the code and read it if you want to explore this collection.

blog comments powered by Disqus