saurabh47 / Data-structures-and-algorithms

Popular coding questions solution for interview preparation
MIT License
13 stars 8 forks source link

Create Find-Majority-Element(Moore's-Voting-Algorithm) #16

Closed nishantagrawal01 closed 2 years ago

maheshj01 commented 2 years ago

Hi @nishantagrawal01, thanks for your contribution. Please consider updating the readme explaining what this algorithm does. cc: @saurabh47

Thanks

saurabh47 commented 2 years ago

Hi @nishantagrawal01, thanks for your contribution. Please, follow the proper naming conversion & directory structure. In your case, create a directory with the name find_majority_element. In that directory create file name moores_voting_algorithm.c file with your code.

nishantagrawal01 commented 2 years ago

Hi @saurabh47 @maheshmnj ,

Thanks for the info. I have made relevant changes and updated the Pull request. Please merge the same. Thanks a lot for heads up.