Skip to content

Instantly share code, notes, and snippets.

@mushroomgead
Created October 16, 2019 05:13
Show Gist options
  • Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.
Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.
my challenge today
function minimalMultiple(divisor, lowerBound) {
for (i=1; i <= lowerBound; i++) {
let result = divisor * i
if (result === lowerBound || result >= lowerBound) {
return result
}
}
}
minimalMultiple(1, 239)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment