leetle

Daily challenge for 2025-07-28

209. Find Second Maximum Element

Write a function solve that finds the second largest unique element in an array. If there is no second largest element, return null.

Example:
Input: [3, 1, 4, 1, 5]
Output: 4

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