plduhoux
2/20/2018 - 1:48 AM

minimalMultiple

int minimalMultiple(int divisor, int lowerBound) {
    if (lowerBound % divisor == 0) return lowerBound;
    return (int)(Math.floor(lowerBound / divisor ) + 1) * divisor;
}