Ad
  • Default User Avatar

    Why are there test cases with more than two different numbers? Doesn't the description say they will all be equal except one? Java version test:
    input:4.0 4.0 4.0 3.0 4.0 4.0 4.0 4.0 5.0 5.0 5.0 5.0 4.0 5.0 5.0 5.0 6.0 6.0 6.0 6.0 6.0 5.0 6.0 6.0 7.0 7.0 7.0 7.0 7.0 7.0 6.0 7.0 8.0 8.0 8.0 8.0 8.0 8.0 8.0 7.0 3.0 3.0 2.0 3.0 3.0 3.0 3.0 3.0
    expected:<2.0> but was:<3.0>

  • Default User Avatar

    ok I see now

  • Default User Avatar

    Ok thanks. Maybe the kata should be reworded to reflect that they DO have to be.

  • Default User Avatar

    Like Muhamor, I'm wondering why the second of the "basic tests" (kotlin version) should have a least common denominator of 34060. 40 does not go into that evenly. Shouldn't it be 68120?

  • Default User Avatar

    I'm puzzled by this one too... on the second of the basic tests, shouldn't the least common denominator be 68120? As Muhamor pointed out, 40 does not go into 34060 evenly. (kotlin version)

  • Default User Avatar

    this was an inspirational solution to look at... so clean and so great! both the logic and formatting - I think I even like splitting the ternary over three lines. well done