From 538fd354d0b44dee927be6cf2747599fcb8843fe Mon Sep 17 00:00:00 2001 From: cat Date: Fri, 5 Dec 2025 23:51:52 +0200 Subject: [PATCH] Oops a very lucky mistake on Day 4 Question 1 --- Day4/Question1/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Day4/Question1/main.cpp b/Day4/Question1/main.cpp index fc676a8..8c1c345 100644 --- a/Day4/Question1/main.cpp +++ b/Day4/Question1/main.cpp @@ -46,7 +46,7 @@ int main() { // Really convenient that integers are floored x = currentPosition % width; - y = currentPosition / height; + y = currentPosition / width; uint8_t neighbourCount = 0; // Just check for 5 since we know middle is definetly @ always