Skip to content

Leaves - Mariya#27

Open
M-Burr wants to merge 1 commit intoAda-C12:masterfrom
M-Burr:master
Open

Leaves - Mariya#27
M-Burr wants to merge 1 commit intoAda-C12:masterfrom
M-Burr:master

Conversation

@M-Burr
Copy link
Copy Markdown

@M-Burr M-Burr commented Feb 25, 2020

No description provided.

Copy link
Copy Markdown

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, you hit the basic learning goals, with some issues on space/time complexity. I.e. you didn't answer them... Check out my comments and let me know if you have any questions.

Comment on lines 30 to 32
# Time Complexity:
# Space Complexity:
def add(key, value)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space/time complexity?

end
end

def find(key)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space/time complexity?

return list
end

def inorder
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space/time complexity?

return list
end

def preorder
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space/time complexity?

return list
end

def postorder
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space/time complexity?

Comment on lines 112 to +115
# Time Complexity:
# Space Complexity:

def height_helper(current_node)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space/time complexity?

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

Successfully merging this pull request may close these issues.

2 participants