Search
⌘K

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).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.