Skip to content

Update _189.java #40

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

Merged
merged 1 commit into from
Mar 12, 2019
Merged

Update _189.java #40

merged 1 commit into from
Mar 12, 2019

Conversation

jianguda
Copy link
Contributor

No description provided.

Copy link
Owner

@fishercoder1534 fishercoder1534 left a comment

Choose a reason for hiding this comment

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

This Solution3 runtime is O(n*2), right? It's less optimal than the existing solutions, any particular reasons you want to add it?
Thanks!

@jianguda
Copy link
Contributor Author

It is not one good solution in terms of time complexity but is exactly the solution which costs O(1) extra space.

@fishercoder1534
Copy link
Owner

Got it, thanks for reminding me of that!
Nice work! 👍

@fishercoder1534 fishercoder1534 merged commit b87ebf6 into fishercoder1534:master Mar 12, 2019
fishercoder1534 pushed a commit that referenced this pull request Jun 6, 2019
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