---
title: "Discussion on \"Finding Majority Elements (> n/3) — From Brute Force to Boyer-Moore\" | Hashnode"
description: "Discussion on \"Finding Majority Elements (> n/3) — From Brute Force to Boyer-Moore\". When solving array problems, it is easy to stop once your code passes the test cases. But the real learning happens when you push from a working solution to an optimal one.\nToday, let's look at the Ma"
url: "https://hashnode.com/posts/finding-majority-elements-n-3-from-brute-force-to-boyer-moore/6a44d0e79cca277883a4c48a"
---

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

Discussion

# [Finding Majority Elements (> n/3) — From Brute Force to Boyer-Moore](https://pujajorwar.hashnode.dev/finding-majority-elements-n-3-from-brute-force-to-boyer-moore?utm_source=hashnode&utm_medium=feed)

When solving array problems, it is easy to stop once your code passes the test cases. But the real learning happens when you push from a working solution to an optimal one. Today, let's look at the Ma

Jul 1 · 8 min read · pujajorwar.hashnode.dev  
Updated Jul 4  
Read the article

-   [#majority](https://hashnode.com/tag/majority)
-   [#majority-element](https://hashnode.com/tag/majority-element)
-   [#majority-voting](https://hashnode.com/tag/majority-voting)
-   [#boyer-moore-voting-algorithm](https://hashnode.com/tag/boyer-moore-voting-algorithm)
-   [#arrays](https://hashnode.com/tag/arrays)
-   [#dsainjava](https://hashnode.com/tag/dsainjava)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)

## Written by

[Puja Jorwar](https://hashnode.com/@pujajorwar)

@pujajorwar · Pune, India

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

Full-Stack Developer & Data Analyst | DSA & Tech Writer | Open to Work

Full-Stack Developer &amp; Data Analyst | DSA &amp; Tech Writer | Open to Work I write about: → DSA problems — explained simply with dry runs &amp; code → Full-Stack Development (React, Next.js, Node.js) → Data Analysis (Python, SQL, Power BI) I believe in understanding over memorising. Every blog I write is explained the way I wish someone had explained it to me. Portfolio: https://portfolio-puja-jorwar.vercel.app/ GitHub: https://github.com/Puja-Jorwar Twitter: https://x.com/PujaJorwar LinkedIn: https://www.linkedin.com/in/puja-jorwar

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
