---
title: "Discussion on \"Moore's Voting Algorithm: A Step-by-Step Guide to Finding the Majority Element\" | Hashnode"
description: "Discussion on \"Moore's Voting Algorithm: A Step-by-Step Guide to Finding the Majority Element\". Given an array of N integers return an element that occurs more than N/2 times in the given array.\nThe Brute Force\nThe most Navie and brute force approach is -\n\nLoop through each of the elements of the array\n\nFor each of the elements, find its count\n..."
url: "https://hashnode.com/posts/moores-voting-algorithm-a-step-by-step-guide-to-finding-the-majority-element/6443b8582d19cbaf9022af2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Moore's Voting Algorithm: A Step-by-Step Guide to Finding the Majority Element](https://blog.theadeshkhanna.com/moores-voting-algorithm-a-step-by-step-guide-to-finding-the-majority-element?utm_source=hashnode&utm_medium=feed)

Given an array of N integers return an element that occurs more than N/2 times in the given array. The Brute Force The most Navie and brute force approach is - Loop through each of the elements of the array For each of the elements, find its count ...

Apr 22, 2023 · 5 min read · blog.theadeshkhanna.com  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#cocodeblogs](https://hashnode.com/tag/cocodeblogs)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Adesh Khanna](https://hashnode.com/@theadeshkhanna)

@theadeshkhanna · Varanasi, India

  
[View profile](https://hashnode.com/@theadeshkhanna)

Software Engineer 🧑‍💻 | Finding Opportunities

Hi, Nice seeing you here I am a Software Engineer with a background in Computer Science having in-depth knowledge of Backend Development, Frontend Development and DevOps. I Love building and deploying systems with my knowledge and create a product that is easily accessible to all. Really appreciate your time.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
