Compare commits

..

2 Commits

Author SHA1 Message Date
171e50ebe4 split runners a little more 2023-12-17 17:51:09 +00:00
3a3af64df9 remove redundant expression 2023-12-17 15:53:24 +00:00

View File

@ -36,6 +36,12 @@ func two(lines []string) int {
if n > res { if n > res {
res = n res = n
} }
}(i)
wg.Add(1)
go func(x int) {
defer wg.Done()
n = spawn(x, len(lines[0])-1, N, lines) n = spawn(x, len(lines[0])-1, N, lines)
if n > res { if n > res {
res = n res = n
@ -52,11 +58,16 @@ func two(lines []string) int {
if n > res { if n > res {
res = n res = n
} }
}(i)
wg.Add(1)
go func(y int) {
defer wg.Done()
n = spawn(len(lines[0])-1, y, W, lines) n = spawn(len(lines[0])-1, y, W, lines)
if n > res { if n > res {
res = n res = n
} }
y++
}(i) }(i)
} }