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

invert-binary-tree.rb: temp instead of root.right on line 17 #1

Open
jgraber opened this issue Mar 1, 2017 · 0 comments
Open

invert-binary-tree.rb: temp instead of root.right on line 17 #1

jgraber opened this issue Mar 1, 2017 · 0 comments

Comments

@jgraber
Copy link

jgraber commented Mar 1, 2017

Hi,
You have a nice solution for inverting a binary tree. But should on line 17 not temp be used instead the root.right?
root.left = invert_binary_tree(temp)

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