CitadelSoftware EngineerSoftware EngineerQuestion #94

Given an array representing user events, find the length of the longest contiguous subarray where the most frequent user in that subarray has the same number of events as the least frequent user in the entire event log. Write an efficient function to solve this problem.

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