List of utility methods to do Divisor
int | maxCommonDivisor(int m, int n) max Common Divisor if (m < n) { int temp = m; m = n; n = temp; if (m % n == 0) { return n; return maxCommonDivisor(n, m % n); |
int | maxCommonDivisor(int num1, int num2) max Common Divisor return num1 >= num2 ? maxCommonDivisorCore(num1, num2) : maxCommonDivisorCore(num2, num1);
|
int | maxCommonDivisorCore(int num1, int num2) max Common Divisor Core if (num1 % num2 == 0) { return num2; return maxCommonDivisorCore(num2, num1 % num2); |
float | maxDivisibleNumber(float yourDividend, float divisor) max Divisible Number return yourDividend + (divisor - (yourDividend % divisor));
|
int | maxLiteralLengthDivision(int n) Calculates the division by 31 return n / 31;
|