leetle

Daily challenge for 2025-02-20

51. Majority Element II (n/3)

Write a function solve that finds all elements that appear more than n/3 times in an array.

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

Run this challenge interactively in Python or JavaScript when the app loads.