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

Space efficient solution O(1) #269

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

Conversation

davi-maciel
Copy link

Add a more space efficient solution and add proper testing. The solution is O(n) time and O(1) space.

@brycedrennan
Copy link
Collaborator

Thanks - we don't want to delete any examples that show alternative approaches though. You can fix it or I will eventually add a commit that includes both your solution and the old ones.

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