Skip to content

Instantly share code, notes, and snippets.

@mushroomgead
Created October 16, 2019 05:13
Show Gist options
  • Select an option

  • Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.

Select an option

Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.

Revisions

  1. mushroomgead revised this gist Oct 16, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions minimalMultiple.js
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    function minimalMultiple(divisor, lowerBound) {
    for (i=1; i <= lowerBound; i++) {
    for (i=1; i <= lowerBound; i++) {
    let result = divisor * i
    if (result === lowerBound || result >= lowerBound) {
    return result
    return result
    }
    }
    }
  2. mushroomgead created this gist Oct 16, 2019.
    10 changes: 10 additions & 0 deletions minimalMultiple.js
    Original 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)