improved performance

This commit is contained in:
Falko Victor Habel 2025-02-10 17:05:59 +01:00
parent 8c74e60f54
commit 4d6684d4b6
5 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
from fabelous_math import is_even, is_odd
print(is_even(5))
print(is_even(5))
print(is_odd(19))

View File

@ -2,10 +2,10 @@
namespace simple_functions {
bool is_even(long long number) {
return (number & 1) == 0;
return (number & 1) == 0;
}
bool is_odd(long long number) {
return (number & 1) == 1;
return (number & 1);
}
}

View File