Skip to content

Feat : Boyer–Moore majority vote algorithm #4675

@Manan-09

Description

@Manan-09

What would you like to Propose?

Boyer–Moore majority vote algorithm : Wiki

Boyer–Moore majority vote algorithm is used to find majority of element in given collection of items. Majority elements mean , element that occurs more than or equal to N / 2 times in collection with size of N.

Example :
Input : [3,4,1,4,2,4]
Output : 4

Issue details

Implementation of Boyer–Moore majority vote algorithm is missing in current codebase, please point out if it's present.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions