{"id":"tickets-split-at-k-boundary","text":"In `time_to_buy_tickets`, people at indices ≤ k contribute `min(t, tickets[k])` seconds and people at indices > k contribute `min(t, tickets[k] - 1)` seconds, because post-k people do not get a turn in k's final round.","truth_value":"IN","source":"entries/2026/06/06/time-needed-to-buy-tickets-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"tickets-split-at-k-boundary","truth_value":"IN","reason":"premise"}]}}