From 3d54bd5811764ed3f32d995be803bd4d637a36f7 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Sun, 11 Aug 2024 22:05:33 -0500 Subject: [PATCH] Roll back part of optimization --- java/src/main/java/euler/p0076.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/src/main/java/euler/p0076.java b/java/src/main/java/euler/p0076.java index bd18ce0c..872370e0 100644 --- a/java/src/main/java/euler/p0076.java +++ b/java/src/main/java/euler/p0076.java @@ -43,9 +43,9 @@ public Object answer() { // sum += counts[i]; } while (sum > 100); } - // sum = 0; - // for (int i = 0; i < 101; i++) - // sum += counts[i]; + sum = 0; + for (int i = 0; i < 101; i++) + sum += counts[i]; } return answer; }