Skip to content

Conversation

@katemyer
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 Kate, you hit the main learning goals. Take a look at my comment for the one bug.

raise NotImplementedError, "newman_conway isn't implemented"
end
raise ArgumentError if num <= 0
return 1 if num == 1

Choose a reason for hiding this comment

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

Because the method is supposed to return a string.

Suggested change
return 1 if num == 1
return "1" if num == 1

Comment on lines +3 to 5
# Time complexity: ? o(n)
# Space Complexity: ? o(n)
def newman_conway(num)

Choose a reason for hiding this comment

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

This works, with one bug.

Comment on lines +2 to 4
# Time Complexity: ? o(n)
# Space Complexity: ? o(n)?
def max_sub_array(nums)

Choose a reason for hiding this comment

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

👍

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