Citadel online assessment question, reconstructed from 4 candidate reports (January 2025 to May 2025). Tests: hash-map counting, grouping and joins; DFS and connected components. The write-up includes a Python solution that passes 9 test cases.
The full problem statement — full requirements, constraints, and edge cases
Approach and trade-offs — what passing candidates did, and the mistakes that sink people
Unlock the full Citadel catalog
Full problem statements, candidate-reported follow-ups, and walkthroughs — for every Citadel question.