{"id":"kids-candies-linear-time","text":"`kidsWithCandies` runs in O(n) time and O(n) space, making exactly two passes over the input: one for `max`, one for the comprehension.","truth_value":"IN","source":"entries/2026/06/06/kids-with-the-greatest-number-of-candies-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"kids-candies-linear-time","truth_value":"IN","reason":"premise"}]}}