-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(store): implement
AvlTree::remove
(#141)
* impl remove for avltree * impl Store::delete for InMemoryStore * use InMemoryStore with delete support * add test for AvlTree::remove * mv test to tests file * add shuffle test for get * refactor insert and remove methods with return values * rm redundant node updates * fix rand dependency * simplify mem::replace use * assert balance factor * insert 256 items * test avltree thoroughly * optimize remove_top algo * comment * comment for inconsistency * optimize node removal * rm old comment * reuse mem::replace * linear code * update comments * update comment * minor refactor
- Loading branch information
Showing
4 changed files
with
211 additions
and
13 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
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