mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-23 10:50:48 +00:00
^^
This commit is contained in:
parent
0f357df19d
commit
cacd140961
@ -71,7 +71,7 @@ func two(lines []string) int {
|
|||||||
go func(i int) {
|
go func(i int) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
seedRanges = append(seedRanges, nextTransform(0, []bound{newBound(seeds[i], seeds[i]+seeds[i+1]-1)})...)
|
seedRanges = append(seedRanges, nextTransform(0, []bound{newBound(seeds[i], seeds[i]+seeds[i+1])})...)
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
}(i)
|
}(i)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user