{"id":"leetcode-bank-closed-form","text":"`totalMoney` computes the answer in O(1) time and space using arithmetic series formulas rather than simulating day-by-day deposits.","truth_value":"IN","source":"entries/2026/06/06/calculate-money-in-leetcode-bank-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":["closed-form-reduction-eliminates-iteration"],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"leetcode-bank-closed-form","truth_value":"IN","reason":"premise"}]}}