-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Boyer Moore’s Voting Algorithm in C++ #1442
Conversation
This is my First Contribution to NeoAlgo, as a part of WoC.
@iamrajiv The logo was also in this branch, sorry about that, ill take care next time, could you check that too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename the file to Boyer_Moore_Majority_Vote.cpp
. Add sample input-output, space complexity and time complexity.
Okay sure |
@iamrajiv Kindly review it now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the README.
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update C-Plus-Plus/README.md
file by adding the program link to it.
Sorry didn't know what to do, did it now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your code is similar to this https://www.geeksforgeeks.org/majority-element/.
But I wrote this a while ago for a competition at my college |
I will rewrite this and submit another pull request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again your code is similar to this https://www.techiedelight.com/find-majority-element-in-an-array-boyer-moore-majority-vote-algorithm/.
-->
Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
This is my first pull request as my contribution to WoC.
Boyer Moore’s Voting Algorithm in C++
Checklist
README.md
and link to my code.Related Issues or Pull Requests
Its the solution to Boyer Moore’s Voting Algorithm in C++