CitadelSoftware EngineerSoftware EngineerQuestion #4

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 the detailed step-by-step solution to this Citadel interview question, plus access to free interview prep resources.

We'll also send you a free HFT mock interview video.

Get All 141+ Citadel Questions with Solutions

Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.

Schedule a Call