{"id":"destcity-linear-time-and-space","text":"destCity runs in O(n) time and O(n) space with two passes over the paths list: one to build the source set, one to find the non-source destination.","truth_value":"IN","source":"entries/2026/06/06/destination-city-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"destcity-linear-time-and-space","truth_value":"IN","reason":"premise"}]}}