Skip to content

Conversation

@ameerrah9
Copy link
Owner

No description provided.

@ameerrah9 ameerrah9 requested a review from mikellewade April 28, 2023 17:25
Comment on lines +2 to +3
for i in range(len(n)):
for j in range(i + 1, len(n)):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice work! I'm concerned about the time complexity of this function? Do think there is a way to lower it?

for i in range(len(n)):
for j in range(i + 1, len(n)):
if n[j] == t - n[i]:
return [i, j]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice return statement

Copy link
Collaborator

@mikellewade mikellewade left a comment

Choose a reason for hiding this comment

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

Come to my office hours

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