Skip to content

Conversation

@MiHHuynh
Copy link

No description provided.

5. `O(n + n + n + n)` --> O(n)
6. `O(1000 * log(n) + n)` --> O(log(n))
7. `O(1000 * n * log(n) + n)` --> O(nlog(n))
8. `O(2^n + n^2)` --> O(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.

This one is O(2^n), since exponential growth is faster than quadratic growth. We didn't cover this in class though, so I wouldn't sweat this one too much!

@mmmaaatttttt mmmaaatttttt reopened this Aug 1, 2017
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