mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2025-04-19 18:53:46 +01:00
Compare commits
2 Commits
801ed17bf1
...
171e50ebe4
Author | SHA1 | Date | |
---|---|---|---|
171e50ebe4 | |||
3a3af64df9 |
@ -36,6 +36,12 @@ func two(lines []string) int {
|
||||
if n > res {
|
||||
res = n
|
||||
}
|
||||
}(i)
|
||||
|
||||
wg.Add(1)
|
||||
go func(x int) {
|
||||
defer wg.Done()
|
||||
|
||||
n = spawn(x, len(lines[0])-1, N, lines)
|
||||
if n > res {
|
||||
res = n
|
||||
@ -52,11 +58,16 @@ func two(lines []string) int {
|
||||
if n > res {
|
||||
res = n
|
||||
}
|
||||
}(i)
|
||||
|
||||
wg.Add(1)
|
||||
go func(y int) {
|
||||
defer wg.Done()
|
||||
|
||||
n = spawn(len(lines[0])-1, y, W, lines)
|
||||
if n > res {
|
||||
res = n
|
||||
}
|
||||
y++
|
||||
}(i)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user