remove debug print

This commit is contained in:
onyx-and-iris 2023-12-14 12:51:04 +00:00
parent b878eb9df6
commit 0c26ef875a

View File

@ -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
}