Most Frequent Even Element
Easy
Frequency Counting
Print the most frequent even number; on ties print the smallest. Print -1 if there is no even number.
Constraints
1 <= n <= 2000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.