mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2025-04-20 11:13:47 +01:00
Compare commits
No commits in common. "171e50ebe44351fb53a18ca0e7df65a800994690" and "801ed17bf1a63bdd51b4c0f2caa8c3a4b5e1116f" have entirely different histories.
171e50ebe4
...
801ed17bf1
@ -36,12 +36,6 @@ 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
|
||||
@ -58,16 +52,11 @@ 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