Citadel
Interview Question
Software Engineer Interview
Citadel
Given an array representing a sequence of user events (where each element is a user ID), find the length of the longest contiguous subarray where the most frequent user's frequency within the subarray equals the minimum frequency of any user in the entire event log. Implement an efficient function to return this maximum length.
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.

