Longest Run of Consecutive Identical Shows
CodingPhoneSoftware EngineerReported Aug, 2026Medium Frequency, New
Company question banks are included with the Insider plan.
You are given an array of strings shows, where each element is the name of a show in the order it was watched. Return the length of the longest run of consecutive identical shows.
A run is a...