CitadelQuant ResearcherQuantitative ResearcherQuestion #56

Given an array of numbers: 1, 5, 3, 2, 4, 2, 3, 1, 2, 3, 2, 4, return another array where duplicate numbers are grouped in consecutive positions, maintaining the order of their first appearance. For example, the result should be: 1, 1, 5, 3, 3, 3, 2, 2, 2, 2, 4, 4.

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