CitadelSoftware Engineer InternSoftware Engineer InternQuestion #140

Find the number of pairs of indices (i, j) in an array v such that v[i] = v[j] = v[i+1] + v[i+2] + ... + v[j-1]. Design an algorithm with time complexity O(n log n).

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