{"id":"distribute-candies-to-people-no-overcounting","text":"`min(give, candies)` ensures total distributed never exceeds the original candy count, even though `candies -= give` can drive the counter negative before the loop guard catches it.","truth_value":"IN","source":"entries/2026/06/06/distribute-candies-to-people-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"distribute-candies-to-people-no-overcounting","truth_value":"IN","reason":"premise"}]}}