feat: applied De Morgan simplification
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user