Skip to content

Earth | Genevieve#13

Open
geneminde wants to merge 2 commits intoAda-C14:masterfrom
geneminde:master
Open

Earth | Genevieve#13
geneminde wants to merge 2 commits intoAda-C14:masterfrom
geneminde:master

Conversation

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

Comment on lines +12 to +13
max_ending_here = [number, max_ending_here + number].max
max_so_far = [max_so_far, max_ending_here].max

Choose a reason for hiding this comment

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

Clever uses of .max

Comment on lines +2 to 4
# Time Complexity: O(n)
# Space Complexity: O(1)
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.

👍

Comment on lines +1 to 3
# 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.

👍

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