-
Notifications
You must be signed in to change notification settings - Fork 44
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
Rachael Water Class #37
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done Rachael, you hit the learning goals here. Nice work.
if input.key < here.key | ||
if here.left != nil | ||
here = here.left | ||
else here.left = input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works, just it's not standard coding style.
else here.left = input | |
else | |
here.left = input |
else input.key > here.key | ||
if here.right != nil | ||
here = here.right | ||
else here.right = input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else here.right = input | |
else | |
here.right = input |
# Time Complexity: | ||
# Space Complexity: | ||
def find(key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 space/time complexity?
# Time Complexity: | ||
# Space Complexity: | ||
def inorder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 space/time complexity?
# Time Complexity: | ||
# Space Complexity: | ||
def preorder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 space/time complexity?
# Time Complexity: | ||
# Space Complexity: | ||
def postorder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 space/time complexity?
# Time Complexity: | ||
# Space Complexity: | ||
def height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 space/time complexity?
No description provided.