feat: applied De Morgan simplification

This commit is contained in:
2025-12-04 17:32:18 +01:00
parent 77a352aa2e
commit bce49d51f7

View File

@@ -91,7 +91,7 @@ func PartTwo(data []string) int {
return false return false
} }
for _, c := range value[1:] { 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 return false
} }
} }