edualgo / eduAlgo

A simple python package having modules of different algorithms to use in educational purposes.
https://edualgo.github.io/documentation/
MIT License
98 stars 54 forks source link

Add Moore Voting Algorithm #157

Closed anonymous372 closed 3 years ago

anonymous372 commented 3 years ago

Well if you are compiling algorithms this is a nice algorithm. It gives the majority element in an array i.e.,occuring more than n/2 times in the array where is size of array

SauravPattnaikCS60 commented 3 years ago

I want to work on this issue.