Deviopath › Go

Inclusive Range Sum

Hard · Debugging

A buggy SumRange(lo, hi) used i < hi and dropped hi. Fix it so it sums every integer from lo to hi inclusive. If lo > hi, return 0.

Write SumRange(lo, hi).

Next: Last Write Wins Map