mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-24 03:10:47 +00:00
remove debug print
This commit is contained in:
parent
b878eb9df6
commit
0c26ef875a
@ -9,13 +9,10 @@ func findReflectionWithDifference(image []string) (int, bool) {
|
||||
walkToEdge := func(lower, upper int) bool {
|
||||
diffs := 0
|
||||
for lower >= 0 && upper < len(image) {
|
||||
n := numDiffs(image[lower], image[upper])
|
||||
log.Debug(n, " difference(s) found at line ", lower)
|
||||
diffs += n
|
||||
diffs += numDiffs(image[lower], image[upper])
|
||||
lower--
|
||||
upper++
|
||||
}
|
||||
lower++
|
||||
return diffs == 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user