mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2026-04-20 03:43:30 +00:00
Compare commits
1 Commits
0f357df19d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| cacd140961 |
@@ -71,7 +71,7 @@ func two(lines []string) int {
|
||||
go func(i int) {
|
||||
defer wg.Done()
|
||||
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()
|
||||
}(i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user