You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add utility functions to traverse trees to find minimum, maximum node and the keys adjacent to a node (#13)
* Add utility functions to traverse trees to find minimum, maximum nodes within the tree and within subtrees, and an abovebelow function that returns the nodes immediately above and below a given BinaryNode
* updating abovebelow to prevnext to be more generally descriptive. Also accepts the key, functions like an advanced search now. fixed tests using @inferred Nothing.
* inlined prevnext with nothing input, and edited comments to meet style.
* added @inferred check for BT.prevnext methods. I chose to set AllowedType to the full type (using their subset rule). Let me know if there's a better alternative
* switched inferred checks for prevnext to index into results rather than allow supertype of result
* removed test typo and added docstrings for new utility functions
* Updated docstrings to match style and squashed commits from that process (mybad)
0 commit comments