{"id":"two-sum-single-pass-linear","text":"`twoSum` runs in O(n) time and O(n) space via a single-pass hash map, never iterating the array more than once","truth_value":"IN","source":"entries/2026/06/06/two-sum-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"two-sum-single-pass-linear","truth_value":"IN","reason":"premise"}]}}