16 Commits

Author SHA1 Message Date
26db82fd85 Add Linked List (#71)
* LinkedList implementation

* LinkedList lazy iterator

* LinkedList example usage
2017-10-21 10:39:55 +08:00
25dc9663ad Add min-heap (#68)
* Min-heap implementation

* Heap test cases
2017-10-21 01:20:43 +08:00
4c672de8e6 Add QuickSelect algorithm (#66)
* QuickSelect implementation

* QuickSelect tests
2017-10-20 17:29:28 +08:00
856b1e611e Add Union-Find data structure (#65)
* Union-Find implementation

* Example usage
2017-10-20 17:28:40 +08:00
a3af358c3f Add Rabin-Karp rolling hash (#64)
* Rabin-Karp hash implementation

* Test cases for Rabin-Karp hash
2017-10-20 17:28:17 +08:00
752356acb4 Add bisect_left and bisect_right (#63)
* Add bisect_left and bisect_right

* Test cases for bisect_left and bisect_right
2017-10-20 04:58:44 +08:00
d9b9d4b5ca Add a ton of JS algo snippets (#56) 2017-10-18 17:00:48 +08:00
149ae24090 Remove empty scripts 2017-10-11 01:36:39 +08:00
4038c4fbf4 Fix mergeSort tests 2017-10-11 00:38:57 +08:00
e0a0fd549e Refine tests for mergeSort 2017-10-10 11:06:13 +08:00
05fbf436dc Create mergeSort.js (#38) 2017-10-10 10:48:24 +08:00
0f78cf3657 Use const 2017-09-30 21:55:53 +08:00
4fa28c04ee Return -1 if target is not in array (#9)
* return -1 if target is not in array

* return -1 if target is not in array (python)

* <= in binary search while loop
2017-09-30 21:51:37 +08:00
ead0e74674 Implement floor division (#8) 2017-09-28 10:53:54 +08:00
671b874b43 Categorize scripts 2017-09-20 15:29:22 +08:00
2182a70770 Squash commit 2017-09-20 15:27:28 +08:00