Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return value of BST.put() depends on state #13

Open
akloeber opened this issue Nov 22, 2015 · 0 comments
Open

Return value of BST.put() depends on state #13

akloeber opened this issue Nov 22, 2015 · 0 comments

Comments

@akloeber
Copy link
Contributor

The return value of BinarySearchTree.put() differs depending on the state of the tree and is not
documented.

In case of the first insertion the tree instance is returned whereas for subsequent insertions a
structure like this is returned:

{
  put: [Function],
  node: [Object]
}
akloeber added a commit to akloeber/dsjslib that referenced this issue Nov 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant