Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide reverse iteration and arbitrary seeking.
The ``SkipList`` protocol has been updated to reflect two new features: ``SkipList.Seek(key interface{}) iterator`` This enables seeking to arbitrary positions in the list, similar to the behavior found in ``SkipList.Get`` in _O(log n)_ time. ``Iterator.Prev() bool`` Skip List ``node`` elements are now doubly-linked to enable backtracking to previous elements.
- Loading branch information
1 parent
1f6d14d
commit 49ac016
Showing
5 changed files
with
360 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.