← ALL NOTES
Math

1716. Calculate Money in Leetcode Bank

Hercy deposits money daily: 1 on the first Monday, +1 each subsequent day of the week, and each new Monday starts 1 higher than the previous Monday. Find the total after n days. Closed-form…

Loading…