Skip to content

Commit

Permalink
day 418: small cleanup of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Jan 11, 2020
1 parent fa6a433 commit bb30e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions day418/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func Bonuses(loc []int) []int {
bonuses = append(bonuses, segBonuses...)
}

for i, x := range bonuses {
bonuses[i] = x + 1
for i := range bonuses {
bonuses[i]++
}

return bonuses
Expand Down

0 comments on commit bb30e5c

Please sign in to comment.