Leetcode 1436. Destination City
Given directed edges that form a single non-cyclic path, find the unique city with outdegree zero — the destination. Practically, it's the city that appears as a destination but never as a source (e.g., destination set minus source set).
Asked at:
BNSF
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early March, 2026
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.