Skip to content

Leaves - Mariya#38

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

Leaves - Mariya#38
M-Burr wants to merge 1 commit into
Ada-C12:masterfrom
M-Burr:master

Conversation

@M-Burr

@M-Burr M-Burr commented Sep 9, 2019

Copy link
Copy Markdown

… algorithm.

@CheezItMan CheezItMan left a comment

Copy link
Copy Markdown

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 learning goals here. Well done!

# Space complexity: ? O(1)
def find_largest(array, length)
raise NotImplementedError
biggest_integer = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What if the array has negative numbers? better to set biggest_integer = array[0]

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