Daily challenge for 2026-05-15
500. Longest Sequence of Identical Neighbors
Given an array of integers nums, find the length of the longest contiguous subarray where every element is identical to its neighbor. In other words, find the length of the longest subarray consisting of the same repeated value.
Example:Input: nums = [1, 1, 2, 2, 2, 3]Output: 3
Run this challenge interactively in Python or JavaScript when the app loads.