Skip to content

Conversation

@sundbean
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 Whit, you hit the learning goals here. Well done.

Comment on lines +18 to +22
max_sum_here = max_sum_here + nums[i]
if max_sum < max_sum_here:
max_sum = max_sum_here
if max_sum_here < 0:
max_sum_here = 0

Choose a reason for hiding this comment

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

This works, but you can simplify it a bit using the max function.

Comment on lines 5 to 9
def newman_conway(num):
""" Returns a list of the Newman Conway numbers for the given value.
Time Complexity: ?
Space Complexity: ?
Time Complexity: O(n)
Space Complexity: O(n)
"""

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