~ols/advent-of-code-2021

7fa3b74abed0852266195f907d1137c7ef913631 — Oliver Leaver-Smith 7 months ago 13f36cb
Add comment to day one code
1 files changed, 7 insertions(+), 0 deletions(-)

M day-1/day-1.go
M day-1/day-1.go => day-1/day-1.go +7 -0
@@ 9,6 9,10 @@ import (
)

func partOne() int {
	// count the number of times a depth measurement increases from
	// the previous measurement. (There is no measurement before the
	// first measurement.)

	var readings []int
	var count int



@@ 39,6 43,9 @@ func partOne() int {
}

func partTwo() int {
	// count the number of times the sum of measurements in this
	// sliding window increases from the previous sum

	var readings []int
	var count int
	var totals []int