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

Rework example 7 and provide an alternative way of solving the problem. #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vosst
Copy link

@vosst vosst commented Jul 7, 2015

While browsing through the example questions, I kind of got stuck at 11.7 and its proposed solution. After a bit of research, I came up with an alternative way of solving the problem using a heap (T: O(n log(n)), S: O(1)), leaving the original approach relying on a sorted collection in place.

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.

1 participant