update 2024/day2
This commit is contained in:
parent
60ce2fd24d
commit
c02820bcb9
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func (r report) isSave() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
for i := 0; i < len(r.levels)-1; i++ { // iterate til second last level
|
||||
for i := range len(r.levels) - 1 { // iterate til second last level
|
||||
if !isValidLevelDifference(r.levels[i], r.levels[i+1]) {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue