8000 lol · jamesjarvis/adventofcode@869aae8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 869aae8

Browse files
committed
lol
1 parent daa83ff commit 869aae8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

01/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func countLargerThanPrevious(vals []int) int {
3333
var last int = vals[0]
3434
for i := 1; i < len(vals); i++ {
3535
if vals[i] <= last {
36+
last = vals[i]
3637
continue
3738
}
3839
count++

0 commit comments

Comments
 (0)
0