Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions b+tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export declare function simpleComparator(a: (number | string)[], b: (number | st
*/
export default class BTree<K = any, V = any> implements ISortedMapF<K, V>, ISortedMap<K, V> {
private _root;
_size: number;
_maxNodeSize: number;
/**
* provides a total order over keys (and a strict partial order over the type K)
Expand Down Expand Up @@ -416,8 +415,7 @@ export default class BTree<K = any, V = any> implements ISortedMapF<K, V>, ISort
/** Scans the tree for signs of serious bugs (e.g. this.size doesn't match
* number of elements, internal nodes not caching max element properly...)
* Computational complexity: O(number of nodes), i.e. O(size). This method
* skips the most expensive test - whether all keys are sorted - but it
* does check that maxKey() of the children of internal nodes are sorted. */
* validates ordering of keys (including leaves) and cached size information. */
checkValid(): void;
}
/** A TypeScript helper function that simply returns its argument, typed as
Expand Down
172 changes: 137 additions & 35 deletions b+tree.js

Large diffs are not rendered by default.

Loading