Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first commit - Big O exercise #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ryoung18
Copy link

@ryoung18 ryoung18 commented Aug 1, 2017

Completed. Please review

Copy link
Contributor

@mmmaaatttttt mmmaaatttttt left a comment

Choose a reason for hiding this comment

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

just one quick fix to part 1 and you should be good.

6. `O(1000 * log(n) + n)`
// log(n)
Copy link
Contributor

Choose a reason for hiding this comment

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

double check this one - what grows faster, log(n) or n?

7. `O(1000 * n * log(n) + n)`
// nlog(n)
8. `O(2^n + n^2)`
Copy link
Contributor

Choose a reason for hiding this comment

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

2^n grows faster than n^2, but we didn't talk about this in class so I wouldn't sweat it.

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