Skip to main content

Practice · 3 of 3

Stress: Majority With Proof

CHALLENGE
Difficulty: advanced+25 XP

**Bài toán.** Boyer–Moore finds a majority *candidate*; a verification pass is required to confirm a strict majority (> half). Stress 4000 trials, seed 2024, arrays with a sometimes-dominant value; oracle: direct counting. **The broken version skips verification — your harness must catch it.** Fix it.

Back to lesson: Practice: Stress Drill — Three Harnesses