Daily challenge for 2026-06-04
520. Longest Subarray of Evens
Given an array of integers nums, find the length of the longest contiguous subarray that contains only even numbers.
Example:
Input: nums = [1, 2, 4, 3, 6, 8, 10]
Output: 3
Run this challenge interactively in Python or JavaScript when the app loads.