From bce49d51f7a23f428da54443267ec82db4431702 Mon Sep 17 00:00:00 2001 From: Kharec Date: Thu, 4 Dec 2025 17:32:18 +0100 Subject: [PATCH] feat: applied De Morgan simplification --- internal/2020/DayFour/code.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/2020/DayFour/code.go b/internal/2020/DayFour/code.go index 5b766ba..bb7d5a0 100644 --- a/internal/2020/DayFour/code.go +++ b/internal/2020/DayFour/code.go @@ -91,7 +91,7 @@ func PartTwo(data []string) int { return false } for _, c := range value[1:] { - if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f')) { + if (c < '0' || c > '9') && (c < 'a' || c > 'f') { return false } }