01.07 · Problem
Transactions That Add Up
This problem is part of solulu Pro
A shop's ledger lists daily net cash changes (positive for income, negative for expense). The auditor wants to know in how many ways a continuous run of days can have a total change of exactly k. Count such runs.
Lifetime ₹1,999 ₹999 · Launch offer
Item 7 of 94 · updated 2026-10-12