Skip to content

Conversation

@indiakato
Copy link

No description provided.

Copy link

@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 India, you hit the learning goals here. Well done. My only comments here were on the missing space/time complexities.

Comment on lines 21 to +23
# Time Complexity: ?
# Space Complexity: ?
def add_first(value)
raise NotImplementedError
end
def add_first(value)

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 29 to +31
# Time Complexity: ?
# Space Complexity: ?
def search(value)
raise NotImplementedError
def search(value)

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 43 to +45
# method to return the max value in the linked list
# returns the data value and not the node
def find_max
raise NotImplementedError
def find_max

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 65 to +67
# Time Complexity: ?
# Space Complexity: ?
def find_min
raise NotImplementedError
def find_min

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 89 to +91
# Time Complexity: ?
# Space Complexity: ?
def get_first
raise NotImplementedError
end
def get_first

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 96 to +98
# Time Complexity: ?
# Space Complexity: ?
def add_last(value)
raise NotImplementedError
def add_last(value)

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 114 to +116
# Time Complexity: ?
# Space Complexity: ?
def length
raise NotImplementedError
def length

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 131 to +133
# Time Complexity: ?
# Space Complexity: ?
def get_at_index(index)
raise NotImplementedError
def get_at_index(index)

Choose a reason for hiding this comment

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

👍 Time/space complexity?

Comment on lines 149 to +151
# Time Complexity: ?
# Space Complexity: ?
def visit
raise NotImplementedError
def visit

Choose a reason for hiding this comment

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

👍 Time/space 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