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

Optimizing Boyer–Moore majority vote algorithm #1852

Closed
rutujadhanawade opened this issue Jan 1, 2021 · 1 comment · Fixed by #1875
Closed

Optimizing Boyer–Moore majority vote algorithm #1852

rutujadhanawade opened this issue Jan 1, 2021 · 1 comment · Fixed by #1875
Assignees
Labels

Comments

@rutujadhanawade
Copy link
Contributor

In code present in java folder https://github.com/TesseractCoding/NeoAlgo/blob/master/Java/Algorithms/Moore_Algorithm.java complexity of this algorithm is Quadratic.
but according to Boyer–Moore majority vote algorithm the time complexity should be linear.
I would like to fix this .

@github-actions github-actions bot added the Java label Jan 1, 2021
@rutujadhanawade
Copy link
Contributor Author

@iamrajiv @atarax665 Please assign this to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant