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

Boyer Moore’s Voting Algorithm in C++ #1442

Closed
wants to merge 17 commits into from
Closed

Boyer Moore’s Voting Algorithm in C++ #1442

wants to merge 17 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 10, 2020

-->

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

  • I've read the contribution guidelines.
  • I've checked the issue list before deciding what to submit.
  • I've edited the README.md and link to my code.

Related Issues or Pull Requests

Its the solution to Boyer Moore’s Voting Algorithm in C++

@ghost
Copy link
Author

ghost commented Dec 11, 2020

@iamrajiv The logo was also in this branch, sorry about that, ill take care next time, could you check that too?

Copy link
Contributor

@iamrajiv iamrajiv left a 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.

@ghost
Copy link
Author

ghost commented Dec 11, 2020

Okay sure

@ghost
Copy link
Author

ghost commented Dec 11, 2020

@iamrajiv Kindly review it now.

Copy link
Contributor

@iamrajiv iamrajiv left a comment

Choose a reason for hiding this comment

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

Update the README.

@ghost
Copy link
Author

ghost commented Dec 11, 2020

Done.

Copy link
Contributor

@iamrajiv iamrajiv left a 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.

@ghost
Copy link
Author

ghost commented Dec 11, 2020

Sorry didn't know what to do, did it now.

Copy link
Contributor

@iamrajiv iamrajiv left a 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/.

@iamrajiv iamrajiv requested a review from atarax665 December 11, 2020 11:38
@ghost
Copy link
Author

ghost commented Dec 11, 2020

But I wrote this a while ago for a competition at my college

@ghost
Copy link
Author

ghost commented Dec 11, 2020

I will rewrite this and submit another pull request

Copy link
Contributor

@iamrajiv iamrajiv left a comment

Choose a reason for hiding this comment

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

@iamrajiv iamrajiv added invalid This doesn't seem right plagiarism labels Dec 11, 2020
@iamrajiv iamrajiv closed this Dec 11, 2020
Repository owner deleted a comment Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant