Commit Graph

95 Commits

Author SHA1 Message Date
Emir Pasic
eb4bb224e3 - add reversible iterators to tree set and tree map 2016-06-25 21:01:33 +02:00
Emir Pasic
178bc76d62 - add reversible iterators to red-black tree 2016-06-25 20:45:43 +02:00
Emir Pasic
ae143689c6 - add reversible iterators to binary heap 2016-06-25 19:26:08 +02:00
Emir Pasic
d7a31571cc - add reversible iterators to lists (array list and doubly-linked list)
- documentation and tests updates
2016-06-25 18:17:48 +02:00
Emir Pasic
59bebe43ce - update all documentation to be in godoc style 2016-06-25 17:02:21 +02:00
Emir Pasic
ef9baa808a - golint 2016-06-24 21:52:16 +02:00
Emir Pasic
35457aba81 - fix spelling 2016-06-24 20:27:34 +02:00
Emir Pasic
ab6656e286 - refactor trees' tests 2016-06-24 20:23:54 +02:00
Emir Pasic
8cb4635c2c - code document all enumarable functions and iterators in containers 2016-06-24 00:08:04 +02:00
Emir Pasic
e4c3d8a0d8 - split iterators into two type (iterator with index and iterator with key) 2016-06-22 19:59:08 +02:00
Emir Pasic
255a3095cb - add iterator to redblack tree 2016-06-22 19:47:24 +02:00
Emir Pasic
6c3a5ce1cc - add iterator to binary heap 2016-06-22 06:18:08 +02:00
Emir Pasic
3b3edfc539 - naming conventions (calling interfaces by what they are) 2016-06-22 03:09:48 +02:00
Emir Pasic
d13e3d6b6a - Add Left(), Right(), Floor() and Ceiling() function to the red black tree with test and documentation update 2016-06-13 00:52:16 +02:00
Emir Pasic
160299d0f7 - fix spelling mistake everywhere (expacted -> expected) and go vet/fmt 2016-06-12 15:04:33 +02:00
Vlad Alexandru Ionescu
6bfa9f318d Add ability to get leftmost (minimum) and rightmost (maximum) keys in treemap. 2016-04-19 21:38:32 +01:00
Emir Pasic
f9305332a4 - expose comparator in binary heap
- fix comment
2016-03-28 08:01:46 +02:00
Emir Pasic
60c53a79f0 - expose Comparator in redblacktree and include @otnt changes 2016-03-28 07:54:17 +02:00
Emir Pasic
7ecff11d2d - revert, build failing 2016-03-28 07:17:39 +02:00
Emir Pasic
35539c048b Merge pull request #4 from otnt/master
Add Ceiling and Floor functions to redblacktree
2016-03-28 07:01:54 +02:00
Emir Pasic
351cf24f70 expose comparator in redblacktree 2016-03-28 06:57:04 +02:00
otnt
5b1fc47581 move Ceiling and Floor function to redblacktreeextend 2016-03-27 21:42:00 -04:00
otnt
9ad5e914f6 modify comment 2016-03-27 01:53:17 -04:00
otnt
f7f48e7628 add ceiling and floor function to redblacktree 2016-03-27 01:51:09 -04:00
Emir Pasic
8dab13c925 - expose the root of the red-black tree to allow custom tree traversal 2016-03-23 05:40:01 +01:00
Emir Pasic
bc2bc08324 binary heap 2015-03-13 02:07:44 +01:00
Emir Pasic
48ad2d72e6 go vetting 2015-03-10 22:19:32 +01:00
emirpasic
be9edcef3c - creating a common containers interface for all data structures 2015-03-07 19:23:43 +01:00
emirpasic
3aa0eeddfb ArrayList addition (inc. test, example and documentation) 2015-03-07 17:09:47 +01:00
emirpasic
a2f7d2482e switching to BSD-style license [http://www.reddit.com/r/golang/comments/2y2x5v/gods_data_structures_for_go/cp6a90n] 2015-03-06 17:10:34 +01:00
Emir Pasic
fae29a732d red-black tree Clear() method 2015-03-05 15:05:12 +01:00
Emir Pasic
a2b057ed41 red-black tree, get keys and values in-order (with tests) 2015-03-05 14:37:28 +01:00
Emir Pasic
2ac9c4d384 - implemented linke list stack - minor changes on other libs - tests included 2015-03-05 06:55:53 +01:00
Emir Pasic
14efefae45 - unexporting node struct and color constants (keeping the lib clean) 2015-03-05 05:27:36 +01:00
Emir Pasic
e04668c20d - adding Size() method to the redblacktree (tests) 2015-03-05 05:20:39 +01:00
Emir Pasic
3ba3ce1b0e - adding Size() method to the redblacktree 2015-03-05 05:20:10 +01:00
Emir Pasic
e77265b5a1 - updating red-black tree tests for removal 2015-03-05 04:16:28 +01:00
Emir Pasic
ca8727c91c - adding save color(node) function to guard against nil-nodes 2015-03-05 04:15:29 +01:00
Emir Pasic
8e21214018 - fix in insertion (break breaks the wrong thing) 2015-03-05 01:18:24 +01:00
emirpasic
1c6ebbbd32 - debugging removal in red black tree (will carry on later) 2015-03-04 21:13:12 +01:00
emirpasic
5cd4ddeb6d - FIX: checking insertion into red black tree 2015-03-04 20:38:57 +01:00
emirpasic
855ba6d469 - red-black-tree remove
- test failing (fixing it up)
2015-03-04 20:20:48 +01:00
emirpasic
e42a0a3ce8 - red-black tree tests
- start on remove function of tree
2015-03-04 19:46:09 +01:00
emirpasic
a4ce69b5af - red-black tree tests 2015-03-04 19:38:46 +01:00
emirpasic
e7a7e55a47 - red black tree get and put 2015-03-04 19:38:35 +01:00