Created
October 16, 2019 05:13
-
-
Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.
Revisions
-
mushroomgead revised this gist
Oct 16, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ function minimalMultiple(divisor, lowerBound) { for (i=1; i <= lowerBound; i++) { let result = divisor * i if (result === lowerBound || result >= lowerBound) { return result } } } -
mushroomgead created this gist
Oct 16, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ function minimalMultiple(divisor, lowerBound) { for (i=1; i <= lowerBound; i++) { let result = divisor * i if (result === lowerBound || result >= lowerBound) { return result } } } minimalMultiple(1, 239)