Daily challenge for 2025-01-03
3. Majority Element
Write a function solve that finds the majority element in a list. The majority element appears more than n/2 times where n is the length of the list.
Example:Input: [3,2,3]Output: 3
Run this challenge interactively in Python or JavaScript when the app loads.