remove useless for loop
This commit is contained in:
parent
18bccde2f5
commit
e2ac00420d
@ -74,8 +74,7 @@ func partTwo() {
|
||||
|
||||
t := float64(0)
|
||||
offset := buses[0].route
|
||||
for {
|
||||
loop:
|
||||
loop:
|
||||
t = t + offset
|
||||
offset = 1
|
||||
for i := range buses {
|
||||
@ -85,8 +84,6 @@ func partTwo() {
|
||||
offset = offset * buses[i].route
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
fmt.Println(int(t))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user