Skip to content

Commit 93e98dd

Browse files
committed
Day 9: helper docstring
1 parent c48d615 commit 93e98dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/aoc2024/day9.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111

1212
def _rangesum(start: int, size: int) -> int:
13+
"""
14+
_rangesum(start, size) == sum(range(start, start + size))
15+
"""
1316
return (2 * start + size - 1) * size // 2
1417

1518

0 commit comments

Comments
 (0)