Tree Diameter Endpoints via Double BFS (LC 1245-style)
OACitadelLast reported June 2026Medium Frequency
Reported
4× across candidate reports
First seen
February 2025
Last reported
June 2026
Reported outcome
mixed
Problem Overview
Citadel online assessment question, reconstructed from 4 candidate reports (February 2025 to June 2026). Tests: BFS shortest path; tree recursion and traversal. The write-up includes a Python solution that passes 13 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.